Back to Home
corytodd icon

civ5-mcp

Verified Safe

by corytodd

Overview

Connects Civilization 5 game state to an external AI agent via the Model Context Protocol for turn-based analysis and strategic advice.

Installation

Run Command
uv run server/civ5_mcp_server.py

Security Notes

The server uses standard I/O for communication (stdio_server), limiting direct network exposure. All SQLite database interactions utilize parameterized queries, effectively preventing SQL injection vulnerabilities. There is no usage of 'eval' or other dynamic code execution functions observed in the provided Python source code. The game state data, though a JSON blob, is generated by the Lua mod within a sandboxed environment and then safely parsed using `json.loads` by the Python server. The hardcoded database path points to a standard user game data directory.

Similar Servers

Stats

Interest Score33
Security Score9
Cost ClassLow
Avg Tokens1000
Stars1
Forks0
Last Update2026-01-18

Tags

Civ 5Game ModAI AdvisorStrategy GameMCP