Open-source module · hosted MCP server
Your Foundry VTT world, open to any AI assistant.
Install one module, sign in with Patreon, and Claude, ChatGPT, Codex or Cursor can read your campaign and act in it: roll dice, run combat, write journals, move tokens, import from compendiums.
Free to start · Foundry VTT 11–14 · dnd5e and pf2e aware
| Character | HP | AC |
|---|---|---|
| Randal · Fighter | 12 / 12 | 19 |
| Riswynn · Rogue | 11 / 11 | 13 |
| Akra · Cleric | 9 / 9 | 16 |
| Zanna · Wizard | 8 / 8 | 11 |
Works with
One endpoint, https://foundry-mcp.com/mcp — any client that speaks MCP.
Three steps
Connected in five minutes
Install the module
In Foundry: Add-on Modules → Install Module → search Foundry API Bridge. Enable it in your world.
Get a key on Patreon
Click Get API Key in the module settings, sign in with Patreon, paste the key back. A free account is enough.
Connect your AI client
Add the server URL to your client and sign in when it asks. No key to paste for Claude, ChatGPT, Codex, Cursor, VS Code or Gemini CLI.
https://foundry-mcp.com/mcp121 tools
Everything a GM does at the table
Roll and fight
Dice, initiative, the combat tracker turn by turn. System-aware rolls: skills, saves, attacks and damage for dnd5e; strikes, conditions and spells for pf2e.
Write the story
Journals and pages, roll tables, chat messages and exports. Ask for a session recap and get it filed where it belongs.
Run the table
Scenes, tokens, doors, world time, pause. Move the goblins, open the gate, advance the clock.
Browse compendiums
Search SRD and module packs, filter monsters by CR, import actors and items straight into the world.
Same module, same key: a public REST API at api.foundry-mcp.com for bots and custom tools.
Pricing
Free for the party, paid for the Dungeon Master
- 58 tools: actors, items, effects, folders, chat
- Dice, skill, save and attack rolls for dnd5e; strikes, conditions and spells for pf2e
- Initiative rolls
- Code mode: 30 runs a day
- Journals and pages: read, write, show to players
- Roll tables: roll, create, edit
- 74 tools in total
- Code mode: 100 runs a day
- Scenes, tokens, doors, world time, pause
- The combat tracker, turn by turn
- Compendium search and import into the world
- All 121 tools · code mode without a daily limit
Every locked tool stays visible: the assistant tells you which tier unlocks it, and your key updates within seconds of upgrading. A key without a membership still answers world info and dice rolls.
Runs only on the GM's client
Nothing runs for players and nothing listens on your machine: the module opens one outgoing connection.
Your world is not stored
Commands pass through to your Foundry client and results go straight back. Revoke access by deleting the key.
Open source module
The bridge is on GitHub under an open licence. Read what it does before you install it.