Monopoly-Game-MCP
Verified Safeby Tochi-Nwachukwu
Overview
This project provides an MCP (Multi-Modal Controller Protocol) server for a Monopoly game, allowing AI agents (OpenAI GPT, Ollama Llama) to compete by making decisions via exposed game tools.
Installation
python mcp_server.pyEnvironment Variables
- OPENAI_API_KEY
- OLLAMA_HOST
Security Notes
The project avoids direct use of `eval` or other highly dangerous functions. API keys are managed via environment variables. The MCP server exposes specific, well-defined tools, mitigating arbitrary command execution. The `_parse_response` function in `ai_agents.py` attempts to extract JSON from LLM output, including a regex fallback, but it's for parsing tool calls, not executing arbitrary code. External dependencies (OpenAI/Ollama APIs) introduce inherent risks from those services.
Similar Servers
mcp-ai-agent
This repository provides an AI agent designed to interact with and control entities within a Multi-Client Protocol (MCP) environment, likely a game or simulation.
lumino-mcp-server
Provides an AI assistant with specialized tools to monitor, analyze, troubleshoot, predict, and simulate changes in Kubernetes, OpenShift, and Tekton environments for SREs and DevOps.
gomoku-mcp-server
This is a backend server for a Gomoku game, likely implementing game logic, state management, and handling multiplayer interactions.
ga-ai-mcp-server
This server allows AI agents to query Google Analytics 4 data (reports, traffic sources, demographics, etc.) via the Model Context Protocol (MCP).