gamebook
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gamebookStart a new adventure and show me the opening scene."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gamebook
A minimal choose-your-own-adventure system with a FastAPI book backend and a Python MCP server that exposes the story to an LLM.
Run it
Play the adventure directly in a terminal. This starts the backend automatically if it is not already running:
uv run gamebook-playSelect a story with --story; the current observatory adventure is the default:
uv run gamebook-play --story observatory
uv run gamebook --story observatory
uv run gamebook-backend --story observatoryEach built-in story is defined in its own module under src/gamebook/stories and
registered in gamebook.story.STORY_MODULES.
Enter a choice number to move through the story. Other commands include
use <item>, examine <item>, take <item>, drop <item>, inventory, look,
hint, hint direct,
restart, and quit.
Start the book backend and Streamable HTTP MCP server together:
uv run gamebookThe MCP endpoint is http://localhost:8000/mcp. It listens on all WSL network
interfaces so applications running on Windows can connect to it. The backend
listens internally at http://127.0.0.1:8001; its interactive API docs are at
http://127.0.0.1:8001/docs.
Configure LM Studio's mcp.json to connect to the already-running server:
{
"mcpServers": {
"gamebook": {
"url": "http://localhost:8000/mcp"
}
}
}VS Code is configured separately to launch gamebook-mcp over stdio from
.vscode/mcp.json. Open the MCP Servers view or run MCP: List Servers, then
start gamebook to use or debug it. The HTTP backend must also be running for
tools launched this way.
For development, the components can also run separately:
uv run gamebook-backend
uv run gamebook-mcpPoint the MCP bridge at another backend by setting GAMEBOOK_BACKEND_URL.
Related MCP server: Integration Quest
MCP tools
begin_adventurestarts a session and returns the opening scene.choose_actionsends one of the offered choice IDs to the backend.useuses an inventory item or a stateful item in the current scene.examinedescribes an inventory item or an item in the current scene.look_aroundreturns the current scene and items present there.request_hintasks the backend for a subtle or direct clue.check_player_statusreturns the player's health and inventory.take_itemmoves an item from the current place into the player's inventory.drop_itemmoves an inventory item into the player's current place.
Run the tests with uv run pytest.
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 Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to play interactive fiction games (Glulx and Z-machine) through the Model Context Protocol, with automatic save/restore and optional journaling mode.MIT
- AlicenseAqualityDmaintenanceEnables playing a Workato-themed text-based RPG through MCP tools, allowing users to explore dungeons, battle enemies, and manage character progression in an integration-themed adventure.151MIT
- AlicenseNot gradedqualityFmaintenanceEnables LLM-driven text game state management by exposing MCP tools for managing players, locations, items, entities, and abstract concepts.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI to act as Game Master for tabletop RPGs with deterministic dice, five-tier outcomes, FitD-style stress, combat tracking, clocks, investigations, NPC relationships, and world generation via 134 tools over MCP.2MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
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
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/bruceweir/gamebook'
If you have feedback or need assistance with the MCP directory API, please join our Discord server