Dnd MCP Server

MCP server for D&D 5E content using Open5e API - Complete migration from WikiDot scraping

Local serverstdioTypeScript

What is the Dnd MCP Server?

Dnd MCP connects Dnd MCP to AI assistants that speak the Model Context Protocol. MCP server for D&D 5E content using Open5e API - Complete migration from WikiDot scraping.

What Dnd MCP does

An MCP (Model Context Protocol) server that provides access to D&D 5th Edition content via the Open5e REST API. This server enables AI assistants and other MCP clients to retrieve comprehensive D&D 5E information including spells, classes, races, monsters, and equipment.

Practical notes

  • Maintained by heffrey78, written in TypeScript.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ruleset"5e-2014", "5e-2024" or "a5e";
sourcesOpen5e document keys, e.g. ["srd-2014", "toh"].
unified_searchSearch across all D&D content types (spells, monsters, items, races, classes, etc.) with intelligent ranking and filtering
search_spellsSearch spells by name, level, school or class list
get_spell_detailsGet detailed information about a specific D&D 5E spell
get_spell_by_levelGet all spells of a specific level
get_spells_by_classGet the spells on a class's spell list, lowest level first; filter by level or max_level
search_classesList D&D 5E base classes with their features and subclass names
get_class_detailsGet a class: hit die, proficiencies, features by level, spell slots and subclasses with their features
search_racesSearch species, including subspecies whose names omit the parent (Lightfoot for Halfling)
get_race_detailsGet a species with what it inherits resolved: size, speed, combined ability increases, parent traits
search_monstersSearch monsters by name, challenge rating, type or environment
get_monsters_by_crGet monsters by challenge rating
get_monsters_by_cr_rangeGet monsters within a challenge rating range, optionally by environment and type
search_weaponsSearch for D&D 5E weapons with property filtering
search_magic_itemsSearch magic items by name, rarity, category or attunement
get_magic_item_detailsGet detailed information about a specific D&D 5E magic item
search_armorSearch for D&D 5E armor with filtering options
get_armor_detailsGet detailed information about a specific D&D 5E armor
search_featsSearch for D&D 5E feats with filtering options
get_feat_detailsGet detailed information about a specific D&D 5E feat
search_backgroundsSearch for D&D 5E character backgrounds with filtering options
get_background_detailsGet detailed information about a specific D&D 5E background
search_conditionsSearch for D&D 5E conditions and status effects
get_condition_detailsGet a condition, with its wording for the requested ruleset
get_all_conditionsGet all D&D 5E conditions for quick reference
search_sectionsSearch rules sections by name or text
get_section_detailsGet a rules section by name or key
get_all_sectionsList every rules section by name, key and chapter, without the text
build_encounterBuild a balanced encounter for a party, sampling monsters from the whole CR range
calculate_encounter_difficultyCalculate the difficulty of a custom encounter with specific monsters
generate_character_buildGenerate a build: species, class and subclass, background, ability scores, hit points, spells, feats and a level-by-level plan
compare_character_buildsGenerate and compare multiple character builds with different options
get_build_recommendationsGet character build recommendations based on party composition and campaign needs
get_api_statsGet API performance and caching statistics

How to install the Dnd MCP Server

{
  "mcpServers": {
    "dnd-5e": {
      "command": "node",
      "args": [
        "dist/index.js"
      ],
      "cwd": "/absolute/path/to/dnd-mcp"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Frequently asked questions

MCP server for D&D 5E content using Open5e API - Complete migration from WikiDot scraping Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.