Back to Home
github-samples icon

turn-based-game-mcp

Verified Safe

by github-samples

Overview

Provides a demo and learning tool for building turn-based games with an AI opponent using the Model Context Protocol.

Installation

Run Command
npm run dev:mcp

Environment 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

Stats

Interest Score43
Security Score8
Cost ClassMedium
Avg Tokens150
Stars25
Forks10
Last Update2025-12-08

Tags

MCPAI OpponentTurn-Based GamesTypeScriptNode.js