Skip to main content
Glama

Gaea MCP

MCP server for QuadSpinner Gaea terrain workflows.

The server edits Gaea .terrain graph files, discovers Gaea CLI executables, and can run silent builds through Gaea.Swarm.exe.

This is intentionally small. It automates the repetitive bridge work while leaving artistic terrain tuning inside Gaea.

Install

From this repo:

cd C:\Users\marti\Games\Ascent\tools\gaea-mcp
npm install
npm run build

From a standalone checkout:

git clone https://github.com/JulianIrigoyen/gaea-mcp.git
cd gaea-mcp
npm install
npm run build

Related MCP server: qfoldit-unigine-toolbelt

Codex / Claude MCP Config

Add a server entry like this:

{
  "mcpServers": {
    "gaea": {
      "command": "node",
      "args": [
        "C:/path/to/gaea-mcp/dist/index.js"
      ],
      "env": {
        "GAEA_ROOT": "C:/path/to/your/terrain/project",
        "GAEA_EXE_DIR": "C:/Program Files/QuadSpinner/Gaea 2"
      }
    }
  }
}

Tools

  • gaea_clone_graph - clones a .terrain graph and optionally repoints input/output paths.

  • gaea_find_install - finds Gaea.Swarm.exe, Gaea.exe, and related executables.

  • gaea_list_graphs - lists .terrain files.

  • gaea_inspect_graph - reports File nodes, output destination, profiles, and exposed variables.

  • gaea_set_input_heightmap - rewrites File node input paths.

  • gaea_set_build_output - rewrites the build output destination.

  • gaea_set_variable - updates or creates a variable entry when the graph exposes a matching structure.

  • gaea_run_build - runs Gaea.Swarm.exe with optional profile, resolution, seed, vars, and output path.

  • gaea_open_graph - opens a graph in the Gaea desktop app.

  • gaea_list_outputs - lists files in an output folder.

Write/build/open tools default to dryRun: true. Pass dryRun: false to actually save, launch, or build. Graph edits create timestamped .bak-* backups before overwriting existing files.

Example

{
  "graph": "TerrainExports/LaninTrue_Gaea.terrain"
}

Then:

{
  "graph": "TerrainExports/LaninTrue_Gaea.terrain",
  "nodeId": "522",
  "heightmap": "TerrainExports/LaninTrue_Gaea/LaninTrue_Height.png",
  "dryRun": false
}

Clone Aconcagua into a Lanin graph:

{
  "sourceGraph": "TerrainExports/Aconcagua_v01.terrain",
  "targetGraph": "TerrainExports/LaninTrue_Gaea.terrain",
  "heightmap": "TerrainExports/LaninTrue_Gaea/LaninTrue_Height.png",
  "outputDir": "TerrainExports/LaninTrue_Gaea",
  "dryRun": false
}

Preview the exact build command without launching Gaea:

{
  "graph": "TerrainExports/LaninTrue_Gaea.terrain",
  "outputDir": "TerrainExports/LaninTrue_Gaea",
  "resolution": "2048",
  "dryRun": true
}

Open a graph in the Gaea UI:

{
  "graph": "TerrainExports/LaninTrue_Gaea.terrain",
  "dryRun": false
}

Safety

  • All file paths are constrained to GAEA_ROOT.

  • Writes default to dry-run.

  • Existing graph edits write .bak-* backups.

  • Real Gaea builds require dryRun: false.

  • Build execution has a timeout, defaulting to one hour.

Scope

This is not an official QuadSpinner product. It works through documented CLI entry points and the .terrain graph format as observed on disk.

Known Limitations

  • The .terrain graph format is not treated as a public stable API by this project; inspect and dry-run before writing.

  • gaea_set_variable only works when the graph contains discoverable variable objects with Value/value fields. CLI -v name:value is more reliable for exposed build variables.

  • On Windows, Gaea.Swarm.exe may crash with System.IO.IOException: The handle is invalid when launched from a host without a real console. If that happens, run the printed dry-run command in a normal terminal or a PTY-backed shell.

  • The server does not generate terrain artistically. It automates graph plumbing, builds, and handoff files.

Available Tools

10 tools
gaea_clone_graphC

Clone a .terrain graph and optionally repoint its first File node and build output.

Inputs: sourceGraph (required), targetGraph (required), dryRun, heightmap, +2 more.

gaea_find_installA

Find local QuadSpinner Gaea executables.

Inputs: no named parameters.

gaea_inspect_graphA

Inspect a Gaea .terrain graph for File nodes, output destinations, profiles, and exposed variables.

Inputs: graph (required).

gaea_list_graphsA

List .terrain graph files under GAEA_ROOT.

Inputs: directory.

gaea_list_outputsB

List output files in a Gaea build directory.

Inputs: outputDir (required).

gaea_open_graphC

Open a .terrain graph in the Gaea desktop application.

Inputs: graph (required), dryRun, gaeaExe.

gaea_run_buildC

Run Gaea.Swarm.exe for a .terrain graph.

Inputs: graph (required), seed, vars, dryRun, +6 more.

gaea_set_build_outputC

Set every BuildDefinition Destination in a Gaea graph.

Inputs: graph (required), outputDir (required), dryRun.

gaea_set_input_heightmapB

Set a Gaea File node's FileName to a new heightmap path.

Inputs: graph (required), heightmap (required), dryRun, nodeId.

gaea_set_variableB

Update an exposed variable value in a graph when a matching variable object exists.

Inputs: name (required), graph (required), value (required), dryRun.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools target clearly distinct operations: listing, inspecting, modifying inputs, setting outputs, variables, building, and opening graphs. The main overlap is that gaea_clone_graph also repoints inputs and outputs, which slightly blurs its boundary with the dedicated set_* tools.

    Naming Consistency5/5

    All tool names follow the same gaea_verb_noun pattern using snake_case consistently. The verbs are predictable and the object portion clearly indicates the resource being acted on.

    Tool Count5/5

    Ten tools is well-scoped for a Gaea graph automation server. Each tool maps to a meaningful step in the workflow from environment discovery through graph modification, building, and output inspection.

    Completeness4/5

    The tool set covers the core automation lifecycle: find install, list/inspect graphs, modify inputs/outputs/variables, clone, build, and list outputs. Minor gaps exist such as no explicit build status check and no graph deletion, but these are easily worked around via the provided tools.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with tools to launch the Godot editor, run projects, manipulate scenes, manage scripts, and control node properties through a standardized MCP interface.
      21
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to automate UNIGINE 2 editor workflows through 25 composite tools (scene, materials, procedural, stamps, codegen, assets, and build console) via an external MCP bridge that runs alongside UNIGINE's official MCPBridge Plugin.
      6
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables typed Gaea terrain builds and output verification for DCC-MCP, including inspecting templates, planning CLI arguments, executing bounded builds, and verifying exported height/weight images with dimensions and SHA-256 receipts.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables users to author buildable QuadSpinner Gaea 2 .terrain projects, turn real DEM or synthetic elevation into Gaea-ready heightmaps and 16-bit erosion masks, have Gaea itself validate and build the project, and read back the exported heightmap and colour-map outputs. It bakes in the file-format, licence, schema-version and mask-bit-depth constraints that otherwise make Gaea-produced projects fail to open, build, or apply correctly.
      3
      MIT