MCP-TRPG-Game
An advanced TRPG (Tabletop Role-Playing Game) server designed for automated, AI-driven adventures. This project leverages Large Language Models (LLMs) as the Keeper (KP), allowing the AI to lead, narrate, and manage the game, making every session dynamic and immersive.
claude mcp add --transport stdio neroi-stack-mcp-trpg-game dotnet run --project src/ToolBox/ToolBox.csproj --stdio
How to use
MCP-TRPG-Game Server is an MCP-powered TRPG (tabletop role-playing game) server that leverages Large Language Models to act as an intelligent Keeper (KP). It exposes a suite of MCP tools that let the AI Keeper manage characters, scenarios, dice rolls, scene descriptions, and events, enabling AI-driven adventures and automated game management. The server supports both standard MCP stdio communication and an HTTP mode for integration with MCP clients.
How to install
Prerequisites:
- Install the .NET 10.0 SDK
- Optional MCP-Compatible AI clients for enhanced integration
- Cursor, Claude Desktop, VS Code with MCP extensions, etc.
Step-by-step installation:
-
Ensure the repository is cloned and dependencies are restored (for the .NET project):
-
Build the project:
# If you are upgrading from an older state, you may need to clean up or delete trpg.db as noted in docs
# Example: delete ./trpg.db if required
dotnet build
- Run the MCP-enabled TRPG server in stdio mode (as MCP client integration):
dotnet run --project src/ToolBox/ToolBox.csproj --stdio
- (Optional) Run in HTTP mode to expose an HTTP endpoint for MCP clients:
dotnet run --project src/ToolBox/ToolBox.csproj
-
By default the server uses SQLite and stores data in trpg.db; the database will be auto-created on first run.
-
API testing: you can experiment with the provided MCP HTTP endpoint or sample requests via MCP-enabled clients.
Additional notes
Tips:
- The MCP toolset includes 30+ tools for core game management, dice checks, and AI Keeper assistance. Use the MPC protocol to orchestrate scenes, character management, and random events.
- Default database is SQLite (trpg.db); ensure proper backups for production usage.
- If you encounter issues with the stdio integration, verify the MCP client configuration from the README examples to ensure the correct JSON structure for your editor or tool.
- For HTTP mode, the MCP endpoint is typically at http://localhost:5000/mcp; you can adjust depending on your deployment.
- When testing, you can start a new adventure with the StartTrpgAdventure tool and rely on the KP to guide the session using other tools.
Related MCP Servers
spec-coding
Transform feature ideas into production-ready code through systematic Spec-Driven Development 通过系统化的**规格驱动开发**,将功能想法转化为可投入生产的代码
mcpbi
PowerBI MCP server to give LLM clients (Claude, GH Copilot,etc) context from locally running PowerBI Desktop instances.
NugetMcpServer
.NET MCP server that gives LLMs real NuGet API metadata to reduce hallucinations
azure-devops
Exposes Azure DevOps functionality via MCP: Boards, Repos, Pipelines, Artifacts, Test Plans, and Wiki tools for AI agents.
unity -template
Simple template project for controlling Unity via MCP
mcp -graph-api
Model-context-protocol (MCP) server for the Microsoft Graph API in C#