dnd-mcp logo

Dnd MCP

by procload

0 forks
0 stars
Free

What is dnd-mcp

dnd-mcp is a Python-based server developed by Procload, designed to connect AI assistants like Claude to the vast world of Dungeons & Dragons 5th Edition (D&D 5e) game information. Implementing the Model Context Protocol (MCP), this server acts as a bridge between AI systems and the D&D 5e API, allowing seamless access to game data such as spells, monsters, equipment, and more. By leveraging FastMCP, a Python implementation of MCP, dnd-mcp ensures structured communication between AI and the D&D data, enhancing the capabilities of AI in gaming contexts.

How to Use dnd-mcp

To get started with dnd-mcp, you'll need Python 3.10 or higher and the package manager uv. Installation involves cloning the server's code repository, installing necessary dependencies, and configuring your Claude Desktop client if you intend to use it with Claude. Once set up, you can start the server and begin connecting AI assistants to explore the rich datasets of D&D 5e. The server provides several tools for querying and verifying D&D information, ensuring that the data returned is accurate and relevant.

To run the server, execute the main server script, and for testing, use the provided test scripts to ensure everything is functioning correctly. The server also maintains a local cache to enhance performance by reducing repetitive API calls.

Key Features of dnd-mcp

  • FastMCP Integration: Utilizes FastMCP for a seamless connection between AI assistants and D&D data.
  • D&D 5e API Integration: Offers comprehensive access to a wide range of D&D 5e data, including spells, monsters, and equipment.
  • Efficient Caching: Implements persistent local storage of API responses to boost performance.
  • Structured Data Access: Provides well-organized resources and tools for consistent and reliable AI interactions.
  • Source Attribution: Tracks and displays the sources of information, ensuring transparency and reliability.
  • Visual Formatting: Uses markdown templates to present D&D content beautifully and clearly.
  • Query Enhancement: Enhances D&D queries with intelligent features like synonym handling and fuzzy matching to improve search accuracy.

The server's features are designed to enhance both the performance and usability of AI assistants in a gaming context, ensuring that users receive accurate, timely, and well-presented information from the D&D universe. Whether you are a game master, player, or developer, dnd-mcp provides a powerful toolset to integrate AI into your D&D experiences.

How to Use

To use the dnd-mcp, follow these steps:

  1. Visit https://github.com/procload/dnd-mcp
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using dnd-mcp capabilities within your Claude conversations

Additional Information

Created

March 14, 2025

Company

procload

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More