Warhammer MCP
MCP server + Foundry VTT module for WFRP4e that lets AI clients interact with a Foundry world via tools for managing characters, journals, rolltables, and more.
README
Warhammer MCP
MCP server + Foundry VTT module that lets MCP-capable AI clients interact with a Foundry world.
This repo is WFRP4e-focused (Warhammer Fantasy Roleplay 4e) and ships a Foundry module named Warhammer MCP (id: warhammer-mcp).
Lineage. Originally derived from
adambdooley/foundry-vtt-mcp(MIT). The two histories share a merge base (45b8af2) but have run in parallel since the split — there are zero merged upstream commits in this codebase. Treat it as a sibling project, not an active fork. Differences from upstream: WFRP4e-only (D&D5e / PF2e / DSA5 / Cosmere removed), dedicatedhandlers/layer in the Foundry module, umbrella/action tool pattern, unifiednotify.tsGM-feedback channel,cross-doc-fkaudit + repair, persistence runbook, multi-client configs, skills harness. ComfyUI map-generation and WebRTC transport are not present.
- Version: see
package.json/docs/CHANGELOG.md - Foundry compatibility: v13 only (pinned)
How it works
MCP Client (Claude Desktop / Claude Code / VS Code / etc.)
└─ stdio → packages/mcp-server/dist/index.js (MCP wrapper)
└─ TCP 31414 → packages/mcp-server/dist/backend.js (backend)
└─ WebSocket 31415 → Foundry module (in browser)
Ports
31414— MCP tool calls (client → backend)31415— Foundry browser module bridge (Foundry → backend)
Quick start (from source)
1) Install & build
npm install
npm run build
2) Install the Foundry module
You need the module available under your Foundry data folder, e.g.:
<Foundry Data>/Data/modules/warhammer-mcp/
For local development, this repo includes a simple deploy script:
npm run build:deploy
npm run build:deploy uses scripts/deploy-foundry.js, which currently has a hard-coded target path. If your Foundry data folder is different, edit scripts/deploy-foundry.js (or copy the module folder manually).
After deploying, reload the Foundry page (F5) and enable Warhammer MCP in your world.
3) Start the backend
You have two common options:
Option A — Client-spawned (most MCP clients)
- Configure your MCP client to run
node <repo>/packages/mcp-server/dist/index.js. - The wrapper will spawn/attach to the backend automatically.
Option B — Standalone (recommended for always-on / multi-client)
- Windows convenience scripts in the repo root:
start-mcp.bat/start-mcp.ps1stop-mcp.bat/stop-mcp.ps1status-mcp.bat/status-mcp.ps1
See README-PERSISTENCE.md for the persistence runbook (logs, shortcuts, troubleshooting).
MCP client configuration
This repo includes ready-to-copy config snippets for multiple clients:
claude_desktop_config.example.json(Claude Desktop)configs/clients/*(Claude Code, VS Code Copilot, Codex, Gemini)
Start here:
configs/clients/README.md
Verification
Once connected, try calling the world probe tool:
mcp__foundry-mcp__get-world-info
Tool surface (post-consolidation)
The API surface is intentionally consolidated: 36 tools implemented as action-based “umbrella” tools (e.g. manage-character, manage-journal, manage-rolltable, etc.).
Authoritative list and architecture notes live in:
docs/INSTRUCTIONS.mddocs/CHANGELOG.mddocs/TOOL_CONSOLIDATION_PLAN_2.md
Repo layout
packages/
mcp-server/ MCP wrapper + backend (Node)
foundry-module/ Foundry VTT module (browser)
shared/ Shared TS types/schemas
configs/clients/ MCP client config snippets
docs/ Dev notes + system guide
tests/ Vitest tests (skills harness)
test/ Manual test suite docs
Key entrypoints:
packages/mcp-server/dist/index.js— MCP stdio wrapper (what clients execute)packages/mcp-server/dist/backend.js— backend process (standalone / persistent)
Development
Common commands
npm run build
npm run build:deploy
npm run test
npm run test:skills
npm run lint
npm run typecheck
After making changes
- Foundry module changes:
npm run build:deploy→ reload Foundry (F5) - MCP server changes:
npm run build→ restart your MCP client (or restart the standalone backend)
More details:
docs/INSTRUCTIONS.md
License & Credits
MIT — see LICENSE.
Originally derived from adambdooley/foundry-vtt-mcp (Adam Dooley, MIT). Upstream credit retained in package.json contributors.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。