ti4-mcp
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., "@ti4-mcp get the faction guide for the Yssaril Tribes"
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.
ti4-mcp
MCP server for Twilight Imperium 4 — provides game data, rules lookup, faction strategy guides, and setup assistance through the Model Context Protocol.
Supported Content
Base game (17 factions)
Prophecy of Kings (7 factions)
Codex I–IV (errata, updated components, Council Keleres)
Thunder's Edge (5 factions, breakthroughs, galactic events)
Related MCP server: Gospel Library MCP
Installation
npm install
npm run buildRequires Node.js 18+.
Usage
Claude Code
From GitHub:
claude mcp add ti4 -- npx --yes github:surewht/ti4-mcpFrom a local clone:
claude mcp add ti4 node /path/to/ti4-mcp/dist/index.jsClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ti4": {
"command": "npx",
"args": ["--yes", "github:surewht/ti4-mcp"]
}
}
}Inspector
npm run inspectTools (27)
Game Context
Tool | Description |
| Set game session context (expansions, player count, factions, slices) — subsequent tools auto-apply it |
| View current game context |
| Clear game context |
Factions
Tool | Description |
| List factions for active expansions |
| Detailed faction info (abilities, starting tech, units, leaders, promissory note) |
| Strategy guide — strengths, weaknesses, tips, tech paths |
| List all available faction guides |
Technologies
Tool | Description |
| Look up a technology by ID |
| Get recommended tech path for a faction |
Objectives
Tool | Description |
| List objectives, filter by type (public/secret) and stage (1/2) |
| Look up a specific objective |
Agendas
Tool | Description |
| List agenda cards, filter by type (law/directive) or election type |
| Look up a specific agenda |
Action Cards
Tool | Description |
| List action cards, filter by play timing keyword |
| Look up a specific action card |
Relics & Exploration
Tool | Description |
| List all relics |
| Look up a specific relic |
| List exploration cards, filter by trait |
Planets & Systems
Tool | Description |
| List planets, filter by trait or tech specialty |
| Look up a specific planet |
| Look up a system tile by number (planets, wormholes, anomalies) |
Strategy & Setup
Tool | Description |
| Strategic analysis for a faction given the game state |
| Generate a complete game setup (draft pool, strategy card order, etc.) |
| Suggest a balanced map layout for the player count |
| Analyze map slices for balance (resources, influence, tech specialties) |
Rules & Search
Tool | Description |
| Look up rules by keyword |
| Full-text search across all game data categories |
Game Context
Set your game setup once, and all tools auto-apply it:
"Set game context: 6 players, base + PoK + Codex 3"The AI calls set_game_context with your expansions and player count. After that, tools like list_factions, list_objectives, suggest_map, etc. automatically use those expansions without you specifying them each time.
You can still override expansions per-call if needed.
Data
All game data lives in data/ as JSON files:
File | Content |
| 30 factions with abilities, starting tech, units, leaders |
| All technologies across expansions |
| Public stage I/II and secret objectives |
| Law and directive agenda cards |
| Action cards with play timing |
| Strategy cards with primary/secondary abilities |
| System tiles with planets, wormholes, anomalies |
| Individual planet data |
| Unit stats (cost, combat, move, capacity, abilities) |
| Faction and generic promissory notes |
| Relics (PoK) |
| Exploration cards (PoK) |
| Agents, commanders, heroes |
| Breakthroughs (Thunder's Edge) |
| Galactic events (Thunder's Edge) |
| Rules reference with subsections |
| Tile quality tiers for map balancing |
| 30 faction strategy guides from competitive community sources |
Expansions
Tools accept an expansions parameter to control which content is included:
base— Base gamepok— Prophecy of Kingscodex-1throughcodex-4— Codex volumes (includes omega replacements)thunders-edge— Thunder's Edge expansion
When expansions include codex volumes, updated components automatically replace their older base/PoK versions.
License
MIT
Available Tools
27 toolsanalyze_slicesA
Analyze and compare Milty Draft slices. Each slice is an array of 5 tile IDs (indices: 0=home-left, 1=center, 2=home-right, 3=mecatol-left, 4=mecatol-gate). Returns resource/influence totals, tech skips, wormholes, anomalies, legendary planets, Mecatol path analysis, and a ranking from best to worst.
Inputs: slices (required).
clear_game_contextB
Clear the current game setup context.
Inputs: no named parameters.
get_action_cardB
Get a specific TI4 action card by ID.
Inputs: card_id (required), expansions.
get_agendaB
Get a specific TI4 agenda card by ID.
Inputs: agenda_id (required), expansions.
get_factionB
Get detailed information about a TI4 faction including abilities, starting tech, units, leaders, and promissory note.
Inputs: faction_id (required), expansions.
get_faction_guideA
Get strategy guide for a TI4 faction — strengths, weaknesses, tips, and recommended tech paths from competitive community sources.
Inputs: faction_id (required).
get_game_contextA
Get the current game setup context (expansions, player count, faction assignments, speaker).
Inputs: no named parameters.
get_objectiveB
Get a specific TI4 objective by ID.
Inputs: objective_id (required), expansions.
get_planetB
Get detailed information about a TI4 planet by ID.
Inputs: planet_id (required), expansions.
get_relicB
Get a specific TI4 relic by ID.
Inputs: relic_id (required), expansions.
get_rulesC
Look up a specific rule or game concept from the TI4 Living Rules Reference.
Inputs: keyword (required).
get_strategy_notesC
Get structured data to help reason about faction strategy. Returns starting position analysis, key technologies, home system economy, and objectives that align with the faction's strengths.
Inputs: faction_id (required), expansions.
get_systemA
Get a TI4 system tile by tile number. Returns planets, wormholes, anomalies, and faction if home system.
Inputs: tile_number (required).
get_techC
Get details about a specific technology.
Inputs: tech_id (required), expansions.
get_tech_pathB
Get all available technologies for a faction organized by color and showing prerequisite chains. Includes both generic and faction-specific techs.
Inputs: faction_id (required), expansions.
list_action_cardsA
List TI4 action cards, optionally filtered by play timing keyword.
Inputs: expansions, timing_keyword.
list_agendasC
List TI4 agenda cards, optionally filtered by type (law/directive) or election type.
Inputs: type, expansions, election_type.
list_explore_cardsB
List TI4 exploration cards, optionally filtered by trait (cultural/industrial/hazardous/frontier).
Inputs: trait, expansions.
list_faction_guidesB
List all available faction strategy guides.
Inputs: no named parameters.
list_factionsB
List all available TI4 factions for the active expansions.
Inputs: expansions.
list_objectivesA
List TI4 objectives, optionally filtered by type (public/secret) and stage (1/2).
Inputs: type, stage, expansions.
list_planetsB
List TI4 planets, optionally filtered by trait or tech specialty.
Inputs: trait, expansions, tech_specialty.
list_relicsC
List all TI4 relics for the active expansions.
Inputs: expansions.
searchC
Full-text search across all TI4 game data (factions, techs, planets, action cards, objectives, agendas, relics, explores, strategy cards, units, promissory notes, breakthroughs, galactic events, systems, rules).
Inputs: query (required), category, expansions.
set_game_contextA
Set the current game setup context. Once set, tools like search, list_factions, get_tech_path etc. will automatically use these expansions and player count without needing to pass them explicitly.
Inputs: expansions (required), player_count (required), players, speaker.
setup_gameA
Generate a game setup for N players. Returns a random faction draft pool, strategy cards, and speaker order. The LLM can then reason about balance and strategy. Player count and expansions default to game context if set.
Inputs: expansions, player_count, faction_pool_size.
suggest_mapA
Suggest a random map tile selection for a given player count. Returns blue and red tiles randomly selected from the available pool. For proper draft-based maps, use Milty Draft and then analyze_slices.
Inputs: player_count.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Most tools map to a distinct resource+action (list/get per card type, game context management, search). However get_faction, get_faction_guide, and get_strategy_notes overlap in purpose (faction info vs. strategy), and setup_game vs. suggest_map both generate setup elements, which could cause occasional misselection.
Strong, predictable snake_case verb-first convention with clear list_/get_ pairs for each card category plus set_/clear_ for context. Minor deviations like the bare 'search' and action-style names (setup_game, suggest_map, analyze_slices) keep it just below perfect.
27 tools is on the heavy side, but TI4 has a genuinely enormous data surface (factions, techs, objectives, agendas, cards, relics, explores, planets, systems, rules) so the many list/get pairs each earn their place. It is slightly bulky, with get_X singles partially redundant against full-text search.
Broad coverage of most game entities plus context management, map analysis, and strategy support. Some gaps remain: no dedicated tools for strategy cards, units, promissory notes, breakthroughs, or galactic events, though these are reachable via search and referenced elsewhere.
Maintenance
Related MCP Connectors
BGG MCP provides access to the BoardGameGeek API through the Model Context Protocol, enabling retr…
Model Context Protocol server for Studex tools, notifications, and profile integrations
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for todo.vu task management and time tracking.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides Formula One data and statistics through a Model Context Protocol interface, allowing users to access race calendars, session results, driver statistics, telemetry data, and championship standings.811MIT
- FlicenseNot gradedqualityDmaintenanceEnables access to LDS Gospel Library content and scriptures through the Model Context Protocol. Provides tools for searching and retrieving religious texts and study materials from the Church of Jesus Christ of Latter-day Saints.2-
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Dungeons & Dragons 5e game information via the Model Context Protocol, enabling queries for spells, monsters, equipment, and more.54MIT
- AlicenseAqualityDmaintenanceProvides Valorant game data through the Model Context Protocol, including player details, match history, MMR, leaderboards, and game content using the HenrikDev API.12MIT