TheoTown MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| THEOTOWN_DATA_DIR | No | Path to the TheoTown data directory. Example: C:\Users\<USERNAME>\TheoTown or %USERPROFILE%\TheoTown. If omitted, the server can use the default TheoTown installation path. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
You are connected to a live TheoTown city simulation via theotown-mcp. Follow these operational guidelines:
Always check city status with
theotown_get_statusor thetheotown://city/statusresource before undertaking major infrastructure or zoning works.Use
theotown_validate_planto dry-run construction layouts, verify grid boundaries, and check treasury costs before committing builds.Roads, zones, utilities, and buildings can be constructed with dedicated tools or batched via
theotown_execute_plan.For long-running batch jobs, monitor progress via
theotown_get_job.Use
theotown_get_draft_catalogto explore available building types, roads, and utilities.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| theotown_get_statusA | Read live TheoTown city telemetry, including economy, population, happiness breakdown, infrastructure, estimated utility balance, sampled service coverage, and problem coordinates. |
| theotown_build_roadC | Construct a road segment between (x0, y0) and (x1, y1). |
| theotown_build_zoneC | Designate zoning over a rectangular area starting at (x, y) with width and height. |
| theotown_build_buildingC | Place a building draft at (x, y) with optional rotation (0-3). |
| theotown_build_utilitiesC | Lay underground pipes or power wires between (x0, y0) and (x1, y1). |
| theotown_demolishB | Demolish buildings, roads, or zones within a rectangular area starting at (x, y). |
| theotown_validate_planC | Perform dry-run bounds checks and cost estimations for a batch of construction commands. |
| theotown_execute_planC | Submit a batch construction plan to the in-game execution queue. |
| theotown_get_jobB | Query progress and execution status of a submitted construction job. |
| theotown_cancel_jobC | Cancel a pending construction job. |
| theotown_set_speedA | Set game simulation speed: 0 (Pause), 1 (Normal), 2 (Fast), 3 (Ultra), 4 (Max). |
| theotown_get_draft_catalogB | Search and list available drafts, buildings, roads, and utilities. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| urban_planner | Prompt template guiding LLMs in sustainable city planning and construction. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_city_status_resource | Live dump of active city telemetry. |
| get_catalog_drafts_resource | Dump of available drafts and aliases. |
TDQS
Scored across 12 tools
Most tools target a clear resource+action pair (build_road vs build_zone vs demolish vs get_status), and the plan lifecycle tools (validate_plan, execute_plan, get_job, cancel_job) form a readable progression. The only real friction is the dual construction paths: the single build_* tools appear to act directly while execute_plan submits a batch, and it is not obvious when to use which. That overlap is minor but present.
Every tool uses the same theotown_ prefix followed by a snake_case verb_noun pattern (build_road, get_status, cancel_job, execute_plan). Verb choices are stable: build_* for construction, get_* for reads, and lifecycle verbs for job handling. No camelCase or stylistic mixing.
Twelve tools sits comfortably in the well-scoped range for a city-builder control surface. Each tool covers a distinct capability (single builds, batch planning, job control, telemetry, catalog lookup) with no filler entries.
The surface covers the full build/validate/execute/query/cancel lifecycle plus telemetry and a draft catalog, which is strong end-to-end coverage. Minor gaps remain: no way to list all submitted jobs (only per-job get_job), no tile-level inspection of what occupies a coordinate, and no economic/budget or save/load operations.