civ6mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@civ6mcp What's my current strategic situation?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Civilization VI MCP Server
An MCP (Model Context Protocol) server that provides Claude with real-time access to your Civilization VI game data. Get strategic analysis, diplomatic intelligence, military assessments, and more by connecting Claude to your active game.
Features
Strategic Overview - Comprehensive situational briefing combining all intelligence
Diplomatic Intelligence - Track relationships, alliances, and the reasons behind them
Military Analysis - Monitor troop strength, combat desire, and threat levels
Production Tracking - See what every civilization is building
City Status - Analyze city growth potential and food challenges
Victory Progress - Track who's leading each victory type
Score Breakdown - Understand where each civ's score comes from (Empire, Tech, Wonders, etc.)
Trend Analysis - Identify rising powers and declining civilizations
Combat History - Review recent battles and ongoing conflicts
World Congress - Track voting records and resolutions
Great People - Monitor the great people race
Cultural Victory Tracking - Track Great Artists, Writers, and Musicians
Related MCP server: CivMCP
Requirements
Node.js 18+
Civilization VI (macOS or Windows)
Claude Desktop
Important: You must enable game logging in Civilization VI for the MCP server to access game data. See Enable Game Logging below.
Installation
Clone the repository:
git clone https://github.com/lowrykun/civ6mcp.git cd civ6mcpInstall dependencies:
npm installBuild the project:
npm run build
Enable Game Logging
The MCP server reads data from Civilization VI's log files. You need to enable logging:
Find your
UserOptions.txtfile:macOS:
~/Library/Application Support/Sid Meier's Civilization VI/UserOptions.txtWindows:
%LOCALAPPDATA%\Firaxis Games\Sid Meier's Civilization VI\UserOptions.txt
Add or modify this line:
GameHistoryLogLevel=1Start Civilization VI and play at least one turn to generate log data.
Claude Desktop Configuration
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"civ6": {
"command": "node",
"args": ["/path/to/civ6mcp/dist/index.js"]
}
}
}Replace /path/to/civ6mcp with the actual path to where you cloned the repository.
Claude Project Setup (Recommended)
For the best experience, create a Claude Project with the strategic advisor instructions:
In Claude, create a new Project called "Civilization VI"
Copy the contents of PROJECT_INSTRUCTIONS.md into the Project Instructions
Start a conversation in that project
This gives Claude context about all the available tools and how to provide strategic advice.
Available Tools
Tool | Description |
| Comprehensive briefing: threats, opportunities, victory race |
| Compare all civs' science, culture, gold, faith, military |
| Who's leading each victory type |
| Detailed per-civ stats (specify turn number optional) |
| Score breakdown by category (Empire, Tech, Wonders, etc.) |
| Track changes over time, identify rising/declining powers |
| Relationships: allied, friendly, denounced, war |
| Specific reasons for +/- relations |
| Strength, combat desire, threat levels |
| Recent battles, units, damage |
| What every city is building |
| City growth potential based on food advantage at founding |
| Technology progress by civilization |
| Voting records and resolution outcomes |
| Great People claimed and available |
| Track Artists, Writers, Musicians for cultural victory |
| Find save files |
| Parse save file for basic game info |
| Formatted briefing from save file |
See TOOLS.md for detailed documentation.
Usage Examples
Ask Claude things like:
"What's my current strategic situation?"
"Who is the biggest threat right now?"
"What are my neighbors building?"
"How are my yields compared to other civs?"
"Show me the trend analysis for the last 10 turns"
"What's the diplomatic situation with Persia?"
How It Works
The MCP server reads from two sources:
Save Files (
.Civ6Save) - Basic game info like leader, turn, map settingsLog Files (CSV) - Detailed statistics generated each turn when logging is enabled
Log files provide much richer data including:
All civilizations' yields and military strength
Diplomatic relationships and their modifiers
Combat records
City production queues
Technology progress
World Congress votes
Platform Support
macOS - Fully supported
Windows - Fully supported
Troubleshooting
"No game data available"
Make sure
GameHistoryLogLevel=1is set in UserOptions.txtPlay at least one turn after enabling logging
Check that log files exist in your Logs directory
Data seems outdated
Log files update when you complete a turn
Mid-turn, you'll only see your own civilization's latest data
License
MIT License - see LICENSE for details.
Available Tools
21 toolsget_city_productionB
Get what every city is currently building, including strategic items like Giant Death Robots, Manhattan Project, and space race projects.
Inputs: civilization.
get_city_statusA
Get status of your cities including food advantage at founding (indicates growth potential) and current production. Cities with negative food advantage will struggle to grow without improvements like Granaries or Farms.
Inputs: player_id.
get_civ_statisticsA
Get detailed statistics for ALL civilizations including yields, military, cities, and score. Requires game history logging to be enabled (GameHistoryLogLevel=1 in UserOptions.txt).
Inputs: turn.
get_combat_logB
Get recent combat history showing battles, units involved, damage dealt, and active conflicts.
Inputs: turns.
get_diplomatic_modifiersA
Get specific diplomatic modifiers explaining why civilizations like or dislike each other (e.g., "Allied with a friend +8", "Denounced them -9").
Inputs: civilization.
get_diplomatic_statusB
Get diplomatic relationships between all civilizations including alliance status, friendship, denouncements, and wars.
Inputs: civilization.
get_game_contextB
Retrieve the stored game context information
Inputs: no named parameters.
get_great_peopleB
Get Great People that have been claimed and those available for recruitment.
Inputs: no named parameters.
get_great_people_cultureA
Track Great Artists, Writers, and Musicians for cultural victory analysis. Shows who is collecting cultural Great People, how many Great Works have been created, and who is leading the culture race.
Inputs: no named parameters.
get_military_intelligenceA
Get military strength, combat desire (aggressiveness), and preferred military tech targets for all civilizations.
Inputs: no named parameters.
get_score_breakdownA
Get detailed score breakdown by category (Empire, Tech, Civics, Wonders, Great People, Religion) for all civilizations. Shows why each civ is ahead or behind and identifies your strengths and gaps.
Inputs: no named parameters.
get_strategic_overviewA
Get a comprehensive strategic briefing combining threats, opportunities, active conflicts, victory race positions, and key production to watch.
Inputs: civilization.
get_strategy_briefC
Get a formatted strategy briefing from a Civilization VI save file, suitable for discussing strategy and next moves
Inputs: save_path (required).
get_tech_statusB
Get technology research progress for all civilizations.
Inputs: no named parameters.
get_trend_analysisA
Analyze trends over multiple turns showing how each civilization's score, science, culture, military, and territory are changing. Highlights military buildups, fastest growing civs, and declining powers.
Inputs: turns.
get_victory_progressA
Get victory progress positions for all civilizations across Science, Culture, Domination, and Score victories. Shows who is leading each victory type.
Inputs: no named parameters.
get_world_congressA
Get World Congress voting records and resolution outcomes.
Inputs: no named parameters.
get_yield_comparisonA
Get a comparison table of all civilizations' yields (science, culture, gold, faith per turn), cities, and military strength.
Inputs: no named parameters.
list_savesA
List all Civilization VI save files. Saves are located at: /root/Library/Application Support/Sid Meier's Civilization VI/Sid Meier's Civilization VI/Saves
Inputs: filter.
read_game_stateA
Parse a Civilization VI save file and return the current game state including leader, civilization, era, difficulty, and other players
Inputs: save_path (required).
set_game_contextB
Store additional game context that cannot be parsed from the save file (e.g., current yields, military strength, cities, technologies, goals, diplomatic relations). This information will be included in strategy briefs.
Inputs: context (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool targets a distinct aspect of the game (cities, civilizations, combat, diplomacy, great people, tech, victory, etc.). Even potentially overlapping tools like get_strategic_overview and get_strategy_brief have clearly differentiated purposes.
Most tools follow the get_<noun> pattern, but list_saves and set_game_context use different verbs. This is a minor deviation from an otherwise consistent naming scheme.
21 tools is well-scoped for the complexity of Civilization VI. Each tool covers a specific gameplay aspect without being excessive or redundant.
The toolset covers major game systems (cities, tech, diplomacy, victory, etc.) but lacks direct tools for religion and detailed unit management. These are minor gaps for a read-only server.
Related MCP Connectors
Ask Claude, ChatGPT, or any MCP client about your game's players, retention, revenue, and win rates.
Chess MCP for Claude: engine analysis, attack maps, game review. One URL, no install.
Remote MCP server for live sports data. Ask for scores, standings, player stats and Elo ratings across 9 sports directly from Claude or any MCP client. Backed by the Big Balls Sports API, with one unified schema for every sport.
Sportsbook and prediction-market prices in Claude and ChatGPT. Needs BeatVig Premium + MCP Access.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that lets LLM agents play full games of Civilization VI. It connects to a running game and provides tools for unit movement, city management, diplomacy, and more, all through the game's rule-enforcing APIs.76249MIT
- FlicenseAqualityCmaintenanceEnables an AI coach to inspect Civilization VI game state, check game connectivity, and query detailed rules for techs, civics, units, districts, and more through MCP tools.8-
- AlicenseAqualityCmaintenanceEnables MCP-compatible AI agents to play full Civilization VI games by reading game state and issuing rule-enforced actions such as moving units, managing cities, conducting diplomacy, and ending turns.76MIT
- AlicenseNot gradedqualityBmaintenanceExposes a running Crusader Kings III session through MCP so Claude can observe game state, set a ruler's strategy and let the game's own AI execute each move, whether you watch, play against it, or run unattended cycles over many rulers.2Apache 2.0