About X4mcp
X4mcp is an MCP server published by pequalsnp in the Gaming category: mCP server for X4: Foundations — streaming savegame parser + game-data tools so an LLM can plan your empire. Conduid read 22 tools from its source: analyze_plan, estimate_ship_cost, find_energy_sites, find_mining_sectors, find_supply_gaps, find_trade_offers and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 1 stars and 0 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include gaming.
Install
git clone https://github.com/pequalsnp/x4mcpTools (22)
analyze_planAudit one of those plans for ratios: per-ware production vs internal consumption, which intermediates run a **deficit** (and the fractional module count that would close it), mined inputs to supply, sellable surplus, workforce jobs vs housing, storage. The inverse of `plan_production`/`plan_complex` — those design a station, this checks one you already drew. `sunlight`/`sector` scales the solar side, which can flip an energy deficit into a surplus.estimate_ship_costWhat a ship costs **fitted**, not the bare hull. Reads the hull's real slot list (L/M weapons, turrets, shields, engines) from the install and prices each — equipment is usually most of the bill, so a hull quote understates a warship by ~3x. Returns a min/avg/max band (component prices float with the economy), a total at **live** prices from discovered stations, and an explicit `markup` for wharf pricing the game data does not expose.find_energy_sitesRank sectors for a solar (Energy Cells) factory by sunlight + local demand + safetyfind_mining_sectorsRank sectors by abundance of a minable solid (field weight) or gas (presence)find_supply_gapsAggregate NPC buy-demand across discovered space → what's profitable to produce/sellfind_trade_offersSearch discovered NPC stations' live trade offers by ware; rank by best buy (cheapest) or sell (highest) price. Prices normalized to credits.get_moduleStation-module hardware DB by macro/name/produced-ware/class: production (produced ware + workforce employed), habitation (workforce housed), storage (m³ + cargo type). Complements `get_recipe` (module build costs are the `module_*` wares).get_player_overviewCredits, in-game hours, version/DLCs, fleet & station counts, role breakdown, faction relations. **Start here.**get_recipeA ware's production recipe (inputs/cycle/output) and price band, from the game DBget_stationFull detail for one station by code (e.g. `SRC-496`) or idlist_blueprintsBlueprints the player owns + which wares are currently producible (you can only build modules you own)list_known_sectorsGalaxy map: sectors with controlling faction, contested/owned status (filter by owner)list_plansThe player's OWN construction plans — every layout saved in the build menu, plus any Exported single-plan files.list_savesAll savegames, newest first, with path/size/mtimelist_shipsPlayer ships filtered by role/size/sector; each with current order, captain, location, accountlist_stationsStations with what they produce, workforce, storage fill, subordinate countplan_complexThe multi-target form of `plan_production`: design ONE station supplying MANY wares. `preset: wharf\plan_mining_supplySite an industrial complex: for a TARGET sector, find the reachable mining sectors per resource (abundance against gate distance) and whether to refine at the complex or beside the fieldplan_productionDesign a factory: output/hr, input rates, margin, exact vertical module ratios **and a whole-module buildable plan** (ceil'd so nothing starves, with per-ware surplus + the bottleneck module) + raw needs. Pass `build_sector` (or `sunlight`) to scale the Energy-Cells module count by 1/sunlight for that site.plan_workforceSize a station's food + medical supply: give a habitat race + workforce (or production modules to sum it from) → authoritative per-hour food/medical consumption, food/medical module counts, and habitats needed. Teladi is the tightest self-sufficient chain.refresh_saveForce a re-parse after you save the game againsector_distanceGate-jump distance between two sectors (logistics)Security checks
6 checks have not been run yet.