daggerheart-ai
daggerheart-ai
DnD 세션 준비 중 Claude Code에 노출되는 Daggerheart SRD(~790개 마크다운 파일 + 212개 베스티어리 생물)에 대한 의미론적 검색을 위한 MCP 서버입니다.
도구
search_srd — 모든 규칙, 능력, 클래스, 장비, 세계관에 걸친 의미론적 검색.
get_entry — 카테고리와 이름(정확히 일치 또는 부분 일치)으로 명명된 항목을 가져옵니다.
query_monsters — 티어, 역할, 주제별
family, 난이도 범위, 공격 범위, 키워드, 출처별로 적 및 생물을 필터링합니다. 베스티어리 환경은 기본적으로 제외됩니다(include_environments로 추가할 수 있음).list_entries — 카테고리의 모든 항목을 나열합니다.
작동 방식
콘텐츠는 sqlite-vec에 저장된 bge-small-en-v1.5 임베딩(384차원)과 함께 로컬 SQLite 데이터베이스(srd.db)에 한 번 인덱싱됩니다. 검색에는 sqlite-vec KNN을 사용하며 무차별 대입 코사인 대체(fallback)가 포함됩니다.
임베딩은 fastembed(ONNX Runtime)를 통해 완전히 기기 내에서 계산됩니다 — API 키, 프록시, 네트워크가 필요 없습니다. 모델(~790KB)은 처음 사용 시 .fastembed_cache/에 한 번 다운로드된 후 모든 것이 오프라인으로 실행됩니다.
설정
사전 요구 사항: Node 18+. 계정, 키, 프록시가 필요 없습니다.
npm install # uses .npmrc: Netflix registry + legacy-peer-depsSRD 콘텐츠
srd/ 폴더는 git에서 무시됩니다. 저장소 복사본에서 채운 다음 인덱싱합니다:
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 buildSRD 변경 후 npm run index를 다시 실행하세요.
Claude Code에 등록
관련 프로젝트/저장소 .mcp.json에 추가합니다:
"daggerheart": {
"type": "stdio",
"command": "node",
"args": ["/Users/chrisdhanaraj/projects/daggerheart-ai/dist/index.js"]
}Claude Code를 다시 시작하면 /mcp에 daggerheart가 4개의 도구와 함께 연결된 것으로 표시됩니다.
스크립트
스크립트 | 목적 |
| SRD를 |
|
|
| tsx를 통해 소스에서 서버 실행 |
| 빌드된 서버 실행( |
참고 사항
서버에서 stdout에 절대 쓰지 마세요 — JSON-RPC 채널입니다. 로그는 stderr로 보냅니다.
임베딩은 기기 내(
fastembed/ bge-small-en-v1.5, 384차원)입니다. 쿼리 쪽은queryEmbed(BGE 명령 접두사)를 사용합니다. 인덱싱은embed를 사용합니다.sqlite-vec
vec0기본 키는 better-sqlite3에서BigInt로 바인딩해야 합니다.src/아래의 변경 후npm run build로 다시 빌드하세요.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
D&D 5e MCP — wraps the D&D 5th Edition API (free, no auth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisdhanaraj/daggerheart-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server