
procload/dnd-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
사이트맵 리소스, 도구 및 프롬프트를 사용하여 DnD 5e API의 서버 구현.
개요
Claude와 다른 AI 조수를 Dungeons & Dragons 5e 게임 정보에 연결하는 모델 Context Protocol (MCP)을 구현하는 파이썬 기반 서버. Model Context Protocol (MCP)은 Claude와 같은 AI 조수가 외부 도구 및 서비스와 통신 할 수있게 해주는 Anthropic에 의해 개발 된 프레임 워크입니다. 이 서버는 프로토콜의 FastMCP, Anthropic의 Python 구현을 활용하여 AI 조수와 D&D 5e API 간의 구조화된 교량을 만듭니다. MCP의 상세한 설명과이 프로젝트가 어떻게 구현하는지, 우리의 블로그 기사를 확인하십시오.
개요(AI 번역)
Claude와 다른 AI 조수를 Dungeons & Dragons 5e 게임 정보에 연결하는 모델 Context Protocol (MCP)을 구현하는 파이썬 기반 서버.
MCP는 무엇입니까?
Model Context Protocol (MCP)은 Claude와 같은 AI 조수가 외부 도구 및 서비스와 통신 할 수있게 해주는 Anthropic에 의해 개발 된 프레임 워크입니다. 이 서버는 프로토콜의 FastMCP, Anthropic의 Python 구현을 활용하여 AI 조수와 D&D 5e API 간의 구조화된 교량을 만듭니다.
MCP의 상세한 설명과이 프로젝트가 어떻게 구현하는지, 우리의 블로그 기사를 확인하십시오.
특징
- **FastMCP 통합 **: D&D 게임 데이터를 쿼리하는 도구와 리소스를 가진 AI 조수 제공
- **D&D 5e API 통합 **: spells, 몬스터, 장비, 클래스, 경주 등에 대한 완벽한 액세스 -Efficient Caching: 향상된 성능에 대한 API 응답의 지속적 로컬 저장소
- Structured Data Access: 일관된 AI 상호 작용을 위한 Well-defined 리소스 및 도구
- 소스 기여: 포괄적인 추적 및 정보 소스 표시
- Visual Formatting: D&D 콘텐츠의 아름다운 프레젠테이션을 위한 Markdown 템플릿
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
D&D Knowledge Navigator
A Python-based server implementing the Model Context Protocol (MCP) that connects Claude and other AI assistants to Dungeons & Dragons 5e game information.
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. This server leverages FastMCP, Anthropic’s Python implementation of the protocol, to create a structured bridge between AI assistants and the D&D 5e API.
For a detailed explanation of MCP and how this project implements it, check out our blog article.
Features
- FastMCP Integration: Provides AI assistants with tools and resources to query D&D game data
- D&D 5e API Integration: Complete access to spells, monsters, equipment, classes, races, and more
- Efficient Caching: Persistent local storage of API responses for improved performance
- Structured Data Access: Well-defined resources and tools for consistent AI interactions
- Source Attribution: Comprehensive tracking and display of information sources
- Visual Formatting: Markdown templates for beautiful presentation of D&D content
- Query Enhancement: Intelligent processing of D&D queries with synonym handling and fuzzy matching
Setup
Prerequisites
- Python 3.10 or higher
- uv package manager (recommended)
- Claude Desktop client (for using with Claude)
Installation
-
Clone this repository:
git clone https://github.com/yourusername/dnd-knowledge-navigator.git cd dnd-knowledge-navigator -
Install dependencies:
uv pip install -r requirements.txtor
pip install . -
Configure Claude Desktop (if using with Claude):
- Create a
claude_desktop_config.jsonfile in your Claude Desktop configuration directory - Add the following configuration (adjust paths as needed):
{ "mcpServers": { "dnd": { "command": "/path/to/uv", "args": [ "--directory", "/path/to/dnd-knowledge-navigator", "run", "dnd_mcp_server.py" ] } } }
- Create a
-
Run the server:
uv run python dnd_mcp_server.py
MCP Tool Usage
When connected to an AI assistant, the following tools are available:
search_all_categories: Search across all D&D resources for specific termsverify_with_api: Verify D&D statements against official API datacheck_api_health: Check the health and status of the D&D 5e API
Source Attribution System
The server includes a comprehensive source attribution system that:
- Tracks the source of all information returned to the user
- Provides confidence levels for each piece of information
- Includes API endpoints and relevance scores
- Formats attribution information for clear presentation
Template System
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"dnd": {
"command": "/path/to/uv",
"args": [
"--directory",
"/path/to/dnd-knowledge-navigator",
"run",
"dnd_mcp_server.py"
]
}
}
}