Tome
Generates a ready-to-use Obsidian vault from parsed adventures, including YAML frontmatter, wikilinks, chapter folders, an index page, and Dataview query blocks.
Provides LLM-powered entity extraction from TTRPG adventure text using OpenAI models such as gpt-4o, returning structured JSON for adventure entities.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Tome
Parse any TTRPG adventure PDF into a ready-to-use Obsidian vault.
Important Note: Tome's purpose is to parse human-written content, not generate new AI content. It simply uses AI to help extract and organize existing text from your adventure modules into structured notes.
Tome is a local MCP (Model Context Protocol) server that helps Game Masters process existing tabletop RPG materials. It acts as a librarian: parsing, organizing, and reformatting content from adventure books into interconnected, searchable Obsidian notes.
Quick Start
# Run the MCP server (stdio transport, for use with Claude Desktop, Gemini, etc.)
venv/bin/python server.py
# Run tests
venv/bin/python -m unittest test_obsidian.py -vEnvironment variables (.env file at project root):
GEMINI_API_KEY— required for entity extraction with Gemini (default)ANTHROPIC_API_KEY— required for entity extraction with ClaudeOPENAI_API_KEY— required for entity extraction with OpenAI (gpt-4o)
Related MCP server: Foundry VTT MCP Bridge
Integrating with Chat Apps (For Non-Technical Users)
You can easily use Tome directly within your favorite AI chat applications using the Model Context Protocol (MCP). Here's how to set it up:
Claude Desktop
Open Claude Desktop.
Go to Settings -> Developer and click Edit Config.
This will open the
claude_desktop_config.jsonfile. Add the following to themcpServerssection:{ "mcpServers": { "tome": { "command": "/absolute/path/to/Tome/venv/bin/python", "args": ["/absolute/path/to/Tome/server.py"], "env": { "GEMINI_API_KEY": "your_gemini_key_here", "OPENAI_API_KEY": "your_openai_key_here", "ANTHROPIC_API_KEY": "your_anthropic_key_here" } } } }(Make sure to replace
/absolute/path/to/Tomewith the actual path to your Tome folder, and fill in at least one API key).Save the file and restart Claude Desktop.
Cursor
Open Cursor and go to Settings.
Search for MCP or go to the Features -> MCP section.
Click + Add new MCP server.
Set the Type to command.
Set the Name to
tome.Set the Command to:
/absolute/path/to/Tome/venv/bin/python /absolute/path/to/Tome/server.pyClick Save. (Make sure you have your API keys set in a
.envfile in the Tome project root).
Roo Code / Cline
Open the Roo Code settings panel.
Go to the MCP Servers tab.
Edit the
mcp_settings.jsonfile with the same configuration block shown above for Claude Desktop.
The Pipeline
Tome processes adventures through a 3-step pipeline:
Adventure PDF → Extract Entities → Enrich with References → Obsidian VaultStep 1: Extract Entities (extract_entities_llm)
Send raw adventure text to an LLM (Gemini, Claude, or OpenAI). Returns structured JSON with chapters containing NPCs, Locations, Encounters, Events, Items, and Monsters.
Step 2: Enrich with References (enrich_with_references)
Walks through extracted entities and cross-references them against local reference material (e.g. the D&D 5.2e SRD). Injects statblocks and rules text directly into the data. Optional — works with any system's reference docs.
Step 3: Generate Obsidian (generate_obsidian)
Writes the enriched data to disk as a nested Obsidian vault with:
YAML frontmatter with
chapter,location,motivation,monsters,rarityfields for Dataview queries[[wikilinks]]connecting entities across the vault_Home.mdindex page with static summary tables and live Dataview query blocksChapter folders with subfolders for NPCs, Locations, Encounters, Events, Items, Monsters
MCP Tools
Tool | Purpose |
| Extract TOC and detect document type from a PDF |
| Extract raw text from a page range |
| LLM-powered entity extraction → structured JSON |
| Cross-reference entities against local reference material |
| Write enriched entities as an Obsidian vault |
| Search local reference markdown files |
| List available reference topics |
Entity Model
NPCs: Name, Motivation, Secret, Statblock Reference, Location
Locations: Name, Read-Aloud Description, Encounters, Loot, Exits
Encounters: Name, Read-Aloud, Description, Mechanics, Monsters, NPCs Present
Events: Name, Description, Mechanics, Next Steps
Items: Name, Rarity, Description, Mechanics
Monsters: Name, Statblock
Reference Material
The D&D 5.2e SRD ships as the default reference pack in references/SRD/. Tome is system-agnostic — you can point the reference_dir parameter at any folder of markdown files to use reference material from Pathfinder, Call of Cthulhu, or any other system.
This work includes material from the System Reference Document 5.2 ("SRD 5.2") by Wizards of the Coast LLC, available at https://www.dndbeyond.com/srd. The SRD 5.2 is licensed under the Creative Commons Attribution 4.0 International License.
Architecture
server.py FastMCP entrypoint — registers all tools
├── pdf_tools.py PDF → text (PyMuPDF)
├── reference_tools.py Local reference search (header-priority regex)
└── obsidian_tools.py LLM extraction + enrichment + Obsidian generationPrivacy
RPG materials are often copyrighted. Tome processes everything locally. The only external call is the LLM API for entity extraction.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
D&D and TTRPG campaign manager for GMs: your AI reads and writes a live, typed campaign database.
Mess in, magic out: your D&D and TTRPG notes become a private world store any AI app can read.
Tabletop RPG campaign wiki for game masters: NPCs, places, sessions, encounters, notes, roll tables
Connect any AI to your Foundry VTT world: actors, combat, dice, journals, tokens, compendiums.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms Obsidian vaults into AI-powered knowledge bases using multi-layer RAG with advanced knowledge graph integration, enabling semantic search, entity extraction, and relationship mapping across personal notes.10MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI-powered campaign management for Foundry Virtual Tabletop through natural language, supporting multiple RPG systems with tools for quest creation, character management, combat resolution, and more.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to extract PDF text, search with PDF++ citations, access vault files, manage tags, and run Dataview queries in Obsidian via MCP.1-
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants to TTRPG campaign data for managing characters, sessions, locations, factions, items, quests, and more.4MIT