Aurora 4x MCP Server
Click on "Install 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., "@Aurora 4x MCP Serverlist all my colonies with population and mineral stockpiles"
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.
Aurora 4x MCP Server
A read-only MCP (Model Context Protocol) server that lets Claude query your Aurora 4x campaign database directly. Claude can look up colonies, fleets, minerals, commanders, ordnance, and more. It can register, edit, and promote new queries against your live DB without restarting. You can have natural language conversations with the LLM about your game state, ask for reports, and do analysis across the board.
AI/LLM DISCLAIMER: This tool was generated with the assistance of claude code by a user who has a solid grasp on the game. This tool is built specificially to query the DB, and nothing else. If you write to the DB you may cause unintended consquence and will not be able to receive support by the larger community.
Getting started
Once the server is connected, start a new Claude Code session and say:
Please verify my current game and give me a description of the available tools.
Claude will call get_session_context to confirm the right campaign is loaded, let you know that query results are limited to 200 rows by default, and ask whether you'd like to disable that limit for the session. It will then summarize what each tool does. From there you can ask natural-language questions about your empire — minerals, colonies, fleets, commanders, ordnance — and Claude will pick the right tools automatically.
Prerequisites
Python 3.10 or later
Aurora 4x installed with at least one active campaign saved
Claude Code or Claude Desktop
Installation
1. Place the server files
Copy the server directory somewhere permanent. These docs assume:
D:\Aurora\aurora-mcp\
server.py
queries.json
pyproject.tomlAdjust all paths below if you use a different location.
2. Install the Python dependency
Open a terminal and run:
pip install "mcp>=1.0.0"Or install from the project directory using the included pyproject.toml:
cd D:\Aurora\aurora-mcp
pip install -e .3. Locate your Aurora database
Aurora 4x always stores its database in its own install folder. The file you need is AuroraDB.db, sitting directly inside the Aurora directory — the same folder that contains Aurora.exe.
D:\Aurora\AuroraDB.db ← example; your install path may differYou must set AURORA_DB_PATH to this file's full path in the config below. There is no default that will work out of the box.
4. Connect to Claude Desktop / Claude Code
Edit the MCP configuration file:
notepad "$env:APPDATA\Claude\claude_desktop_config.json"If the file doesn't exist yet, create it. Add the following, replacing the paths with your actual paths:
{
"mcpServers": {
"aurora4x": {
"command": "python",
"args": [
"D:/Aurora/aurora-mcp/server.py"
],
"env": {
"AURORA_DB_PATH": "D:/Aurora/AuroraDB.db"
}
}
}
}Path format: Use forward slashes (
/) even on Windows, or double backslashes (\\). Single backslashes will cause a JSON parse error.
If you already have other MCP servers in your config, add the
"aurora4x"block inside the existing"mcpServers"object — don't create a second one.
5. Restart and verify
Close and reopen Claude Desktop / Claude Code. In a new session, ask:
Call
get_session_contextto confirm the right campaign is loaded.
Claude should return your GameID, GameName, RaceID, and RaceName. If it does, you're good to go.
Environment variables
Variable | Default | Description |
|
| Full path to |
Available tools
Ad-hoc query
Tool | Description |
| Run any read-only SQL directly. |
Introspection
Tool | Description |
| Returns the GameID and RaceID resolved for this session — call first to confirm the right campaign is active |
| Lists all registered queries with verified status, params, and description |
| Shows the known-good table schema from |
| Lists every table in the Aurora database |
| Returns column names, types, and primary key flags for a specific table |
Query registry
Tool | Description |
| Saves a new query to |
| Overwrites an existing query's SQL, params, or description. Resets |
| Removes a query from |
| Marks a |
Jump network
Tool | Description |
| Returns all systems within N jump hops of a source system using Dijkstra traversal. Use this first for "what's near X" queries, then join the returned system IDs against mineral or colony data. Params: |
| Invalidates the cached jump network. Call after survey vessels discover new jump points so the next routing call re-fetches from the DB. |
Registered queries
Queries are stored in queries.json and loaded on every request — no restart needed after changes. All registered queries also accept limit_query: false to bypass the 200-row cap.
Empire
Query | Params | Description |
| — | Active game and race info |
|
| Recent game log entries, looking back N days or hours |
| — | Body-level mineral survey — every surveyed body with amount, accessibility, and accessible amount |
|
| Minerals summarised by system; filter by mineral name or leave empty for all |
|
| Mineral totals for all systems within N hops of a given system |
| — | Full colony report: population, species, stockpiles, installations, and production queues |
|
| Commander details by name fragment — type, rank, assignment, homeworld, and career history |
|
| Full RP/lore profile — skills, traits, medals, career history, health, loyalty |
| — | Full ship design report — propulsion, armour, sensors, capacity, EW, component manifest, and capture provenance |
| — | Quick hull classification lookup — class name, type (BB/CA/DD etc), military vs commercial |
|
| Ordnance load-out templates per class with full missile stats and colony stock |
|
| Complete missile catalogue — speed, range, warhead, ECM/ECCM, staging, and total stock |
|
| Missile stockpiles held at colonies — stock count, size, and key combat stats |
| — | Per-ship ordnance status — loaded vs template vs deficit, with ship location and collier flag |
|
| Shortest route between two systems with hop-by-hop distance and per-class fuel cost |
Alien intelligence
These queries expose information about other races and may reveal spoilers.
SPOILER_GUARD_other_racesshould be called first to confirm the player wants to proceed.
Query | Params | Description |
| — | Lists all non-player races in the game. Call before any alien query to confirm the player wants to view potentially spoiler information. |
| — | All alien races known to the empire — contact status, comms status, first detected date, diplomatic points, and treaty flags |
|
| Habitat tolerances (gravity, temperature, oxygen, pressure) for a given alien species. Only returns data if an autopsy has been completed. |
|
| Observed ship class capabilities — hull stats, weapons with ranges, and detected technology |
|
| Individual alien hulls by name and class — status, damage taken, last known system, and last contact date |
Row limits
All query tools cap results at 200 rows by default. This is a fixed limit — it cannot be changed in config. When results are truncated, the response will include a notice.
To retrieve the full result set, pass limit_query: false on any tool call. This bypasses the cap entirely and may return a large number of rows, consuming significantly more tokens.
Query lifecycle
The server reloads queries.json on every request, so all registry changes take effect immediately.
execute_sql ← explore with ad-hoc SQL
↓
register_query ← save a promising query as DRAFT_<name>
↓
update_query ← fix SQL or params as needed
↓
promote_query ← once verified, strip DRAFT_ and mark verified=true
↓
delete_query ← remove broken or superseded draftsImportant: save before querying
Troubleshooting
Server doesn't appear in Claude Code
Confirm
pythonresolves in your PATH: runpython --versionin a terminal.Confirm the path to
server.pyinargsis correct and uses forward slashes or\\.Check Claude Code's MCP logs (Developer → MCP Servers) for startup errors.
"No active campaign found"
The server finds the campaign via
MAX(GameID) WHERE GameName != 'Sample'. Make sure you have a real saved game, not just the built-in sample campaign.
"No player race found"
The server looks for
MIN(RaceID)withNPR = 0. If that doesn't match your setup, inspectFCT_Racewithdescribe_tableandexecute_sql.
Wrong campaign loaded
The server picks the highest
GameID. If you have multiple campaigns, the most recently created one wins. Verify withget_session_context.
A DRAFT query returns wrong column names
Use
describe_tableon the relevant table to check exact column names, then fix the query withupdate_query.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/crispiboi/aurora-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server