dnd-mcp

dnd-mcp

8

D&D Knowledge Navigator is a Python server implementing the Model Context Protocol to bridge AI assistants and Dungeons & Dragons 5e data, offering features like enhanced query processing and source attribution. This integration allows AI to interact with detailed game data efficiently, enhancing role-playing experiences.

D&D Knowledge Navigator

A Python-based server using the Model Context Protocol (MCP) to connect AI assistants with Dungeons & Dragons 5e game data.

Features

  • Integration with FastMCP and D&D 5e API
  • Persistent local storage for API responses
  • Tools for structured AI interactions
  • Source attribution and visual formatting
  • Enhanced query processing for synonyms and misspellings

Setup

  • Requires Python 3.10+, uv package manager, Claude Desktop client
  • Clone the repository and install dependencies using uv or pip
  • Run the server with uv or directly with python

MCP Tool Usage

  • search_all_categories, verify_with_api, check_api_health

Contributing

  • Contributions via Pull Requests are welcome.

License

  • MIT License

Acknowledgments

  • Using D&D 5e API and the MCP framework by Anthropic.