# dnd-oracle

An MCP server with 20 tools for searching D&D 5e SRD monsters, spells and gear, plus encounter math. The database ships locally, so no internet is needed.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: gregario
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gregario/dnd-oracle
- Updated: 2026-09-14
- HTML: https://affpapa.org/en/nevibecode/mcp/dnd-oracle

## What it does

The server hands your agent a bundled SRD 5.1 dataset: monsters, spells, equipment, magic items, classes, races, conditions, rules sections and random tables. Six tools cover reference lookups. The other fourteen do arithmetic — XP budgets for encounters, spell slots, a resistance matrix across a monster group, gear weight and cost, damage per round, travel time, what a rest restores.

Everything runs against a SQLite file inside the package. Answers come from that fixed dataset rather than from model memory. Node.js 18 or newer is required, and the process starts with `npx -y dnd-oracle`.

On Claude the install is a single line: `claude mcp add dnd-oracle -- npx -y dnd-oracle`. Cursor and GitHub Copilot take a manual stdio entry in their config files with the same command. The SRD 5.1 material is licensed CC-BY-4.0; the package itself is MIT.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add dnd-oracle -- npx -y dnd-oracle
```

### Codex

**Platform CLI**
```bash
codex mcp add dnd-oracle -- npx -y dnd-oracle
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "dnd-oracle": {
            "command": "npx",
            "args": [
                "-y",
                "dnd-oracle"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "dnd-oracle": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "dnd-oracle"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add dnd-oracle npx -y dnd-oracle
```

## When to use it
- pull a monster stat block by type, size and challenge rating
- list the spells a class can cast at a given level with slots and concentration
- work out an XP budget and pick monsters that fit the difficulty
- collect resistances and immunities for a whole monster group
- check total weight, cost and AC from an equipment list

## Example prompts
- Find every monster with challenge rating 5 and show me the stat blocks
- Build a medium-difficulty encounter for four level 3 characters
- Which spells does a level 7 wizard have, and which need concentration?

## Similar
- [Pascal 3D Editor](https://affpapa.org/en/nevibecode/mcp/pascal-3d-editor.md) — MCP server · ★ 25085
- [Unity-MCP](https://affpapa.org/en/nevibecode/mcp/unity-mcp.md) — MCP server · ★ 4523
- [mcp](https://affpapa.org/en/nevibecode/mcp/sceneview-mcp.md) — MCP server · ★ 1348
- [Gearboy MCP Server](https://affpapa.org/en/nevibecode/mcp/gearboy-mcp-server.md) — MCP server · ★ 1219
- [ChiR24-unreal_mcp_server](https://affpapa.org/en/nevibecode/mcp/chir24-unreal-mcp-server.md) — MCP server · ★ 975
- [Nova3D](https://affpapa.org/en/nevibecode/mcp/nova3d.md) — MCP server · ★ 733

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
