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:

  • search

    Full-text search across books, transcripts, cards, interactions, items and records.

  • character

    Curated lines for a character, or every transcript line with all_lines.

  • character_info

    Aliases, quote count and spoken-line count for a character.

  • entity

    Resolve a name to an entity, with aliases, relations and ranked documents.

  • item

    Item lore and metadata by slug.

  • find_item

    Find items by a title or slug fragment.

  • book

    Book metadata and its entries.

  • transcript

    Transcript metadata and dialogue lines, optionally filtered by speaker.

  • record

    A triumph record by slug or title.

  • seals

    Every manifest seal with its triumph record count.

  • seal

    A seal and its triumph records, by hash or name.

  • lore

    A manifest lore entry by hash or title fragment.

  • list_records

    Cheap listings of books, characters, speakers or records.

  • stats

    Row counts, top item types and top speakers.

  • verify

    Check one quote, optionally with a speaker and exact mode.

  • verify_many

    Check up to twenty quotes in one call.

  • activities

    List raids, dungeons, seasonal activities and other content with coverage.

  • activity

    Activity details, coverage, speakers and classified transcripts.

  • seasons

    Every season and episode with its official number and coverage.

  • events

    Every rotating event with coverage and occurrence count.

  • event

    Event details, yearly occurrences and classified transcripts.

  • coverage

    Coverage 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.

Next #