ClaudBeyond
A D&D 5e digital toolset with an MCP server enabling Claude to manage characters, search the SRD, roll dice, and interact with campaigns and encounters. It syncs data with the web app for real-time collaboration.
README
ClaudBeyond
A D&D 5e digital toolset in the spirit of D&D Beyond, built on the freely-licensed 5e SRD. Four pillars: character builder + live sheet, compendium, campaigns, and encounter builder / combat tracker — plus an MCP server so Claude can read and act on the same data as the web app.
Live table: every screen syncs in real time over server-sent events, so the whole family can play from their own phones — the server prints the Wi-Fi URL to share at startup. Active encounters include a battle map (square or hex grid) with tap-to-move tokens, HP rings, and turn highlighting, synced to every device. Writes made by Claude through MCP broadcast to browsers too.
3D dice: character creation, sheets, initiative, encounters, the API, and MCP share one seeded Rapier physics engine. Three.js replays the authoritative result in every connected browser for d4, d6, d8, d10, d12, d20, and percentile dice; advantage, disadvantage, modifiers, and keep-high/keep-low notation are supported.
Homebrew: JSON files dropped in data/homebrew/ (same shapes as data/srd/)
merge into the compendium — subclasses, features, and eventually anything else.
World Codex: a wiki for the campaign world — NPCs, places, quests, session
journals, lore, factions. Pages link to each other with [[Wikilinks]]; links to
pages that don't exist yet render as create-on-tap ghosts, and every page shows
its backlinks. Claude can search and write the codex through MCP (codex_find,
docs with collection codex) — chronicle sessions, invent NPCs, update quests.
Architecture
data/srd/*.json 5e SRD content (from 5e-bits/5e-database, CC-BY / OGL)
data/user/*.json Your characters, campaigns, encounters (file-backed store)
shared/rules.js 5e math: modifiers, dice parser, encounter difficulty, derived stats
shared/dice-engine.js Deterministic dice notation, geometry, and Rapier simulation
server/store.js Atomic JSON store + SRD loader (shared by API + MCP)
server/index.js Express API + static host → pnpm serve (port 5177)
mcp/server.js MCP stdio server for Claude → pnpm mcp
src/ React web app (Vite) → pnpm dev (port 5173)
Both the API server and the MCP server read/write data/user/*.json directly with
atomic writes, so changes made by Claude through MCP appear in the app on next
refresh, and vice versa.
Run it
pnpm install
pnpm build # build the web app into dist/
pnpm serve # http://localhost:5177 — app + API
For development with hot reload: pnpm serve in one shell, pnpm dev in another
(Vite proxies /api to 5177).
MCP server
Registered in .mcp.json at the repo root, so Claude Code picks it up
automatically in this project. Tools:
roll_dice— "2d6+3", "4d6kh3", advantage/disadvantagesrd_search/srd_get— all 23 SRD categories (spells, monsters, classes…)search_monsters— filter by name, CR range, typelist_characters/get_character(with derived stats) /create_character/update_character/adjust_hp/delete_characterdocs— CRUD for campaigns and encountersencounter_difficulty— DMG XP-threshold math for a party vs. monster list
Licensing
SRD content is used under the terms published by Wizards of the Coast (SRD 5.1, CC-BY-4.0). This project is not affiliated with Wizards of the Coast or D&D Beyond.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.