Skip to main content
Glama
Upload Labs MCP

Upload Labs MCP

by egor-fedorov

Upload Labs MCP

Ask Codex “Which nodes feed my hacking setup?” The mod reads the live desktop in Upload Labs. A local MCP server exposes its nodes, connections, and port measurements to the assistant.

See the changelog for version history and upgrade notes.

Installation

The target is Upload Labs 3.0.16 on Steam under Linux/Proton (build 26834449, Godot Mod Loader 7.0.1). Install Python 3.11+ and a stdio-capable MCP client on the same computer as the game. For a source installation, run the commands from the repository root. For a release installation, use the directory containing the downloaded files.

  1. Download the mod ZIP and Python wheel from the same GitHub release, or build the mod ZIP from source.

    python3 scripts/build_mod.py
  2. In Steam, open Upload Labs → Manage → Browse local files. Create a mods directory next to Upload Labs.exe and copy Egorf-UploadLabsMCP.zip (under dist/ for a source build) into it as a ZIP. Start or restart the game.

  3. In the game, open Settings → Preferences, scroll to MCP Server, and turn on Enable MCP Server. The bridge starts disabled on a fresh installation and on the first upgrade from 0.1.0.

  4. Install the Python server in a virtual environment. From a source checkout, run

    uv venv --python '>=3.11'
    uv pip install .

    For a downloaded release, use uv pip install /path/to/upload_labs_mcp-0.3.0-py3-none-any.whl in place of uv pip install ..

  5. Register the server with Codex, then open a new session.

    codex mcp add upload_labs -- "$PWD/.venv/bin/upload-labs-mcp"

    For another stdio MCP client, set its server command to the absolute path of the same executable. The client starts the Python process. Codex MCP configuration

Related MCP server: blender-agent

Reading the desktop

Use get_graph(categories=["hacking"]) to inspect the hacking subsystem. Call list_groups() to discover categories and player-created Node Groups on the current desktop.

Tool

Result

list_groups()

categories lists each category ID and its live node_count, including zero. node_groups lists frame IDs and display names.

get_graph(categories=["hacking", "research"])

Nodes in either category and connections whose endpoints both belong to the selection. Isolated nodes are included.

get_graph(group_ids=["…"], categories=["hacking"])

Hacking nodes inside the specified frames. Pass just group_ids for all their members. Overlapping frames contribute each node once.

get_graph(categories=["hacking"], include_neighbors=True)

Also includes directly connected suppliers and consumers outside the selection. Their IDs appear in external_node_ids.

get_graph()

The full desktop. Each node has an id, display name, type and category. Each connection runs from an output (from) to an input (to). Both endpoints contain a node_id and a port_id.

get_node(node_id)

One node's ports, resources, upstream source, downstream targets, and raw in-game count, production and required. An unavailable measurement is null.

get_status()

offline, loading or ready, plus game, mod and Python server versions. supports_graph_filters is true on a compatible mod, false on a legacy mod, and null while offline. An offline reason of disabled comes from saved preferences. not_listening means the TCP connection was refused.

The game supplies category IDs, including those registered by other mods. Nodes without a category appear under uncategorized. Each query reads current frame membership. Two frames can have the same name, so pass their IDs from list_groups(). Each supplied selector list must contain at least one ID. A known category with zero placed nodes returns an empty graph.

Use get_node on a returned ID for port measurements. IDs last for the lifetime of the node in the current game session. Refresh the graph after node_not_found, or call list_groups after group_not_found or unknown_category. With a 0.2.0 mod, the Python server can still read the full graph and individual nodes. Install the matching mod ZIP and restart Upload Labs to enable filtering.

Connecting to the game

The MCP client starts the Python server over stdio. The game accepts connections only on 127.0.0.1. Turning off Enable MCP Server closes the game listener and its active connections immediately. The tools remain available in Codex, and get_status returns offline.

In Settings → Preferences → MCP Server, enter a port from 1 to 65535 and press Enter or Apply. You can set the port while the server is off. If a new port is busy, the game displays an error and continues listening on the current port. The game remembers both settings across restarts.

