Back to Home
Tochi-Nwachukwu icon

Monopoly-Game-MCP

Verified Safe

by 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

Run Command
python mcp_server.py

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens900
Stars0
Forks0
Last Update2025-11-27

Tags

MonopolyAI AgentsGameMCPLLM