Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Query D&D 5e game data from 22+ source books and contribute to the open-source database with validation, diffing, and PR generation tools.

README.md

mnehmos.open5e.mcp

MCP server for Open5e - Query D&D 5e game data and contribute to the open-source database

![Tests](./tests) ![License: MIT](./LICENSE) ![Node](https://nodejs.org)

A dual-mode MCP server that provides:

  • Consumer Mode: Query spells, monsters, items, conditions, and more from 22+ source books
  • Contributor Mode: Validate entries, check for collisions, diff against live API, and generate PR-ready JSON
  • RAG Developer Chatbot: Search and chat with Open5e repository documentation

Features

| Category | Tools | What It Does | |----------|-------|--------------| | Consumer | 6 tools | Search, get, list, batch fetch D&D 5e content | | Contributor | 5 tools | Validate schemas, check slugs, diff entries, generate PRs | | RAG | 5 tools | Search repo docs, chat with AI about contributing | | Meta | 3 tools | Health checks, list documents/endpoints |

Installation

npm

npm install -g mnehmos.open5e.mcp

From Source

git clone https://github.com/Mnehmos/mnehmos.open5e.mcp.git
cd mnehmos.open5e.mcp
npm install
npm run build

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mnehmos.open5e.mcp": {
      "command": "node",
      "args": ["path/to/mnehmos.open5e.mcp/dist/index.js"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "mnehmos.open5e.mcp": {
      "command": "mnehmos-open5e-mcp"
    }
  }
}

Quick Start

Search for Spells

Search: "fireball"
→ Returns Fireball, Delayed Blast Fireball from multiple sources

Get a Monster

Get: monsters/goblin
→ Full stat block with AC, HP, abilities, actions, environments

Validate a Contribution

Validate: { name: "Custom Spell", level: 3, school: "Evocation", ... }
→ Errors for missing required fields
→ Suggestions for slug format
→ Warnings for unusual values

Tool Reference

Consumer Tools

search

Search across all Open5e resources with optional filters.

search({
  query: "fireball",
  resource_type: "spells",      // optional: spells, monsters, items, etc.
  document_slug: "srd-2014",    // optional: filter by source book
  limit: 10                     // optional: max results (default 20)
})

Returns results with slug, key (for v2 resources), name, excerpt, and web_url.

get

Fetch a single resource by slug. Auto-tries common document prefixes for v2 resources.

// Simple slug - auto-discovers the full key
get({ resource_type: "spells", slug: "fireball" })
// → Finds srd-2024_fireball or srd-2014_fireball

// Full key - direct lookup
get({ resource_type: "spells", slug: "srd-2014_fireball" })

list

List resources with filters (pagination supported).

list({
  resource_type: "monsters",
  cr: 3,                        // Challenge Rating
  document_slug: "wotc-srd",    // Source book
  type: "Dragon",               // Creature type
  limit: 20,
  offset: 0
})

list({
  resource_type: "spells",
  level: 3,                     // Spell level (0-9)
  school: "Evocation",          // Spell school
  document_slug: "srd-2014"
})

batch_get

Fetch multiple resources in parallel (max 50).

batch_get({
  requests: [
    { resource_type: "monsters", slug: "goblin" },
    { resource_type: "monsters", slug: "kobold" },
    { resource_type: "conditions", slug: "blinded" }
  ]
})

list_documents

List all available source books.

list_documents()
// → srd-2014, srd-2024, tob, tob2, tob3, a5e-ag, bfrd, etc.

list_endpoints

List all API endpoints with version info.

list_endpoints()
// → spells (v2), monsters (v1), conditions (v2), etc.

Contributor Tools

validate_entry

Validate a draft entry against Open5e schema.

validate_entry({
  resource_type: "spells",
  data: {
    name: "Test Spell",
    slug: "test-spell",
    level: 3,
    school: "Evocation",
    // ... other fields
  },
  strict: false  // optional: fail on warnings
})

Returns:

  • valid: boolean
  • errors: Array of schema violations
  • warnings: Unusual but valid values
  • suggestions: Helpful hints (slug format, valid enums)

check_slug

Check if a slug exists or would collide.

check_slug({
  resource_type: "monsters",
  slug: "goblin",
  document_slug: "wotc-srd",     // optional
  original_slug: "goblin-old"    // optional: detect mutations
})

Returns:

  • exists: boolean
  • is_mutation: boolean (slug changed from original)
  • collision_risk: "none" | "same_document" | "different_document"
  • existing_entry: Details if exists

diff

Compare a draft entry against the live API version.

diff({
  resource_type: "monsters",
  slug: "goblin",
  draft: {
    name: "Goblin",
    hit_points: 10,  // Changed from 7
    // ... partial or full entry
  },
  ignore_fields: ["page_no"]  // optional
})

Returns field-by-field diff with type: "added" | "removed" | "modified".

normalize

Clean up and standardize entry data.

normalize({
  resource_type: "spells",
  data: {
    name: "test   spell",
    desc: "A   spell   with   bad   spacing.\n\nAnd extra   newlines."
  },
  options: {
    fix_whitespace: true,
    fix_markdown: true,
    standardize_names: true,
    generate_slug: true
  }
})

generate_pr_json

Generate PR-ready JSON with file path and checklist.

generate_pr_json({
  resource_type: "spells",
  document_slug: "srd-2014",
  operation: "add",  // or "modify"
  data: { /* validated entry */ }
})

Returns:

  • json_output: Formatted JSON string
  • file_path: Where to place the file (e.g., data/srd-2014/spells/test-spell.json)
  • validation: Pre-flight validation results
  • checklist: PR submission checklist

