About Civ6 MCP
Civ6 MCP is an MCP server published by lmwilki in the Agents category: an MCP server that lets LLM agents play Civilization VI. Conduid read 76 tools from its source: appoint_governor, assign_governor, change_government, choose_dedication, choose_pantheon, city_action and 70 more. No package is published for it, so it installs from a source checkout.
The repository has 253 stars and 52 forks, is licensed MIT, and its last commit was on 13 Oct 2026. The latest release is v1.1.9. It follows v1.1.8, and the 5 most recent releases go back to v1.1.10. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agentic-harness, benchmark, civilization-6, civilization-vi, firetuner and game.
Install
git clone https://github.com/lmwilki/civ6-mcpTools (76)
appoint_governorAppoint a new governor.| Parameter | Type | Description |
|---|---|---|
| governor_type * | string | e.g. GOVERNOR_THE_EDUCATOR (Pingala), GOVERNOR_THE_DEFENDER (Victor) |
assign_governorAssign an appointed governor to a city.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | The city ID (from get_cities output) |
| governor_type * | string | The governor type (from get_governors output) |
change_governmentSwitch to a different government type.| Parameter | Type | Description |
|---|---|---|
| government_type * | string | e.g. GOVERNMENT_CLASSICAL_REPUBLIC, GOVERNMENT_OLIGARCHY |
choose_dedicationChoose a dedication/commemoration for the current era.| Parameter | Type | Description |
|---|---|---|
| dedication_index * | integer | The index of the dedication (from get_dedications output) |
choose_pantheonFound a pantheon with the specified belief.| Parameter | Type | Description |
|---|---|---|
| belief_type * | string | e.g. BELIEF_GOD_OF_THE_FORGE, BELIEF_DIVINE_SPARK |
city_actionIssue a command to a city.| Parameter | Type | Description |
|---|---|---|
| action * | string | Currently supported: 'attack' (city ranged attack) |
| city_id * | integer | City ID (from get_cities output) |
| target_x | integer | Target X coordinate (required for attack) |
| target_y | integer | Target Y coordinate (required for attack) |
dismiss_popupDismiss any blocking popup in the game UI.end_turnEnd the current turn.| Parameter | Type | Description |
|---|---|---|
| hypothesis | string | |
| planning | string | |
| strategic | string | |
| tactical | string | |
| tooling | string |
form_allianceForm an alliance with another civilization.| Parameter | Type | Description |
|---|---|---|
| alliance_type | string | One of: MILITARY, RESEARCH, CULTURAL, ECONOMIC, RELIGIOUS |
| other_player_id * | integer | The player ID (from get_diplomacy output) |
found_religionFound a religion with a chosen name, follower belief, and founder belief.| Parameter | Type | Description |
|---|---|---|
| follower_belief * | string | e.g. BELIEF_WORK_ETHIC, BELIEF_CHORAL_MUSIC |
| founder_belief * | string | e.g. BELIEF_STEWARDSHIP, BELIEF_CHURCH_PROPERTY |
| religion_type * | string | e.g. RELIGION_HINDUISM, RELIGION_BUDDHISM, RELIGION_ISLAM |
get_builder_tasksGet a prioritized task board for all your builders.get_citiesList all your cities with yields, population, production, growth, and loyalty.get_city_productionList what a city can produce right now.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities output) |
get_city_statesList known city-states with envoy counts and types.get_dedicationsGet current era age, available dedications, and active ones.get_diaryRead diary entries for game memory.| Parameter | Type | Description |
|---|---|---|
| from_turn | integer | Return entries from this turn onward (inclusive). |
| last_n | integer | Number of most recent entries to return (default 5, max 50). Used when turn/from_turn/to_turn are not specified. |
| to_turn | integer | Return entries up to this turn (inclusive). |
| turn | integer | Return the single entry for this turn number. |
get_diplomacyGet diplomatic status with all known civilizations.get_district_advisorShow best tiles to place a district with adjacency bonuses.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities) |
| district_type * | string | e.g. DISTRICT_CAMPUS, DISTRICT_HOLY_SITE, DISTRICT_INDUSTRIAL_ZONE |
get_empire_resourcesGet a summary of all resources in and near your empire.get_game_overviewGet a high-level summary of the current game state.get_global_settle_advisorFind the best settle locations across the entire revealed map.get_governorsGet governor status, appointed governors, and available types.get_gp_advisorShow best cities to activate a Great Person, ranked by suitability.| Parameter | Type | Description |
|---|---|---|
| unit_index * | integer | The Great Person unit's index (from get_units output). |
get_great_peopleSee available Great People and recruitment progress.get_map_areaGet terrain info for tiles around a point.| Parameter | Type | Description |
|---|---|---|
| center_x * | integer | X coordinate of center tile |
| center_y * | integer | Y coordinate of center tile |
| radius | integer | How many tiles out from center (default 2, max 4) |
get_notificationsGet all active game notifications.get_pantheon_beliefsGet pantheon status and available beliefs for selection.get_pathing_estimateEstimate how many turns a unit needs to reach a destination.| Parameter | Type | Description |
|---|---|---|
| target_x * | integer | Destination X coordinate |
| target_y * | integer | Destination Y coordinate |
| unit_id * | integer | The unit's composite ID (from get_units output) |
get_pending_diplomacyCheck for pending diplomacy encounters (e.g. first meeting with a civ).get_pending_tradesCheck for pending trade deal offers from other civilizations.get_policiesGet current government, policy slots, and available policies.get_purchasable_tilesList tiles a city can purchase with gold.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities) |
get_religion_beliefsGet religion founding status, available religions, and available beliefs.get_religion_spreadGet per-city religion breakdown across all visible cities.get_settle_advisorList best settle locations near a settler unit.| Parameter | Type | Description |
|---|---|---|
| unit_id * | integer | The settler's composite ID (from get_units output) |
get_spiesList all your spy units with position, rank, city, and available missions.get_strategic_mapGet fog-of-war boundaries and unclaimed resources across the map.get_tech_civicsGet technology and civic research status.get_trade_destinationsList valid trade route destinations for a trader unit.| Parameter | Type | Description |
|---|---|---|
| unit_id * | integer | The trader's composite ID (from get_units output) |
get_trade_optionsSee what both sides can trade — like opening the trade screen.| Parameter | Type | Description |
|---|---|---|
| other_player_id * | integer | The player ID (from get_diplomacy output) |
get_trade_routesGet trade route capacity, active routes, and trader status.get_unit_promotionsList available promotions for a unit.| Parameter | Type | Description |
|---|---|---|
| unit_id * | integer | The unit's composite ID (from get_units output) |
get_unitsList all your units with position, type, movement, and health.get_victory_progressGet victory condition progress for all civilizations.get_wonder_advisorShow best tiles to place a wonder with displacement cost analysis.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities output) |
| wonder_name * | string | Wonder building type, e.g. BUILDING_CHICHEN_ITZA, BUILDING_ORSZAGHAZ |
get_world_congressGet World Congress status, active resolutions, and voting options.kill_gameKill the Civ 6 game process and wait for Steam to deregister.launch_gameLaunch Civ 6 via Steam.list_savesList available save files (normal, autosave).load_game_saveLoad a save file by name. No need to call list_saves first.| Parameter | Type | Description |
|---|---|---|
| save_name * | string | Save name without extension (e.g. "0_MCP_0079", "0A_GROUND_CONTROL", "AutoSave_0221", "quicksave"). |
load_saveLoad a save file by index from the most recent list_saves() result.| Parameter | Type | Description |
|---|---|---|
| save_index * | integer | Index number from list_saves output (1-based) |
load_save_from_menuNavigate the main menu to load a save via OCR-guided clicking.| Parameter | Type | Description |
|---|---|---|
| save_name | string | Autosave name (e.g. "AutoSave_0221"). If not provided, loads the most recent autosave. |
patronize_great_personBuy a Great Person instantly with gold or faith.| Parameter | Type | Description |
|---|---|---|
| individual_id * | integer | The individual's ID (from get_great_people output) |
| yield_type | string | YIELD_GOLD (default) or YIELD_FAITH |
promote_governorPromote a governor with a new ability.| Parameter | Type | Description |
|---|---|---|
| governor_type * | string | The governor type (from get_governors output) |
| promotion_type * | string | The promotion type (from get_governors output, shown under each governor) |
promote_unitApply a promotion to a unit.| Parameter | Type | Description |
|---|---|---|
| promotion_type * | string | e.g. PROMOTION_BATTLECRY, PROMOTION_TORTOISE |
| unit_id * | integer | The unit's composite ID (from get_units output) |
propose_peacePropose white peace to a civilization you're at war with.| Parameter | Type | Description |
|---|---|---|
| other_player_id * | integer | The player ID (from get_diplomacy output) |
propose_tradePropose a trade deal to another civilization.| Parameter | Type | Description |
|---|---|---|
| joint_war_target | integer | Player ID of a third civ to declare joint war against |
| mode | string | "send" to commit the deal, "test" to preview AI's counter-offer without committing |
| offer_favor | integer | Diplomatic favor to offer |
| offer_gold | integer | Lump sum gold to give them |
| offer_gold_per_turn | integer | Gold per turn to give them (30-turn duration) |
| offer_open_borders | boolean | True to offer our open borders |
| offer_resources | string | Comma-separated resource types to offer, e.g. "RESOURCE_SILK,RESOURCE_TEA" |
| other_player_id * | integer | The player ID (from get_diplomacy output) |
| request_favor | integer | Diplomatic favor to request from them |
| request_gold | integer | Lump sum gold to request from them |
| request_gold_per_turn | integer | Gold per turn to request (30-turn duration) |
| request_open_borders | boolean | True to request their open borders |
| request_resources | string | Comma-separated resource types to request |
purchase_itemPurchase a unit or building instantly with gold or faith.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities output) |
| item_name * | string | e.g. UNIT_WARRIOR, BUILDING_MONUMENT |
| item_type * | string | UNIT or BUILDING |
| yield_type | string | YIELD_GOLD (default) or YIELD_FAITH |
purchase_tileBuy a tile for a city with gold.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID |
| x * | integer | Tile X coordinate |
| y * | integer | Tile Y coordinate |
queue_wc_votesPre-configure World Congress votes for the upcoming session.| Parameter | Type | Description |
|---|---|---|
| votes * | string | JSON array of vote objects, e.g. '[{"hash": -513644209, "option": 1, "target": 2, "votes": 5}]' hash = resolution type hash (from get_world_congress) option = 1 for A, 2 for B target = player ID for PlayerType resolutions (from get_world_congress target list, e.g. [target=2] Portugal), or target value for non-player resolutions. The handler resolves to the correct 0-based index at runtime. votes = max votes to allocate (will use as many as favor allows) |
recruit_great_personRecruit a Great Person using accumulated GP points.| Parameter | Type | Description |
|---|---|---|
| individual_id * | integer | The individual's ID (from get_great_people output, shown after ability) |
reject_great_personPass on a Great Person (skip to the next one in that class).| Parameter | Type | Description |
|---|---|---|
| individual_id * | integer | The individual's ID (from get_great_people output) |
respond_to_diplomacyRespond to a pending diplomacy encounter.| Parameter | Type | Description |
|---|---|---|
| other_player_id * | integer | The player ID of the other civilization (from get_pending_diplomacy) |
| response * | string | "POSITIVE" (friendly) or "NEGATIVE" (dismissive) |
respond_to_tradeAccept or reject a pending trade deal.| Parameter | Type | Description |
|---|---|---|
| accept * | boolean | True to accept the deal, False to reject it |
| other_player_id * | integer | The player ID of the civilization (from get_pending_trades) |
restart_and_loadFull game recovery: kill, relaunch, and load a save.| Parameter | Type | Description |
|---|---|---|
| save_name | string | Autosave name (e.g. "AutoSave_0221"). If not provided, loads the most recent autosave. |
run_luaRun arbitrary Lua code in the game. Advanced escape hatch — prefer built-in tools.| Parameter | Type | Description |
|---|---|---|
| code * | string | Lua code to execute. Use print() for output, end with print("---END---"). |
send_diplomatic_actionSend a proactive diplomatic action to another civilization.| Parameter | Type | Description |
|---|---|---|
| action * | string | One of: DIPLOMATIC_DELEGATION, DECLARE_FRIENDSHIP, DENOUNCE, RESIDENT_EMBASSY, OPEN_BORDERS, DECLARE_SURPRISE_WAR, DECLARE_FORMAL_WAR, DECLARE_HOLY_WAR, DECLARE_LIBERATION_WAR, DECLARE_RECONQUEST_WAR, DECLARE_PROTECTORATE_WAR, DECLARE_COLONIAL_WAR, DECLARE_TERRITORIAL_WAR |
| other_player_id * | integer | The player ID (from get_diplomacy output) |
send_envoySend an envoy to a city-state.| Parameter | Type | Description |
|---|---|---|
| player_id * | integer | The city-state's player ID (from get_city_states) |
set_city_focusSet a city's citizen yield priority.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID |
| focus * | string | One of: food, production, gold, science, culture, faith, default 'default' clears all focus settings. |
set_city_productionSet what a city should produce.| Parameter | Type | Description |
|---|---|---|
| city_id * | integer | City ID (from get_cities output) |
| item_name * | string | e.g. UNIT_WARRIOR, BUILDING_MONUMENT, DISTRICT_CAMPUS, PROJECT_LAUNCH_EARTH_SATELLITE |
| item_type * | string | UNIT, BUILDING, DISTRICT, or PROJECT |
| target_x | integer | X coordinate for district/wonder placement (required for districts — use get_district_advisor to find best tile) |
| target_y | integer | Y coordinate for district/wonder placement |
set_policiesSet policy cards in government slots.| Parameter | Type | Description |
|---|---|---|
| assignments * | string | Comma-separated slot assignments, e.g. "0=POLICY_AGOGE,1=POLICY_URBAN_PLANNING" Slots not listed keep their current policy. Use NONE to explicitly clear a slot (e.g. "2=NONE"). Use get_policies to see available policies and slot indices. |
set_researchChoose a technology or civic to research.| Parameter | Type | Description |
|---|---|---|
| category | string | "tech" or "civic" (default: tech) |
| tech_or_civic * | string | The type name, e.g. TECH_POTTERY or CIVIC_CRAFTSMANSHIP |
skip_remaining_unitsSkip all units that still have moves remaining.spy_actionSend a spy to a city or launch a spy mission.| Parameter | Type | Description |
|---|---|---|
| action * | string | 'travel' to move spy to a city, or a mission type to launch a mission. Mission types: COUNTERSPY, GAIN_SOURCES, SIPHON_FUNDS, STEAL_TECH_BOOST, SABOTAGE_PRODUCTION, GREAT_WORK_HEIST, RECRUIT_PARTISANS, NEUTRALIZE_GOVERNOR, FABRICATE_SCANDAL |
| target_x * | integer | X coordinate of the target city tile |
| target_y * | integer | Y coordinate of the target city tile |
| unit_id * | integer | The spy's composite ID (from get_spies output) |
unit_actionIssue a command to a unit.| Parameter | Type | Description |
|---|---|---|
| action * | string | One of: move, attack, fortify, skip, found_city, improve, repair, remove_improvement, remove_feature, build_route, automate, heal, alert, sleep, delete, trade_route, activate, sacrifice_charges, teleport, spread_religion |
| improvement | string | Improvement type for builders (required for improve), e.g. IMPROVEMENT_FARM, IMPROVEMENT_MINE, IMPROVEMENT_QUARRY, IMPROVEMENT_PLANTATION, IMPROVEMENT_CAMP, IMPROVEMENT_PASTURE, IMPROVEMENT_FISHING_BOATS, IMPROVEMENT_LUMBER_MILL |
| target_x | integer | Target X coordinate (required for move/attack/trade_route/teleport) |
| target_y | integer | Target Y coordinate (required for move/attack/trade_route/teleport) |
| unit_id * | integer | The unit's composite ID (from get_units output) |
upgrade_unitUpgrade a unit to its next type (e.g. Slinger -> Archer).| Parameter | Type | Description |
|---|---|---|
| unit_id * | integer | The unit's composite ID (from get_units output) |
Security checks
- ✓README presentThe repository's README runs to about 1.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 137 source files and found 1 call to eval or shell execution, in web/next.config.ts. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.2K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README