Foundry MCP
Connect any AI to your Foundry VTT world: actors, combat, dice, journals, tokens, compendiums.
Is this yours? Claim it freeA few minutes with a DNS record or a file. Then edit it, get uptime emails, a README badge and paid calls.
Add to your AI
Remote MCP server (streamable HTTP). Most clients sign you in with the provider on first use.
Claude Code
claude mcp add --transport http foundry-mcp https://foundry-mcp.com/mcp
Claude Desktop, Cursor, Windsurf (mcp config)
{
"mcpServers": {
"foundry-mcp": {
"url": "https://foundry-mcp.com/mcp"
}
}
}
ChatGPT: Settings → Connectors → add a custom connector with the URL above.
How to call Foundry MCP from code (MCP)
Remote MCP over streamable HTTP with the official SDKs: initialize, list its tools, then call_tool / callTool. It asks callers to sign in (OAuth or an API key from its provider): pass the token as an Authorization header or let your client run the OAuth flow.
Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://foundry-mcp.com/mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
asyncio.run(main())TypeScript
// npm i @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://foundry-mcp.com/mcp")));
console.log((await client.listTools()).tools.map((t) => t.name));Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "foundry-mcp" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="foundry-mcp")Track record
- Uptime
- 100% uptime over the last 26 checked days (one unpaid request a day)
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Tools (40)
- World info
world-infoGet world overview: game system, content counts, compendium list - Create actor
actor-createCreate a new actor from scratch (custom NPCs, characters, creatures) - Import actor from compendium
actor-create-from-compendiumImport an actor (monster, NPC) from a compendium pack into the world - Delete actor
actor-deleteDelete an actor from the world - Filter actors
actor-filterSearch WORLD actors with D&D 5e structured filters (dnd5e worlds only) - Get actor
actor-getGet full actor details: HP, AC, abilities, skills, speed, proficiency, inventory with item IDs - List actors
actor-listList actors in the world (name, type, ID), at most 200 rows - Update actor
actor-updateUpdate an actor's name, image, folder, or system data (HP, XP, abilities...) - Activate item (D&D 5e)
dnd5e-item-activateActivate an item with full Foundry automation — triggers Midi-QOL and other automation module hooks - Use item (D&D 5e)
dnd5e-item-useUse an item from an actor's inventory via item.use() with dialogs suppressed: consumables (potions, scrolls), spells, weapons, features - Create actor item
item-createCreate a new item directly in an actor's inventory (dnd5e data model) - Add item from compendium
item-create-from-compendiumAdd an item (weapon, spell, feat, gear) from a compendium pack to an actor's inventory with its full data - Delete actor item
item-deleteRemove an item from actor's inventory permanently - List actor items
item-listList an ACTOR's inventory (embedded items: weapons, gear, spells, feats, class features) with descriptions, damage, and range - Update actor item
item-updateUpdate an item in actor's inventory - Create world item
world-item-createCreate a new item in the world's Items Directory (game.items) — distinct from item-create (which adds to an actor's inventory) - Delete world item
world-item-deletePermanently delete a world item from the Items Directory - Filter world items
world-item-filterSearch the world's Items Directory (game.items) with D&D 5e structured filters (dnd5e worlds only) - Get world item
world-item-getGet full ItemData for a single world item — id, uuid, name, type, image, folder NAME (read-side), and the complete system blob with rarit - Update world item
world-item-updateUpdate a world item — name, image, folder, or system data - Create folder
folder-createCreate a folder of the given document type - Delete folder
folder-deletePermanently delete a folder - Get folder
folder-getGet a single folder - List folders
folder-listList folders in the world (id, name, type, parent), optionally one document type - Update folder
folder-updateUpdate a folder — name, parent, color, description, or sort - Create effect
effect-createAdd a custom active effect to an actor (buff, debuff, custom condition) - Remove effect
effect-deleteRemove an active effect from an actor - List actor effects
effect-listGet all active effects on an actor, including conditions, buffs, debuffs, and custom effects - Toggle condition
effect-toggle-statusToggle a D&D 5e condition/status on an actor (dnd5e worlds only; in PF2e worlds use pf2e-set-condition / pf2e-remove-condition) - Update effect
effect-updateUpdate an existing active effect on an actor
Automated check: 80/100
Last run 2026-11-24 08:04 UTC. What we measured, not a guarantee.
- 10/10Every URL is https.
- 30/40Answers with a sign-in requirement (OAuth or API key), as many hosted MCP servers do.
- 15/1540 tools listed in its server card.
- 10/10MCP server card at https://foundry-mcp.com/.well-known/mcp/server-card.json.
- 10/10Has a homepage or documentation link.
- 5/5Answered in 323 ms.
- 0/10Not claimed with a domain proof yet.