daggerheart-ai
MCP server for semantic search over the Daggerheart SRD, enabling users to search rules, fetch entries, and query bestiary monsters during DnD session prep.
README
daggerheart-ai
MCP server for semantic search over the Daggerheart SRD (~790 markdown files + 212 bestiary creatures), exposed to Claude Code during DnD session prep.
Tools
- search_srd — semantic search across all rules, abilities, classes, equipment, and lore.
- get_entry — fetch a named entry by category + name (exact or partial match).
- query_monsters — filter adversaries + creatures by tier, role, thematic
family, difficulty range, attack range, keyword, and source. Bestiary environments are excluded by default (include_environmentsto add them). - list_entries — list every entry in a category.
How it works
Content is indexed once into a local SQLite database (srd.db) with
bge-small-en-v1.5 embeddings (384-dim) stored in sqlite-vec. Searches
use sqlite-vec KNN with a brute-force cosine fallback.
Embeddings are computed fully on-device via
fastembed (ONNX Runtime) — no
API key, no proxy, no network. The model (~30MB) downloads once to
.fastembed_cache/ on first use, then everything runs offline.
Setup
Prerequisites: Node 18+. No accounts, keys, or proxies.
npm install # uses .npmrc: Netflix registry + legacy-peer-deps
SRD content
The srd/ folder is git-ignored. Populate it from your vault copy, then index:
rsync -a --exclude='.git' --exclude='.build' --exclude='.github' \
'/path/to/daggerheart-srd/' srd/
npm run index # one-time; clears + rebuilds the index (first run downloads the model)
npm run build
Re-run npm run index after any SRD change.
Register with Claude Code
Add to the relevant project/vault .mcp.json:
"daggerheart": {
"type": "stdio",
"command": "node",
"args": ["/Users/chrisdhanaraj/projects/daggerheart-ai/dist/index.js"]
}
Restart Claude Code, then /mcp should show daggerheart connected with 4 tools.
Scripts
| Script | Purpose |
|---|---|
npm run index |
Embed the SRD into srd.db (one-time / after SRD updates) |
npm run build |
Compile src/ → dist/ |
npm run dev |
Run the server from source via tsx |
npm start |
Run the built server (dist/index.js) |
Notes
- Never write to stdout in the server — it is the JSON-RPC channel. Logs go to stderr.
- Embeddings are on-device (
fastembed/ bge-small-en-v1.5, 384-dim). The query side usesqueryEmbed(BGE instruction prefix); indexing usesembed. - sqlite-vec
vec0primary keys must be bound asBigIntin better-sqlite3. - Rebuild (
npm run build) after any change undersrc/.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.