Back to Apps
M
MCP Snake Game
Supports UIby gjkeller
Playable Snake game that runs inline inside Cursor Agent chat — with a leaderboard, custom settings, and full keyboard controls.
0 stars
0 views
Updated 1 month ago
Works in:Cursor
Exposes:ToolsResources
What it does
MCP Snake Game embeds a fully playable Snake game as an MCP App directly inside Cursor's Agent chat pane. The game renders in a live interactive UI panel — no browser required. Players navigate the snake with arrow keys or WASD, and high scores are persisted to a local leaderboard via an app-only MCP tool.
Key features
- Inline game UI — Snake renders directly inside Cursor Agent chat using the MCP Apps
ui://resource mechanism - Configurable settings — board size, difficulty level, and wall mode (wrap or collide) adjustable in-app
- Persistent leaderboard — scores saved locally via
snake_save_scoretool; viewable withsnake_leaderboard - Dual transport — runs over stdio for Cursor or HTTP for browser/remote clients
- Bidirectional tool calls — the UI proactively calls server tools for score saves, demonstrating full MCP Apps interactivity
Installation
Cursor (primary supported host):
- Clone the repo and install:
npm install && npm run build - Cursor will pick up
.cursor/mcp.jsonautomatically (reload window if needed) - In Agent chat, type:
run snake_open
.cursor/mcp.json entry:
{
"mcpServers": {
"mcp-snake-game": {
"command": "node",
"args": ["path/to/mcp-snake-game/main.ts", "--stdio"]
}
}
}
Claude Desktop:
{
"mcpServers": {
"mcp-snake-game": {
"command": "npx",
"args": ["tsx", "/path/to/main.ts", "--stdio"]
}
}
}
Supported hosts
Designed for Cursor. Also supports HTTP transport for any MCP client that can connect to http://localhost:3001/mcp.
Quick install
npm install && npm run buildInformation
- Pricing
- free
- Published
- 4/6/2026
- Updated
- 1 month ago
- stars
- 0