loading…
Search for a command to run...
loading…
An immersive Role-Playing Game server built on the Model Context Protocol for interactive storytelling with AI assistants like Claude.
An immersive Role-Playing Game server built on the Model Context Protocol for interactive storytelling with AI assistants like Claude.
An immersive Role-Playing Game server built on the Model Context Protocol (MCP), designed to work with AI assistants like Claude to create interactive storytelling experiences.
The server provides 7 core tools for building and managing RPG games:
createGame - Initialize a new RPG game
updateGame - Update game state
characters[0].level, world.location)isGameOver=true and provide a gameOverReason. The server will return a special Game Over UI with an empathetic explanation and suggestions for improvement.getGame - Retrieve current game state
progressStory - Advance the narrative
promptUserActions - Present action choices to users
selectAction - Process user selections
selectRestart - Restart the game after game over
createGame → progressStory → promptUserActions → selectAction → updateGame → progressStory → ...
When a game ends (e.g., character HP reaches 0 or story reaches an ending):
updateGame (isGameOver=true) → Game Over UI displayed →
User clicks Restart button → selectRestart →
AI creates new game with context → progressStory → ...
The restart flow includes:
selectRestart tool// 1. Create Game
{
"title": "Wizard's Adventure",
"characters": [
{"name": "Elara", "level": 1, "hp": 100, "mp": 50, "class": "Wizard"}
],
"world": {"location": "Magic Academy", "time": "morning", "weather": "sunny"},
"inventory": [{"name": "Magic Staff", "type": "weapon"}]
}
// 2. Progress Story
"Elara discovers an ancient spellbook in the academy library..."
// 3. Present Choices (always mix positive/negative outcomes)
[
"Read the spellbook (may gain power, but risk a curse)",
"Tell the professor (safe, but lose a chance for secret knowledge)",
"Leave it where it is (avoid risk, but miss opportunity)",
"Try to sell it secretly (potential reward, but risk being caught)"
]
// 4. Update game state after user selection
"characters[0].hp": 0, // triggers game over
"isGameOver": true,
"gameOverReason": "Elara triggered a powerful curse from the spellbook and lost all HP. If you had chosen to consult the professor or left the book alone, you might have avoided this fate."
Platform-specific config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json ~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"rpg-game-server": {
"command": "npx",
"args": ["rpg-mcp-server"],
"env": {
"NODE_ENV": "production"
}
}
}
}
Completely quit and restart Claude Desktop to apply the configuration.
Hi! Can you create a fantasy RPG game for me?
npm install -g rpg-mcp-server
git clone <repository-url>
cd rpg-mcp-server
npm install
npm run build
npm start
npm run inspector
MIT License - see LICENSE file for details.
Выполни в терминале:
claude mcp add rpg-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.