dndbeyond-mcp
Enables AI assistants to manage D&D Beyond characters, access campaigns, and look up spells, monsters, items, and more through a reverse-engineered API.
README
dndbeyond-mcp
A TypeScript MCP (Model Context Protocol) server for D&D Beyond. Gives Claude (and other MCP-compatible AI assistants) access to your D&D Beyond characters, campaigns, spells, monsters, items, and more.
Disclaimer: This project uses unofficial, reverse-engineered D&D Beyond endpoints. It is not affiliated with, endorsed by, or supported by D&D Beyond or Wizards of the Coast. Endpoints may change without notice.
Features
- Character Management — Read character sheets, update HP, spell slots, death saves, currency
- Campaign Access — List campaigns, view party rosters
- Reference Lookups — Search and retrieve spells, monsters, magic items, feats, conditions, classes
- Workflow Prompts — Session prep, encounter building, level-up guidance, spell recommendations
- Browser-Based Auth — Playwright-powered login flow (no manual cookie extraction)
Installation
You can run this server without installing via npx:
npx dndbeyond-mcp
Or install globally:
npm install -g dndbeyond-mcp
Setup
Before using the server, authenticate with D&D Beyond:
npx dndbeyond-mcp setup
This opens a browser window where you log into D&D Beyond normally. The server captures your session cookie automatically and saves it to ~/.dndbeyond-mcp/config.json.
By default the login flow launches your installed Chrome. To use a specific browser binary (e.g. on NixOS), set DNDBEYOND_MCP_BROWSER_PATH to its path:
DNDBEYOND_MCP_BROWSER_PATH=/run/current-system/sw/bin/chromium npx dndbeyond-mcp setup
Claude Desktop Configuration
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"dndbeyond": {
"command": "npx",
"args": ["-y", "dndbeyond-mcp"]
}
}
}
After adding the configuration, restart Claude Desktop.
Tools
Character
get_character— Full character sheet by ID or nameget_character_choices— Inspect builder choices: resolved values, options, and the ids to change themlist_characters— All your charactersupdate_hp— Apply damage or healingupdate_spell_slots— Use or restore spell slotsupdate_death_saves— Record death savesupdate_currency— Modify gold/silver/copperuse_ability— Decrement limited-use features
Campaign
list_campaigns— Your active campaignsget_campaign_characters— All characters in a campaign
Reference
search_spells/get_spell— Spell lookup with filterssearch_monsters/get_monster— Monster stat blockssearch_items/get_item— Magic item catalogsearch_feats— Feat discoveryget_condition— Condition rulessearch_classes— Class/subclass info
Utility
setup_auth— Re-run login flowcheck_auth— Verify session is valid
Resources
| URI | Description |
|---|---|
dndbeyond://characters |
Your character list |
dndbeyond://character/{id} |
Character sheet |
dndbeyond://character/{id}/spells |
Spell list |
dndbeyond://character/{id}/inventory |
Inventory |
dndbeyond://campaigns |
Your campaigns |
dndbeyond://campaign/{id}/party |
Party roster |
Prompts
| Prompt | Purpose |
|---|---|
character-summary |
Full character rundown |
session-prep |
DM session preparation |
encounter-builder |
Balanced encounter design |
spell-advisor |
Spell recommendations |
level-up-guide |
Level-up walkthrough |
rules-lookup |
Rules clarification |
Security
This server stores your D&D Beyond session cookie locally at ~/.dndbeyond-mcp/config.json. The cookie provides full access to your D&D Beyond account. Never share this file. The server only communicates with dndbeyond.com domains.
Credits
Originally created by Alex Worland (@AlexWorland) — original repository: https://github.com/AlexWorland/dndbeyond-mcp
This fork, maintained by Dennis Konrad, adds to the character builder:
- Entity IDs in
search_races/search_classes/search_backgrounds/search_feats/search_itemsoutput (required by the write tools) - New tools:
search_subclasses,set_max_hp,add_custom_proficiency,add_custom_item,equip_item - Fixed
update_currency(the deprecated endpoint was replaced with the working one) - Corrected
set_ability_scoredocs (base vs. bonus vs. override) and aresolve_choicescaveat - Test fixes after the character-list / race-shape refactor
License
MIT — see LICENSE.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。