D&D Rules MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DND_RULES_CACHE | No | Directory used for the local embedding/cache files. Defaults to ~/.cache/dnd-rules-mcp. | ~/.cache/dnd-rules-mcp |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Independent SRD 5.2.1 rules assistant. The source is a specific Creative Commons SRD, not every D&D publication. Search results are candidates, not rulings. Use get_rule to read full entries (follow next_offset when present). Resolve the user's natural-language question using retrieved sources, then call can_i_do with explicit structured facts for supported deterministic checks. Never interpret no_violation_found as complete legality. Report unverified interactions and missing facts; ask the user or DM instead of inventing rules. Separate rules as written, interpretation, and declared house rules. Keep all citations pinned to this SRD version. No tool mutates a campaign or rolls dice.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_rulesB | Search the entire SRD. Hybrid uses local embeddings plus full-text search. Return cited candidates, not an adjudication. Search classes, spells, monsters, equipment, feats, exploration and any other SRD material. |
| get_ruleA | Read a cited rule, spell, section or page. Accept an ID from search, an exact title, or page:N. Text is normalized PDF extraction, not an AI summary. Follow next_offset to retrieve long entries completely. |
| can_i_doA | Research any SRD question and optionally run deterministic checks. Supported fact kinds: action_economy, movement, opportunity_attack, spellcasting, concentration, damage, roll, character. Include special_rules: [] only when no feature exceptions or house rules apply. Supply null for unknown facts. Other interactions are handled by the MCP host using the complete cited corpus, not by pretending a missing checker approved them. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| adjudicate | A grounded research workflow for any question covered by the SRD. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| source_manifest | Pinned version, source hash, license attribution and coverage. |
TDQS
Scored across 3 tools
The three tools map to distinct modes: discovery (search_rules), rule reading (get_rule), and question adjudication with optional checks (can_i_do). The boundary between search_rules and can_i_do is somewhat blurred since both accept free-form SRD queries, though can_i_do's deterministic check layer and fact kinds differentiate it.
All names are snake_case, and search_rules/get_rule follow a clear verb_noun pattern. can_i_do breaks the verb_noun convention with a question-style name, a minor but noticeable deviation.
Three tools is a tight, well-scoped triad covering search, read, and adjudicate. Each tool has a clear role and nothing appears redundant or missing at the count level.
The surface covers the core lifecycle: find cited material, read it fully via offsets, and research questions with optional deterministic checks. Minor gaps exist—no structured browse/list by category (e.g. list all spells of a level) and no explicit citation-validation tool—but agents can work around these via search and get_rule.