fieldbook
A local MCP server for managing tabletop RPG characters, enabling character creation, advancement, inventory management, rules search, and dice rolling.
README
Fieldbook
A polished, local-first tabletop player companion. Fieldbook combines guided D&D 5e and Pathfinder 2e character builders, live character sheets, integrated dice, a searchable rules compendium, and a local MCP server for Codex.
Run it
Requires Node.js 20 or newer. There are no package dependencies to install.
npm start
Open http://127.0.0.1:4173. Character data is stored in data/user-data.json. The browser also keeps a fallback copy in local storage.
Included in this release
- Pathfinder 2e Remastered Player Core support through level 3: Bard, Cleric, Druid, Fighter, Ranger, Rogue, Witch, and Wizard
- Eight common Pathfinder ancestries with selectable heritages: Dwarf, Elf, Gnome, Goblin, Halfling, Human, Leshy, and Orc
- PF2e ancestry-plus-class HP, level-based proficiency, AC, Perception, Fortitude/Reflex/Will, class DC, Hero Points, recovery state, valued conditions, spell ranks, daily preparations, and Refocus
- Complete D&D level 1–3 progression for all 12 core classes, including each SRD subclass at level 3
- 10 species with selectable lineages and correctly level-gated traits through level 3
- Guided level 1–3 character creation, Quick Build, and step-by-step advancement for existing sheets
- Standard Array, 27-point buy, 4d6-drop-lowest, and manual ability scores
- Live HP, temporary HP, conditions, rests, inventory, spell slots, notes, and automatic modifiers
- Print or Save as PDF, standalone printable HTML, and per-character JSON export
- Click-to-roll abilities, skills, initiative, and spell attacks
- Normal, Advantage, and Disadvantage d20 modes; quick polyhedral dice; custom expressions
- Searchable compendium and JSON backup/restore
- Local STDIO MCP server sharing the same character data
- Responsive light/dark interface with no external assets or tracking
Maps and VTT are deliberately reserved for a later release.
Codex MCP connection
This repository includes .codex/config.toml. In a trusted project, restart Codex and inspect /mcp; the fieldbook server should appear. You can also add it manually from this directory:
codex mcp add fieldbook -- node mcp/server.mjs
Available tools let Codex list and inspect characters, create, advance, or update a character, adjust HP, add inventory, search included rules, and roll dice. Read tools are marked read-only; writes use approval-aware annotations and the project config prompts on writes.
Validation
npm test
npm run check
Standalone HTML
Build a single offline HTML file containing the interface, rules, and current character data:
npm run build:standalone
The result is written to dist/fieldbook-standalone.html. It stores subsequent edits in that browser and supports JSON backup/restore.
See ATTRIBUTION.md for the SRD 5.2.1 Creative Commons attribution and PATHFINDER_ATTRIBUTION.md for the Pathfinder ORC notice and trademark disclaimer.
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.