MCP Reference All docs

Chapter V · Section 2

Grimoire MCP Reference

What a connection can do, example prompts, player access, switching and revoking, every tool Grimoire exposes, and troubleshooting.

This is the reference for Grimoire's MCP server: what a connection can do, how player access works, and every tool your AI app can call. To set up Claude, ChatGPT, Claude Code, Cursor, or another app, start with Connect to AI. In Claude, Grimoire is listed in the Connectors Directory: open Grimoire's listing and select Connect to Claude.

What a connection can do

  • Read everything about the single campaign you picked, on a GM connection: NPCs, locations, factions, items, lore, quests, sessions, relationships, the Campaign Bible, the wiki, and open story threads. A player connection reads the player's own narrower view, described under Player access below.
  • Create and update on your behalf if you are the Gamemaster ("Create an NPC named Thrain, a dwarven weaponsmith based in Millbrook").
  • Respect visibility rules. GM Secret content stays GM-only. Player connections cannot read secrets or modify anything.
  • Stay within one campaign. A connection is bound to the campaign you approved on the consent screen. Your AI app cannot see your other campaigns through the same connection.

Your AI app may ask you to confirm before it changes or deletes something that already exists. Grimoire marks those tools so it can.

Example prompts

Ask in plain English and your AI app picks the tools. The names below come from our demo world; use your own.

Get oriented and prep a session

  • "Get me up to speed on my campaign. Where did we leave off, and what is unresolved?"
  • "Prep my next session. Which open threads are closest to paying off, and who is likely to show up?"
  • "What is on the calendar in the next two weeks of game time?"

Ask about the world

  • "Who is connected to the Shadow Covenant, and how? Include anything the players do not know yet."
  • "Tell me everything we know about the Seven Seals, in the order the party learned it."
  • "Draft three rumors a tavern keeper in Valdris could know, using only Common Knowledge."

Record what happened (Gamemaster connections)

  • "Here are my notes from tonight. Write the session recap, mark what became canon, and update the threads that moved."
  • "Add an NPC: Mira Wend, a courier for the Gilded Consortium, based in the Seven Markets. Link her to the faction."
  • "Put Dawnmass on the calendar for the 12th and link it to the cathedral."

Keep the world consistent (Gamemaster connections)

  • "Does anything in my lore contradict my World Foundations? List each conflict and the smallest change that would fix it."
  • "Add a wiki page for the Seven Seals under World Guide. Keep the list of seal locations GM Secret."

On a player connection

  • "What does my character know about the Shadow Covenant?"
  • "Remind me what happened last session."

Player access

Your players can connect their own AI app to the campaign, but only if you allow it, and only ever read-only:

  1. As the GM, open Knowledge → MCP & AI → Player access and turn the toggle on. It is off by default.
  2. Optionally write a short guidance note for your players' AI assistants (house expectations, spoiler etiquette). It is guidance, not a lock; the hard limits below are enforced by the server regardless.
  3. Players then add the same connector URL, and your campaign appears under Campaigns you play in on their consent screen.

What a player connection can never do, no matter what the AI asks for:

  • Read anything marked GM Secret, session prep, or another player's wiki
  • See more of the world than the portal preset reveals
  • Create, edit, or delete anything

A player connection reads the Campaign Bible only when you share it. On Settings → Player Portal, turn on Campaign Bible, and only the blocks you marked Common Knowledge reach your players, in their portal and to their AI app alike. World Foundations has its own toggle on the same card. It shares the World Foundations entries you have marked safe for players (they are GM Secret by default) with a player's AI app, so it knows your world's deep canon, without giving players a Foundations graph. With a toggle off, the AI app gets a plain "your GM has not shared this" answer, not an error to retry.

The calendar works the same way. With Calendar turned on under Settings → Player Portal, a player's AI app reads, through get_calendar_month, the same months the player's portal calendar shows, and nothing you keep GM Secret. With it off, the AI app gets the same plain "your GM has not shared this" answer.

Turning the toggle off, or removing the player from the campaign, cuts their AI access immediately, not when a token happens to expire. Every AI call, yours and theirs, lands in the activity log under Knowledge → MCP & AI → Audit Log, labeled by who made it.

