pixel-composer-mcp
Drive Pixel Composer through its Remote Terminal to open, inspect, edit inputs, render, and control .pxc projects.
Open a
.pxcfile, launching Pixel Composer if needed.Inspect nodes, stored input values by index, and connections by reading the project file.
Set a node input’s static value in the file and reload it in the open app.
Run every Export node and wait until output files stop changing.
Send raw console/GML commands and return app log output.
Check connection mode, open project, and recent app log.
Close Pixel Composer if this server launched it.
Click on "Deploy 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., "@pixel-composer-mcp open D:/art/wizard.pxc and render all export nodes"
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.
pixel-composer-mcp
MCP server that lets an agent drive Pixel Composer
(Steam build, Windows): open a .pxc, read its node graph, change input values, render every Export node.
How it works
Talks to the app's built-in Remote Terminal addon (WebSocket,
127.0.0.1:22400). Each command goes through the in-app console, which can call any GML function by name (load_file_path,exportAll, …).On every server start,
Addons/__init.jsonis checked and"Remote Terminal"is appended if missing (other enabled addons are kept). The first start enables it; later starts only check.If the port is already open (you started Pixel Composer yourself), the server attaches to it. Otherwise it launches the app with
SteamAppId=2299510(Steam builds abort without it) and reads its stdout. If the app is running without the port (started before the addon was enabled), restart it.A Pixel Composer window appears while working.
--headlessis not used: in 1.22.x it loads a stub theme missing keys that every Surface input needs, so almost no real project loads.
Related MCP server: compositor-mcp
Tools
tool | what it does |
| load a |
| nodes, types, stored input values by index, connections (reads the file) |
| edit a static input value in the file and reload it (replaces keyframes; |
| animate an input with linear keyframes |
| create a node (e.g. |
| wire / unwire nodes in the file, then reload |
| save the app's open project back to the |
| input/output names by index, read from a Pixel Composer source clone ( |
| pass/fail a sprite sheet or image: hard alpha, colour count, stray colours, pixel grid ( |
| run every Export node, wait until outputs stop changing, return file paths |
| raw console command, e.g. |
| mode, project, log tail / quit the app (only if this server launched it) |
Limits: input names are not stored in .pxc, so inputs are addressed by index. The output file
extension comes from the Export node's format setting (asking for x.png can produce x.gif).
Image sequences (Export input 3 = 1) need %f in the name template (input 2, e.g. %d%n_%f),
otherwise every frame overwrites the same file.
Paths with spaces are loaded from a copy in %LOCALAPPDATA%\PixelComposer\mcp_work\ because the
console splits arguments on spaces. In attach mode there is no app log, so export detects
completion by watching the Export folders.
Setup
{
"mcpServers": {
"pixel-composer": {
"command": "uv",
"args": ["run", "--directory", "D:/MCPS/pixel-composer-mcp", "pixel-composer-mcp"]
}
}
}Environment overrides: PXC_DIR (install folder), PXC_DATA_DIR (default %LOCALAPPDATA%\PixelComposer),
PXC_TERMINAL_PORT (default 22400), PXC_SOURCE (clone of the Pixel Composer repo, for describe_node;
it tracks the latest source, so trust a saved .pxc's defaults if an index looks off).
File-editing tools save the app first when the edited file is the open project, so unsaved in-app changes survive.
With reload=False the edit waits in the file; the next save, export or reloading edit loads it into the app first.
Build scripts
For graphs with many nodes and keyframes, a Python build script is easier to iterate on and rebuild than
tool calls. pixel_composer_mcp.graph has the helpers (new_project, Graph, emitter, switch,
curve, gradient, color); examples/elemental-rise shows complete scripts. Run one from anywhere:
uv run --python 3.13 --with git+https://github.com/3Hoo/pixel-composer-mcp python build.pyAgent skill
skills/pixel-composer is an agent skill for working with this server: how to interview the user
before building, a map of which Pixel Composer nodes do what (and which were verified through this
server), known pitfalls, and per-task notes for effects, item icons, tilesets and character rigging.
Install it by copying or linking the folder into your agent's skills directory:
# Claude Code (PowerShell)
New-Item -ItemType Junction -Path "$HOME\.claude\skills\pixel-composer" -Target "<repo>\skills\pixel-composer"Other agents: the same folder under their skills directory (e.g. ~/.pi/agent/skills).
Security
Remote Terminal has no authentication and executes arbitrary app functions. It listens on all interfaces
(::), so keep port 22400 blocked from the network by the firewall. It stays enabled for normal app launches
too; turn it off in Pixel Composer's addon panel if you stop using this server.
Tests
uv run pytestAvailable Tools
7 toolscloseA
Quit Pixel Composer if this server launched it.
Inputs: no named parameters. Returns: result
exportB
Run every Export node of the open project and wait until the output files stop changing.
Inputs: timeout.
inspect_projectB
List nodes with their type, stored input values (by index) and connections. Reads the file, not the app.
Inputs: path.
open_projectB
Open a .pxc in Pixel Composer, launching the app if needed (a window will appear).
Inputs: path (required).
run_commandB
Send a raw console command (e.g. 'set ', or any GML function name with space-separated args). Returns app log lines printed meanwhile (empty when attached).
Inputs: command (required), wait. Returns: result
set_inputB
Set a node input's static value in the .pxc file (node = id, iname or name).
Reloads it in the app when it is the open project, so a following export uses the new value.
Inputs: node (required), index (required), value (required), path, +1 more.
statusA
Connection mode (launched/attached/stopped), open project and recent app log.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct purposes: open_project launches the app, inspect_project reads the file, set_input mutates a node value, export runs export nodes, status reports connection, close quits. The only overlapping pair is set_input vs run_command, since a raw console command could also modify values, but the descriptions clarify that set_input targets node inputs specifically.
Most names follow a verb_noun pattern (open_project, inspect_project, set_input, run_command), with minor deviations where export, status, and close are bare verbs/nouns. The convention is still predictable and readable throughout.
Seven tools is well-scoped for a Pixel Composer control server, covering lifecycle (open/close/status), inspection, mutation, and export without padding. Each tool earns its place.
Lifecycle, inspection, mutation, and export are all covered, and run_command provides an escape hatch for anything missing (node creation, connections, GML calls). Some first-class operations like creating nodes or editing connections are absent, but the console fallback mitigates this.
Maintenance
Related MCP Connectors
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Let your coding agent read your GameSalad projects, and edit them live in Creator on Pro and Edu.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to operate the Unreal Editor via MCP: reading, creating, and editing blueprints at the node level, authoring materials and UMG widgets, auditing projects, and verifying runtime behavior in PIE with read-back checks.341Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to read, edit, and render Compositor .comp projects, including layer inspection, image manipulation, and preview.1556 npm8MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to automate the PlayCanvas Editor, managing entities, scripts, assets, scenes, builds, and viewport state, and to launch and inspect running scenes with screenshots, logs, and input simulation.-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to drive the PlayCanvas Editor directly, letting them create and edit entities, scripts, assets, templates, scenes, builds and project settings, then launch the game and inspect it through screenshots, logs and input to confirm scenes actually run.-