dnd5e-mcp
v1.0.2
Published
Use this MCP server to the D&D 5e SRD, monsters, spells, classes, and equipment. Tools include get monster, get spell, list monsters
Maintainers
Readme
dnd5e mcp
MCP server for the D&D 5e SRD (dnd5eapi.co), monsters, spells, classes, equipment.
Tools
| Tool | What it does |
|---|---|
| get_monster | Full stat block by index slug (adult-red-dragon, goblin…) |
| get_spell | Spell by index slug (fireball, wish…), full text + components |
| list_monsters | A, Z monster list to find valid slugs |
| get_class | Class overview, hit die, skill choices, starting equipment |
Usage
npm run build && node dist/index.jsExample:
get_monster { index: "adult-red-dragon" }
get_spell { index: "fireball" }Keyless (community hosted SRD endpoint). Stat blocks include AC/HP/speed, all six ability scores, actions, and special abilities.
Quick start
npm install
npm run build
node dist/index.jsThe server uses stdio, so it can be connected to Claude Desktop, Cursor, VS Code, MCP Inspector, or another compatible MCP client.
Tools at a glance
get_monster: Get a D&D 5e monster by index slug (e.g.get_spell: Get a D&D 5e spell by index slug (e.g.list_monsters: List D&D 5e SRD monsters by name (a-z), useful for finding valid slugs.get_class: Get a D&D 5e class overview - hit die, proficiencies, starting equipment.
Limits and privacy
This project is intentionally narrow. It should be treated as a practical helper, not a complete certification or security audit. Check the implementation and the returned data before using it with sensitive material. No credentials are required unless the project explicitly says otherwise.
Try it
After building, connect the server through your MCP client. The repository root also contains smoke-test.mjs for projects covered by the shared harness. A typical tool call starts with get_monster.
Premium tools
These tools need a license key:
list_spellslist_magic_items
Buy a key at https://mcp-marketplace.io/server/io-github-mrfentmen-dnd5e-mcp and set it in your MCP client config:
"env": { "MCP_LICENSE_KEY": "mcp_live_..." }The key is checked against MCP Marketplace, cached for 24 hours, and keeps working offline once one check has succeeded. Every other tool on this server stays free.