The mod stores its settings in user://upload-labs-mcp.json. On Linux, the Python server finds the game's Proton prefix through the Steam libraries for app 3606890 and reads the saved settings on each tool call. You can change the port with Codex open. If you launch the game with a separate Proton prefix, pass that same STEAM_COMPAT_DATA_PATH to the Python process.

Before settings are saved, the initial port is 37689 or the value of UPLOAD_LABS_MCP_PORT in the game's environment. The Python server also supports this variable when connecting to an older mod without a settings file. Saved game settings take precedence.

Development

Install the Python package with uv pip install -e . to test changes from the working tree. The integration test also needs Godot 4.7 available as godot on your PATH. It runs the mod on a disposable scene and calls the server through stdio. It covers branching connections, a deleted node, missing and zero measurements, and reconnecting after the game restarts. It also exercises the preference controls, occupied ports, and discovery across Steam libraries.

.venv/bin/python -m unittest discover -s tests -v

Building a release

GitHub Actions builds the ZIP and wheel for pull requests and pushes to main. The integration suite launches the installed wheel over stdio and loads the packaged mod scripts in headless Godot. It checks category and frame selection, external connections, group edits, settings and legacy bridge compatibility.

Update the version in pyproject.toml and the mod manifest, and add upgrade notes to the changelog. Pushing a matching tag such as v0.3.0 tests both packages and attaches them to a draft GitHub Release. Review the draft before publishing it.

Released under the MIT License.

Available Tools

4 tools
get_graphA
Read-only

Read nodes and directed port connections for a category or player group.

For a subsystem, pass categories such as ["hacking"]. Discover IDs with list_groups. Each list selects a union. Passing both selects the intersection. To see incoming and outgoing cross-group connections, enable include_neighbors. external_node_ids identifies those extra nodes. This option requires a selector. Call get_graph() for the whole desktop.

Inputs: group_ids, categories, include_neighbors. Returns: object

get_nodeA
Read-only

Inspect one node by ID from get_graph, including its ports, neighbors and metrics.

A port's source feeds it and its targets receive from it. Count, production and required are raw in-game measurements. A null measurement is unavailable.

Inputs: node_id (required). Returns: object

get_statusB
Read-only

Report availability, offline reason, component versions and graph filter support.

Inputs: no named parameters. Returns: object

list_groupsB
Read-only

Discover category IDs with live node counts and player Node Group IDs and names.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct granularity: server health (get_status), category/group discovery (list_groups), the full graph (get_graph), and a single node (get_node). The descriptions explicitly cross-reference each other (get_node IDs come from get_graph), which removes ambiguity about ordering and purpose.

    Naming Consistency5/5

    All four tools follow a strict verb_noun pattern (get_status, list_groups, get_graph, get_node) with consistent snake_case. Verbs are used semantically correctly: list_ for collections, get_ for reads of specific resources.

    Tool Count5/5

    Four tools is minimal but fully justified for a read-only graph inspection server: one for health, one for discovery, one for bulk graph reads, one for drill-down. No redundant or filler tools.

    Completeness4/5

    The read-only surface covers status, discovery, graph traversal, and single-node inspection, which is a coherent lifecycle for inspection. Minor gaps exist around searching/filtering nodes by name or metric and no way to list nodes independently of get_graph, but these are workable via existing calls.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides status, stats, nearby scans, item analysis, screenshots, ghost placement, in-game replies, and drone status for Factorio via stdio JSON-RPC.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to drive a live Blender session over stdio, inspecting the scene graph, searching and calling operators, reading and writing RNA properties, rendering viewable images, and checkpointing or restoring the file across a multi-turn conversation. It also exposes gallery and scene-reset helpers so the agent can check its own work and start over cleanly.
      22
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to query a local code graph over stdio, so they can see what a Git change may affect, find related tests, routes and nodes, and cite evidence paths — read-only and fully on-machine.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI client to work with the desktop-selected process’s typed memory searches, refinements, live watches, snapshot comparisons, progress, and cancellation through a local stdio MCP connection.
      1
      MIT