turn-based-game-mcp
Verified Safeby github-samples
Overview
Provides a demo and learning tool for building turn-based games with an AI opponent using the Model Context Protocol.
Installation
npm run dev:mcpEnvironment Variables
- GAMES_DB_PATH
- WEB_API_BASE
Security Notes
The server communicates with the web application via HTTP, defaulting to `http://localhost:3000`. For production, this would require HTTPS and proper authentication/authorization. The web API includes a `/mcp` endpoint that sanitizes game data, preventing the AI from accessing real-time, non-public player choices, which is a good security measure for AI opponents. No obvious hardcoded secrets or malicious patterns were found in the provided source code.
Similar Servers
mcp-handler
A Vercel adapter for the Model Context Protocol (MCP), enabling real-time communication between web applications and AI models.
frontmcp
FrontMCP is a TypeScript-first framework for building Model Context Protocol (MCP) servers, enabling AI models to interact with external systems through typed tools, resources, and prompts, including dynamic UI rendering and robust authentication.
boilerplate-mcp-server
Provides a TypeScript boilerplate for developing custom Model Context Protocol (MCP) servers, with an IP geolocation tool as an example.
toolhive-cloud-ui
A Next.js application for visualizing MCP (Model Context Protocol) servers in user infrastructure with easy URL copying for integration with AI agents.