TDC MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TDC MCP Serversearch for tokens with fire damage and healing abilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TDC MCP Server
An MCP server that exposes True Dungeon Companion game data — tokens, set/group bonuses, and rulebook pages — as tools for Claude and other MCP clients.
Tools
Tool | Description |
| Search tokens by name, slot, rarity, or class |
| Build arbitrary AND/OR filter trees across 29 fields (abilities, stats, damage, etc.) |
| Get full detail for a single token (effects, slots, damage wheel, etc.) |
| List all set bonuses with tier effects |
| Get a single set bonus by id |
| List all group bonuses with tier effects |
| Get a single group bonus by id |
| List all rulebook pages (title + path) |
| Get the full text content of a rulebook page |
| Get the running TDC API build version and start time |
| Read a token's typed effects in editable JSON form |
| Replace a token's effects / set isValid on the beta record (ContentEditor key) |
Related MCP server: MCP-openproject
Quick start (npx)
No install or build needed. Add to your .claude/settings.json:
{
"mcpServers": {
"tdc": {
"command": "npx",
"args": ["@tdcompanion/mcp-server"],
"env": {
"TDC_API_KEY": "tdc_live_<your-key>"
}
}
}
}Environment variables
Variable | Default | Description |
|
| API base URL (must point at the API host, not the web app) |
| (none) | Bearer key: higher rate limits (600 req/min vs 60); a ContentEditor's key also unlocks |
The server works without an API key (anonymous access), but authenticated keys get 10x the rate limit. Generate one from your profile's Developer tab at https://tdcompanion.app/profile.
Development
cd src/MCP/@tdcompanion/mcp-server
npm install
npm run build # compile TypeScript → dist/
npm start # run locally via stdioPublishing
npm run build
npm publishThe prepublishOnly script runs the build automatically. The files field in package.json ensures only dist/ is included in the published package.
Changelog
1.1.0
Added
get_set_bonus,get_group_bonus, andget_api_versiontools.Stricter input validation: pagination is clamped (
skip >= 0,take1–200), andslot/rarity/classreject unknown values up front.advanced_search_tokensvalidates thefilterJSON is a FilterExpression object before sending.All tools return a clean
{ isError: true }result on failure instead of throwing.Rulebook HTML stripping now handles numeric entities (
&#x…;,&#…;) and preserves list structure.List-style tools truncate output over ~20k chars with a clear "…N more truncated" footer.
This server cannot be deployed
Maintenance
Related MCP Connectors
Related MCP Servers
- -
- -
- -
- -