Skip to main content
Glama

dnd-5e-mcp

MCP server for the D&D 5e community wiki (2014 rules). Lets an LLM search the rule catalogue and pull any page back as Markdown.

Tools

Tool

Description

build_index(force?)

Refresh the page index from the wiki's system:list-all-pages (~2,600 pages). Returns the count.

search_rules(query)

Fuzzy-match titles in the local index. Returns [{slug, title, type, url}].

get_page(slug, force?)

Fetch one page (by slug from search) and return its content as Markdown. Cached on disk.

Related MCP server: Wikipedia MCP Server

Install

npm install
node test.mjs        # self-check (pure + live smoke tests)
node index.js        # run the stdio server

Use with an MCP client

Point your client at npx or node in this directory:

{
  "mcpServers": {
    "dnd-5e-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/dnd-5e-mcp/index.js"]
    }
  }
}

Typical flow for an LLM:

  1. build_index once (or let it build lazily).

  2. search_rules to locate a page by name, e.g. "fireball", "fighter", "bag of holding".

  3. get_page with the returned slug, e.g. spell:fireball, fighter, wondrous-items:bag-of-holding.

Notes

  • 2014 rules only. The 2024 ruleset is a separate site (dnd2024.wikidot.com) and is not covered.

  • Page content is extracted from #page-content, tables (wiki-content-table) and TOC blocks handled, converted to Markdown.

  • Fetched pages and the index are cached under .cache/ (git-ignored). Delete it to force a rebuild.

  • No auth needed; the wiki is public.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables LLMs to fetch and process web content by converting HTML into markdown for easier consumption. It supports chunked reading via pagination and provides configuration options for robots.txt compliance and proxy usage.
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables LLMs to search for keywords and fetch full page content from Wikipedia across various languages. It provides direct access to Wikipedia information through search and fetch tools.
    2
    4
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables LLMs to interact with FIT CTU course materials, including listing subjects, navigating subpages, reading content as Markdown, and performing keyword searches.
    -