Access Dungeons & Dragons 5th Edition content, including spells, classes, and monsters, via the Open5e API.
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.
unified_search
- Search across all D&D content types with intelligent ranking
query
parameter for search termscontent_types
filter for specific content (spells, monsters, races, etc.)fuzzy_threshold
for matching sensitivitysearch_spells
- Search for spells by name or retrieve all spells
query
parameter for filtering by spell nameget_spell_details
- Get comprehensive details about a specific spell
spell_name
parameterget_spell_by_level
- Get all spells of a specific level (0-9)
level
parameter (0 for cantrips, 1-9 for spell levels)get_spells_by_class
- Get all spells available to a specific class
class_name
parameter (e.g., "wizard", "cleric", "bard")search_classes
- Get a list of all available D&D 5E classes
get_class_details
- Get detailed information about a specific class
class_name
parametersearch_races
- Get a list of all available D&D 5E races
get_race_details
- Get detailed information about a specific race
race_name
parametersearch_monsters
- Search for monsters with filtering options
query
parameter for monster nameschallenge_rating
filterget_monsters_by_cr
- Get all monsters of a specific challenge ratingget_monsters_by_cr_range
- Get monsters within a CR range for encounter planningsearch_weapons
- Search for weapons with property filtering
search_armor
- Search for armor with AC and category filteringsearch_magic_items
- Search for magic items with rarity filteringget_magic_item_details
- Get detailed magic item informationsearch_feats
- Search for character featsget_feat_details
- Get detailed feat informationsearch_backgrounds
- Search for character backgroundsget_background_details
- Get detailed background informationgenerate_character_build
- Generate optimized character buildscompare_character_builds
- Compare multiple character build optionsget_build_recommendations
- Get build recommendations for party compositionbuild_encounter
- Build balanced encounters for specified party
party_size
, party_level
, and difficulty
calculate_encounter_difficulty
- Calculate difficulty of custom encounters
search_conditions
- Search for status conditions and effectsget_condition_details
- Get detailed condition informationget_all_conditions
- Get all conditions for quick referencesearch_sections
- Search rules sections for quick rule lookupsget_section_details
- Get detailed rules section informationsearch_spell_lists
- Search spell lists by classget_spell_list_details
- Get detailed spell list for specific classesClone this repository:
git clone <repository-url>
cd dnd-mcp
Install dependencies:
npm install
Build the project:
npm run build
npm start
npm run dev
Add to your MCP client configuration (e.g., mcp.json
):
{
"mcpServers": {
"dnd-5e": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/dnd-mcp"
}
}
}
The server implements the Model Context Protocol, exposing tools that can be called by MCP clients. Here are some example tool calls:
{
"name": "unified_search",
"arguments": {
"query": "fireball",
"content_types": ["spells", "magic-items"]
}
}
{
"name": "build_encounter",
"arguments": {
"party_size": 4,
"party_level": 5,
"difficulty": "medium",
"environment": "dungeon"
}
}
{
"name": "generate_character_build",
"arguments": {
"playstyle": "damage",
"preferred_class": "fighter",
"campaign_type": "combat"
}
}
npm run build
- Compile TypeScript to JavaScriptnpm run dev
- Run in development mode with hot reloadnpm start
- Run the built servernpm run lint
- Run ESLintnpm test
- Run Jest tests (includes comprehensive Open5e API tests)src/
├── index.ts # MCP server implementation and tool handlers
├── scraper.ts # Open5e API integration and data fetching
tsconfig.json # TypeScript configuration
mcp.json # MCP client configuration example
This server uses the Open5e REST API to access D&D 5th Edition content. The implementation:
MIT License
A Go implementation of a Model Context Protocol (MCP) server for Trino, enabling LLM models to query distributed SQL databases through standardized tools.
Read and write access to Airtable databases.
Stock market API made for AI agents
Open source MCP server specializing in easy, fast, and secure tools for Databases.
MCP server for SQLite files. Supports Datasette-compatible metadata!
Interact with Snowflake databases to query and manage data.
Access financial statements, including income, balance sheets, and cash flow, for companies listed on the Securities Exchange of Thailand (SET).
An AI-powered server that generates PyAirbyte pipeline code and instructions using OpenAI and connector documentation.
Provides access to supOS open APIs for querying topic structures, real-time and historical data, and executing SQL queries.
Provides natural language access to relational databases using advanced language models, supporting multiple database types.