The Campaign Bible and your AI

The Campaign Bible is GM Secret by default. When your AI writes to it, new blocks stay GM Secret unless you tell it a block is safe for players, such as how magic works or everyday life. Mark those blocks Common Knowledge from the block menu. Those are the only blocks that can ever travel to players, and only once you turn the Campaign Bible toggle on under Settings → Player Portal.

Switching campaigns

A connection is bound to a single campaign so your AI app only sees what you explicitly granted. To point it at a different campaign, remove the connector and add it again, picking the new campaign on the consent screen. You can also keep two connections side by side (add the URL twice, pick a different campaign each time).

Revoking access

  1. Remove the Grimoire connector in your AI app's settings.
  2. For players, turn off Player access or remove the player from the campaign, which cuts access immediately.
  3. Email [email protected] if you think access leaked and we revoke everything tied to your account.

What your AI actually sees

When you grant access, your AI app does not download a copy of your campaign. It calls Grimoire each time it needs something; the data lives on Grimoire's servers, and the app sees only the specific entity, page, or search result it asked for in the moment. More in our Privacy Policy.

Tool inventory

Grimoire exposes 67 tools. Read tools work for every connection; write tools work only for Gamemaster connections.

Entities

  • Read: search_campaign · get_entity · list_entities · get_field_options · get_entity_schema · get_tag_options
  • Write: create_entity · update_entity · delete_entity · batch_create_entities · batch_update_entities · create_custom_field · update_custom_field · delete_custom_field

Relationships

  • Read: get_relationships
  • Write: add_relationship · delete_relationship

Graphs and campaign knowledge

  • Read: get_constitution · get_entity_catalog · get_campaign_context · get_knowledge_graph · list_entity_graphs · get_entity_graph · get_narrative_state · get_calendar · get_current_date · list_calendar_events · get_calendar_month
  • Write: create_entity_graph · update_entity_graph · add_to_entity_graph · create_entity_graph_edge · toggle_graph_attention · create_calendar_event · update_calendar_event · delete_calendar_event

World Foundations

  • Write: create_foundation_node · update_foundation_node · delete_foundation_node · create_foundation_edge · delete_foundation_edge · update_world_foundations

Open threads

  • Read: get_open_threads · get_thread_progressions
  • Write: create_open_thread · update_open_thread · resolve_open_thread · unresolve_open_thread · add_thread_progression

Session observations

  • Write: create_session_observation · update_session_observation · delete_session_observation

Wiki and Campaign Bible

  • Read: get_wiki_page · get_wiki_tree · get_campaign_bible · search_wiki
  • Write: create_wiki_page · update_wiki_page · delete_wiki_page · create_wiki_block · update_wiki_block · move_wiki_block · delete_wiki_block · batch_create_wiki_blocks · batch_reorder_wiki_blocks · update_campaign_bible

Session

  • Read: current_campaign

Wiki tables round-trip as plain markdown grids, and entity and page links work inside cells.

Your AI decides which tool to call; you never need this list.

Troubleshooting

"I don't see a Connect button after adding the URL."

Make sure you pasted exactly https://api.ttrpg.bot/mcp with no trailing slash or query string. The connector should appear in your AI app's connector list with a sign-in or connect button next to it.

For Your campaigns: the account you signed in with does not run any campaigns yet. For Campaigns you play in: the GM has not enabled Player access for that campaign; ask them to flip it on under Knowledge → MCP & AI → Player access.

"My AI says it doesn't know about something I know is in the campaign."

Three common causes: the connector's tools are turned off in your AI app's tool permissions; the content is GM Secret and you are connected as a player; or (for players) the portal preset simply has not revealed it yet.

"Connection expired" / my AI app asks me to reconnect.

Tokens are short-lived and refresh automatically. If a refresh fails, reconnect and approve again. For players: if reconnecting fails outright, your GM may have turned Player access off.

"My app asks for an API key or token."

Grimoire connects with sign-in only. Look for an OAuth or "sign in" option; if your app has none, it cannot connect yet. See Connect to AI.

"ChatGPT finds things but will not create or edit."

That is ChatGPT's plan limit on custom connectors, not a Grimoire setting. See ChatGPT status.

Esc to close