Provides optional voice synthesis capabilities for the murder mystery game interface.
Hosts the full UI demo interface for the murder mystery game that uses this MCP server.
Powers mystery generation, suspect interrogation responses, and AI-driven game narrative through LLM capabilities.
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., "@Murder Mystery MCP Serverinterrogate the butler about his whereabouts last night"
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.
title: Murder Mystery MCP Server emoji: ๐ต๏ธ colorFrom: indigo colorTo: red sdk: gradio sdk_version: "5.29.1" app_file: demo.py pinned: false tags:
building-mcp-track-creative
mcp
mcp-server
game-engine
murder-mystery
agents
tools
resources
๐ต๏ธ Murder Mystery MCP Server
๐ MCP 1st Birthday Hackathon โ Track 1: Building MCP (
building-mcp-track-creative)
A complete murder mystery game engine exposed as a Model Context Protocol (MCP) server. Generate procedural mysteries, interrogate AI suspects, search for clues, and solve crimes โ all through MCP tools that any AI agent can use.
๐บ Demo Video
๐ Watch the Demo Video (Required for submission)
๐ฆ Social Media
๐ฆ See the announcement on X/Twitter (Required for submission)
๐ฅ Team
HuggingFace Username |
@YOUR_HF_USERNAME |
๐ Quick Start
Use with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Then just chat with Claude:
"Start a new murder mystery game"
"Talk to the butler about his alibi"
"Search the library for clues"
"I accuse Lady Ashworth of the murder!"
Use with Cursor
Add the same config to Cursor's MCP settings and use the tools in your AI chat.
๐ ๏ธ MCP Tools
Game Flow Tools
Tool | Description |
| Start a new procedurally-generated murder mystery |
| Get current game state (suspects, clues, progress) |
| Question a suspect (they have memory + emotions!) |
| Search a location for clues |
| Formally accuse someone of the murder |
Investigation Tools (RAG-Powered)
Tool | Description |
| Search all past conversations for relevant statements |
| Check if a suspect's story contradicts past statements |
| Find what OTHER suspects said about someone |
| Get a hint if you're stuck |
| See the investigation timeline |
Image Generation Tools
Tool | Description |
| Generate a suspect's portrait |
| Generate a location/scene image |
| Generate the mystery's opening scene |
๐ MCP Resources
URI | Description |
| Current game state (JSON) |
| List of suspects with public info |
| Discovered clues |
| Investigation timeline |
| Available and searched locations |
๐ฎ How It Works
1. Mystery Generation
When you start a game, the server generates:
A unique victim with background story
4-5 suspects with personalities, secrets, and alibis
One guilty suspect (the AI won't tell you who!)
Clues scattered across locations
An "encounter graph" showing who was really where
2. The Oracle Pattern
The MCP server uses a secure "Oracle" architecture:
The Mystery Oracle knows the truth (who's guilty, all secrets)
The tools only return what the player should see
Even the AI using the tools can't "cheat" โ it discovers the truth through gameplay
3. Suspect Emotions
Suspects aren't static โ they have:
Trust (0-100%): How much they trust the detective
Nervousness (0-100%): How anxious they are
Memory: They remember past conversations and stay consistent
Reveals: High trust โ reveal locations; high pressure โ reveal secrets
4. RAG Memory
All conversations are indexed in a vector store:
Search for what was said about any topic
Detect contradictions in testimony
Cross-reference what suspects said about each other
๐๏ธ Architecture
โ๏ธ Configuration
Environment Variable | Required | Description |
| Yes | For mystery generation and LLM responses |
| No | For image generation (optional) |
| No | For voice synthesis (optional, used by UI) |
๐ฏ Game Rules
3 wrong accusations = Game Over (you're fired from the case)
Win: Correctly identify the murderer with evidence
Suspects won't reveal secrets easily โ build trust or apply pressure!
Clues are hidden in locations โ search everywhere
Cross-reference testimony to find contradictions
๐ Related Projects
Murder Mystery Detective Game โ Full Gradio UI using this MCP server (Track 2 submission)
๐ License
MIT