D&D Knowledge Navigator logo

D&D Knowledge Navigator

by procload

A Python server that connects AI assistants like Claude to Dungeons & Dragons 5e game information using the Model Context Protocol (MCP). It leverages FastMCP to provide a structured bridge between AI and the D&D 5e API.

View on GitHub

Last updated: N/A

What is D&D Knowledge Navigator?

The D&D Knowledge Navigator is a Python-based server that implements the Model Context Protocol (MCP) to connect AI assistants like Claude to Dungeons & Dragons 5e game information. It provides AI with tools and resources to query D&D data.

How to use D&D Knowledge Navigator?

To use, clone the repository, install dependencies using uv or pip, configure Claude Desktop (if using with Claude) by creating a claude_desktop_config.json file, and then run the server using uv run python dnd_mcp_server.py.

Key features of D&D Knowledge Navigator

  • FastMCP Integration

  • D&D 5e API Integration

  • Efficient Caching

  • Structured Data Access

  • Source Attribution

  • Visual Formatting

  • Query Enhancement

Use cases of D&D Knowledge Navigator

  • Allowing AI assistants to answer questions about D&D 5e rules and lore

  • Enabling AI to generate D&D content, such as monster descriptions or spell effects

  • Providing AI with the ability to verify D&D statements against official API data

  • Creating AI-powered D&D game masters

FAQ from D&D Knowledge Navigator

What is MCP?

The Model Context Protocol (MCP) is a framework developed by Anthropic that enables AI assistants like Claude to communicate with external tools and services.

What D&D 5e data is accessible?

The server provides complete access to spells, monsters, equipment, classes, races, and more from the D&D 5e API.

How does the server improve performance?

The server uses efficient caching with persistent local storage of API responses to minimize API calls and improve response time.

What tools are available for AI assistants?

Tools include search_all_categories, verify_with_api, and check_api_health.

How is the source of information tracked?

The server includes a comprehensive source attribution system that tracks the source of all information, provides confidence levels, and includes API endpoints and relevance scores.