ck3-strategy-advisor
Provides tools for analyzing Crusader Kings III save files, enabling AI agents to retrieve realm overview, military, succession, diplomacy, vassals, and other strategic information from the game.
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., "@ck3-strategy-advisor what's my realm overview?"
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.
CK3 Strategy Advisor (MCP server)
A local Model Context Protocol server that reads your Crusader Kings III save file and exposes your strategic situation to Claude as compact, curated tools. Ask Claude "what's my situation?" and it can pull your realm overview, military, succession, diplomacy, vassals, factions, and expansion options straight from your latest save.
It is read-only: it never modifies your save or your game.
Requirements
Node.js ≥ 22
Non-Ironman saves only. Ironman saves are stored in a binary format; the advisor detects them and returns a friendly message instead of mis-parsing. Play (or re-save) without Ironman to use the advisor.
Mid/late-game saves are large (the embedded game state is ~200+ MB of text); parsing one peaks at roughly 1.1 GB of memory and takes a couple of seconds.
Related MCP server: vic3-mcp
Install & build
npm install
npm run buildConfiguration
The server finds your save and game directories from environment variables, with
WSL//mnt/c discovery as a fallback:
Variable | Purpose | Default |
| Folder containing your | auto-discovered at |
| CK3 game install (for localization) |
|
CK3_GAME_DIR is optional. Without it, titles/traits are shown as their raw game
keys instead of localized names — everything else still works.
The server reads the newest readable .ck3 in the save directory. CK3
autosaves are written in a binary token format (the same one Ironman uses)
regardless of whether you play Ironman, and the advisor can't decode it — so it
automatically skips binary autosaves/Ironman saves and uses your newest normal
save instead. You don't need to delete or rename autosaves; just keep making
ordinary saves and the freshest one is picked up.
Register with Claude
Add it as a local stdio MCP server. In Claude Code:
claude mcp add ck3-advisor -- node /absolute/path/to/ck3mod/dist/index.jsOr in Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"ck3-advisor": {
"command": "node",
"args": ["/absolute/path/to/ck3mod/dist/index.js"],
"env": {
"CK3_SAVE_DIR": "/mnt/c/Users/you/Documents/Paradox Interactive/Crusader Kings III/save games"
}
}
}
}Workflow
Play CK3 (non-Ironman). Save your game whenever you want fresh advice.
Ask Claude about your realm. Each tool response is stamped with the save's in-game date and how long ago it was read, so you know how current it is.
Saved again? Just ask again — the server re-reads the newest save automatically.
Tools
Tool | What it returns |
| Ruler, primary title & tier, house, gold/prestige/piety, date. Start here. |
| Levy + total mobilised strength, and ongoing wars (side, casus belli, target, score). |
| Heirs in order, succession & gender laws, rival claimants. |
| Alliances, truces, independence, and who most dislikes you. |
| Your most powerful vassals: power owed, opinion, council seat, faction danger flag. |
| Titles you personally hold, grouped by tier, each with its de jure liege. |
| Factions targeting you: type, strength vs. their threshold, members, leader. |
| Stored claims (pressed/unpressed), unheld de jure titles, ongoing-war targets. |
| Search living characters by (partial) name → ids. |
| Full dossier for one character id: traits, skills, wealth, claims. |
| Look up any realm by name/key — ruler, army, allies, liege, active wars. |
Known limitations (v1)
These reflect what is and isn't stored in the save:
Names are stored in CK3's encoded form;
find_characternormalizes and does best-effort substring matching, so very stylized names may not match.Claims are reported as pressed/unpressed — CK3 does not store a strong/weak distinction in the save.
Men-at-arms are not broken out per ruler in the save;
militaryreports the realm's mobilisation totals.Opinion values (e.g. in
diplomacy/vassals) are approximate, summed from stored opinion modifiers rather than the game's computed total.Localization is English-only, ignores
$KEY$interpolation, and is currently unverified against a real CK3 install (developed against a test fixture). Real.ymlquirks — a leading BOM,§colour codes and#comments inside values, deeply nested subfolders — may not all be handled. WithoutCK3_GAME_DIR, titles and traits appear as their raw game keys.expansionlists stored levers (claims, unheld de jure titles, active-war CBs), not a full computed enumeration of every possible casus belli.
Development
npm test # run the vitest suite
npm run test:watch
npm run lint # eslint (typescript-eslint, flat config)
npm run format # prettier --write (check-only: npm run format:check)
npm run dev # run the server from source via tsxThe verified gamestate field paths the extractors rely on are documented in
docs/save-schema.md, and scripts/inspect-section.mjs
/ scripts/check-paths.mjs help map new fields against a real save.
Distribution (future)
The documented path for shipping this to non-developers is MCPB (a self-contained bundle with the Node runtime), so it can be installed without a local Node/npm setup. The current release targets the local stdio prototype above.
License
MIT © Thom Andretti
This is an unofficial, fan-made tool. Crusader Kings III is a trademark of Paradox Interactive AB. This project is not affiliated with or endorsed by Paradox Interactive.
Available Tools
11 toolscharacterCharacterARead-only
Detailed dossier for one character by id — needs an id; use find_character if you only have a name. Traits, skills, gold/prestige/piety, health/stress, primary title, and claims (pressed/unpressed; CK3 does not store strong/weak).
Inputs: id (required).
diplomacyDiplomacyARead-only
Active alliances and truces, independence status, and the characters with the most negative opinion of you (approximate, from stored opinion modifiers). Does not include marriage candidates or neighbour-opinion (not stored in the save).
Inputs: no named parameters.
expansionExpansionARead-only
Stored expansion levers: your title claims (pressed/unpressed — CK3 does not store strong/weak), de jure titles in your realm that are currently unheld, and the targets of your ongoing wars. This lists STORED data, not a full computed enumeration of every possible casus belli.
Inputs: no named parameters.
factionsFactionsARead-only
Factions currently targeting you: type, strength vs. the threshold that triggers their demand (peasant factions use discontent), member count, and leader.
Inputs: no named parameters.
find_characterFind CharacterARead-only
Search living characters by (partial) first name; returns ids to pass to character. Best-effort: CK3 stores names in an encoded form, so matching is approximate.
Inputs: name (required).
foreign_realmForeign RealmARead-only
Look up any realm by name or title key (e.g. "Scotland", "k_france") — its ruler, army strength, allies, liege, and active wars. For your own realm use realm_overview.
Inputs: name (required).
militaryMilitaryARead-only
Player's military strength (levy + total mobilised strength) and ongoing wars (side, casus belli, target, war score). Note: CK3 does not store a men-at-arms breakdown, so only realm totals are shown.
Inputs: no named parameters.
realm_overviewRealm OverviewARead-only
Snapshot of the player's ruler and realm: name, primary title & tier, house, gold, prestige, piety, and in-game date. Start here for 'what's my situation'. For military/wars use military; for heirs use succession.
Inputs: no named parameters.
successionSuccessionARead-only
Heirs for the player's primary title, in order, plus succession & gender laws and rival claimants. Note: CK3 does not store a partition preview, so which heir inherits which title is not simulated.
Inputs: no named parameters.
titlesHeld TitlesARead-only
Titles you personally hold (your domain), grouped by tier (empire/kingdom/duchy/county/barony), each with its de jure liege. For titles held by your vassals, see vassals.
Inputs: no named parameters.
vassalsVassalsARead-only
Your most powerful direct vassals: military power owed, approximate opinion of you, council seat, and whether they're in a faction against you (danger flag).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct aspect of the game (character details, diplomacy, expansion, factions, etc.) with minimal overlap. The descriptions clarify boundaries, e.g., `character` is for a specific character vs. `realm_overview` for the player's snapshot.
All names use lowercase with underscores (snake_case). Most are noun phrases (e.g., `factions`, `titles`), while some are verb-noun (`find_character`, `foreign_realm`). The pattern is mostly consistent and clear, though not perfectly uniform.
With 11 tools, the set is well-scoped for a strategy advisor in CK3. Each tool covers a key gameplay area without unnecessary bloat, striking a good balance between breadth and focus.
The tool set covers major gameplay aspects: character, realm, military, diplomacy, succession, vassals, factions, expansion, titles, and foreign realms. Minor gaps exist (e.g., marriage candidates, detailed council info) but are explicitly noted as limitations of the stored data.
Maintenance
Related MCP Connectors
Give Claude only the Google Drive files you choose. Every action logged.
Chess MCP for Claude: engine analysis, attack maps, game review. One URL, no install.
Swiss encrypted cloud drive for Claude, ChatGPT and AI agents: search, read and save files.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to access real-time Civilization VI game data for strategic analysis, diplomatic intelligence, military assessments, and more via MCP.216MIT
- FlicenseCqualityCmaintenanceEnables AI agents to read local Victoria 3 save files, list saves, and analyze country, economy, politics, diplomacy, military, and technology data, while generating construction, law, and diplomatic advice.19-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to full-text search, list, and read your exported ChatGPT and Claude conversations from a local conversations.json file, running locally with read-only file access and no network requests. Supports both official export formats with automatic detection.MIT
- 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.1Apache 2.0