Civ5 Bridge
БесплатноНе проверенBridges Civilization V gameplay with real-time game state data export through a Lua mod and Python server, enabling strategic analysis of cities, units, technol
Описание
Bridges Civilization V gameplay with real-time game state data export through a Lua mod and Python server, enabling strategic analysis of cities, units, technologies, diplomacy, and resources.
README
Connect your Civ 5 game to an agent using MCP. This mod creates an IPC channel from your real-time game to an MCP server that your agent can interact with.
See some samples.
The spirit of this mod is to provide access only to what a human player would reasonably know. For example, we try to not leak the location of wonders or unmet players. The scope of the context is focused on making a super-advisor to help you get better at this game.
The project is composed of two pieces. The game mod, aka the Bridge, and the MCP server. You must use both in order to to use this mod.
[!NOTE] This has only been tested on Brave New World on Windows.
Trying this out
- Download the latest release and unzip the contents to your MODS directory.
Typically this is
%USERPROFILE%\Documents\My Games\Sid Meier's Civilization 5\MODS.
- The directory should look like
MODS/
Civ5MCP_Bridge (v VERSION)/
Civ5MCP_Bridge.modinfo
... a bunch of .lua files ...
- Launch your game
- Selects MODS
- Check the little button to enable this mod
- Configure your game
- Configure your agent to run
server/civ5_mcp_server.py - Enjoy
Development
Build
The modinfo and constants file are generated at build time. mod_config.json
describes the mod and files that will be exported in the format Civ 5 expects.
# All targets have a docker- variant, e.g. make docker-lint
# Get nagged
make lint
# Run unit tests
make test
# Produces a directory that Civ 5 can read
make build
# Optional: automatically deploy to your Civ 5 MODS folder
./tools/deploy.ps1
Versioning
The lua rockspec and Civ version formats are different. Civ wants to see a
string without any dots or dashes. Therefore, the Civ version will strip off
the revision and concat the major.minor into major * 10 + minor.
Bridge
Game state is at the start of each turn and written to a SQLite database. Each new game is stored as a new session. The session and turn number are used as the state's id. Turn history and the initial game configuration are stored using this session id.
[!WARNING] The
datafield is a JSON blob that is considered unstable!
The bridge runs in a Lua 5.1.4 sandboxed with a very limited API. The game exposes this API and that's about all we can use.
Running the Server
cd server
# Test that the server can be launched
uv run civ5_mcp_server.py
If you don't see any errors, you can add this server to something like Claude
using a config similar to this. If uv fails to launch, try using uv's venv
python binary directly.
{
"mcpServers": {
"civ5": {
"command": "uv",
"args": ["run", "path/to/civ5_mcp_server.py"],
}
}
}
Установка Civ5 Bridge
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/corytodd/civ5-mcpFAQ
Civ5 Bridge MCP бесплатный?
Да, Civ5 Bridge MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Civ5 Bridge?
Нет, Civ5 Bridge работает без API-ключей и переменных окружения.
Civ5 Bridge — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Civ5 Bridge в Claude Desktop, Claude Code или Cursor?
Открой Civ5 Bridge на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Civ5 Bridge with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
