Connect an AI
MCP is a small connector that lets an AI app look things up in the Grimoire instead of guessing. Set it up once, then ask the app questions.
What it does #
The connector gives an AI app a handful of lookup tools: search the library, pull a character's lines, read item lore and check a quote. The app calls those tools itself instead of asking you to run commands.
It runs on your computer. There is no website to sign into and no account. Your app starts it when needed and stops it when you are done.
Why use it #
- The AI stops guessing
It can search the library and read the passage before it answers.
- Quotes can be checked
The quote checker is one of the tools, so the app can ask whether a line is real.
- Your characters get sharper
All Twelve characters use the same library. The connector gives them a direct lookup path.
- It is safe to leave on
The library is read-only: the connector cannot change it, run commands or reach the network.
You don't need this to use the Grimoire. It is for AI apps that can start a local helper.
Set it up #
In the Grimoire folder:
bash mcp-server/install.sh
The installer creates a small local setup and prints a configuration block to
paste into your app. Restart the app after you add it. If your app asks for a
path, point it at mcp-server/run.sh; use the full path if the app starts
somewhere else.
The connector needs Python 3.10 or newer. The search tool still runs on 3.8 or newer.
Try it #
Once the app is connected, ask it for something that needs a lookup:
- “Find Eris lines about the Hive.”
- “What does the library say about the Leviathan?”
- “Verify ‘Absolutely not.’ as an Eris Morn quote.”
- “Show me items with lore about the Moon.”
If the app lists the Grimoire tools but answers from memory anyway, ask it to use the search or quote-checking tool directly.
For Experts (or enthusiasts)
The client configuration, all 22 tools, and the safety limits.
Client configuration
A typical local configuration looks like this:
{
"mcp": {
"servers": {
"grimoire": {
"type": "local",
"command": ["/absolute/path/to/destiny-agent-grimoire/mcp-server/run.sh"]
}
}
}
}
The exact shape depends on your client. If it only accepts remote servers, put a local bridge in front of the stdio process.
The tools
All read-only:
searchFull-text search across books, transcripts, cards, interactions, items and records.
characterCurated lines for a character, or every transcript line with
all_lines.character_infoAliases, quote count and spoken-line count for a character.
entityResolve a name to an entity, with aliases, relations and ranked documents.
itemItem lore and metadata by slug.
find_itemFind items by a title or slug fragment.
bookBook metadata and its entries.
transcriptTranscript metadata and dialogue lines, optionally filtered by speaker.
recordA triumph record by slug or title.
sealsEvery manifest seal with its triumph record count.
sealA seal and its triumph records, by hash or name.
loreA manifest lore entry by hash or title fragment.
list_recordsCheap listings of books, characters, speakers or records.
statsRow counts, top item types and top speakers.
verifyCheck one quote, optionally with a speaker and exact mode.
verify_manyCheck up to twenty quotes in one call.
activitiesList raids, dungeons, seasonal activities and other content with coverage.
activityActivity details, coverage, speakers and classified transcripts.
seasonsEvery season and episode with its official number and coverage.
eventsEvery rotating event with coverage and occurrence count.
eventEvent details, yearly occurrences and classified transcripts.
coverageCoverage summary for activities, seasons and events, including gaps.
The two verification tools are the important ones. A line that fails verify is
not in this library, even if it sounds right; a pass means it is present as
attributed, not that it is current live dialogue.
Safety
The database is opened read-only. There is no SQL tool, no write path and no network access. Limits are clamped, long text is trimmed, resource reads are capped, and queries are capped before they reach SQLite.
That makes the server safe to leave connected while you work. It also means it cannot fix or ingest anything; those steps stay in the repository.
If it will not connect
See the AI connection troubleshooting for the usual causes: missing virtual environment, wrong path, or a client that cannot launch a local process.