RAG Tools

The RAG tools connect to the Open5e Developer Chatbot, which indexes the entire open5e-api and open5e (frontend) repositories.

rag_health

Check RAG service status.

rag_health()
// → { healthy: true, chunks: 484, vectors: 484, sources: 214 }

rag_stats

Get index statistics.

rag_stats()
// → Project info, chunk/vector counts, embedding status

rag_sources

List all indexed sources with GitHub URLs.

rag_sources()
// → README.md, CONTRIBUTING.md, AGENTS.md, models/*.py, views/*.py, etc.

rag_search

Search repository documentation.

rag_search({
  query: "how to add a new monster",
  mode: "hybrid",    // semantic, keyword, or hybrid
  top_k: 5
})

Returns chunks with scores, source URLs, and positions.

rag_chat

Chat with AI about Open5e development.

rag_chat({
  message: "How do I add a new monster to the Open5e database?",
  history: [],  // optional: conversation history
  top_k: 5      // optional: context chunks
})

Returns detailed answer with source citations.

Meta Tools

health_check

Check API connectivity and cache status.

health_check()
// → { api_reachable: true, api_latency_ms: 628, cache_status: {...}, version: "0.1.0" }

Available Source Books

| Slug | Name | Publisher | |------|------|-----------| | srd-2014 | System Reference Document 5.1 | Wizards of the Coast | | srd-2024 | System Reference Document 5.2 | Wizards of the Coast | | tob | Tome of Beasts | Kobold Press | | tob-2023 | Tome of Beasts (2023) | Kobold Press | | tob2 | Tome of Beasts 2 | Kobold Press | | tob3 | Tome of Beasts 3 | Kobold Press | | a5e-ag | Adventurer's Guide (A5E) | EN Publishing | | a5e-mm | Monstrous Menagerie (A5E) | EN Publishing | | bfrd | Black Flag Reference Document | Kobold Press | | deepm | Deep Magic | Kobold Press | | ... | 22 total sources | |

Use list_documents() for the complete list.

Resource Types

| Type | API Version | Filters Available | |------|-------------|-------------------| | spells | v2 | level, school, document_slug | | monsters | v1 | cr, type, document_slug | | conditions | v2 | document_slug | | items | v1 | document_slug | | magicitems | v1 | document_slug | | weapons | v2 | document_slug | | armor | v2 | document_slug | | feats | v2 | document_slug | | backgrounds | v2 | document_slug | | races | v2 | document_slug | | classes | v1 | document_slug |

Usage Patterns

Game Master: Building an Encounter

// Find CR 3 monsters from the SRD
const monsters = await list({
  resource_type: "monsters",
  cr: 3,
  document_slug: "wotc-srd"
});

// Get full details for selected monsters
const details = await batch_get({
  requests: monsters.results.slice(0, 5).map(m => ({
    resource_type: "monsters",
    slug: m.slug
  }))
});

Contributor: Adding a New Spell

// 1. Draft the spell
const draft = {
  name: "Arcane Bolt",
  slug: "arcane-bolt",
  level: 0,
  school: "Evocation",
  casting_time: "1 action",
  range: "120 feet",
  verbal: true,
  somatic: true,
  material: false,
  concentration: false,
  ritual: false,
  duration: "Instantaneous",
  desc: "You hurl a bolt of arcane energy at a creature...",
  document__slug: "homebrew"
};

// 2. Validate
const validation = await validate_entry({
  resource_type: "spells",
  data: draft
});

// 3. Check for collisions
const slugCheck = await check_slug({
  resource_type: "spells",
  slug: "arcane-bolt"
});

// 4. Generate PR JSON
const prData = await generate_pr_json({
  resource_type: "spells",
  document_slug: "homebrew",
  operation: "add",
  data: draft
});

Learning: Understanding the Codebase

// Search for how monsters are modeled
const results = await rag_search({
  query: "Monster model fields actions abilities",
  top_k: 5
});

// Ask the chatbot
const answer = await rag_chat({
  message: "What fields are required for a monster entry in v1?"
});

Integration

rpg-mcp

This server is designed to integrate with rpg-mcp for live creature lookups during gameplay:

// Replace hardcoded creature presets with Open5e lookups
const creature = await open5e.get({
  resource_type: "monsters",
  slug: "adult-red-dragon"
});

Quest Keeper AI

Surface contributor workflows in the Quest Keeper AI frontend for community content creation.

Development

Setup

npm install
npm run build

Testing

npm test              # Run all tests
npm run test:watch    # Watch mode
npm run test:coverage # Coverage report

Scripts

| Command | Description | |---------|-------------| | npm run build | Compile TypeScript | | npm run dev | Watch mode compilation | | npm start | Run the server | | npm test | Run tests | | npm run lint | Lint source files | | npm run typecheck | Type check without emit |

Project Structure

src/
├── index.ts          # MCP server entry point, tool registration
├── types.ts          # Shared TypeScript types
├── api/              # Open5e API client
├── cache/            # Response caching
├── contributor/      # Validation, diff, PR generation
├── schema/           # Zod schemas for all resource types
└── utils/            # Helpers, slug handling

API Reference

  • Open5e API: https://api.open5e.com
  • API Documentation: https://open5e.com/api-docs
  • GitHub Repository: https://github.com/open5e/open5e-api
  • Discord: https://discord.gg/9RNE2rY

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Run tests: npm test
  4. Submit a pull request

License

MIT © Mnehmos

---

Part of the Mnehmos MCP ecosystem

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Databases servers.