Spatial Compiler
OfficialThis server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Spatial Compiler
Your agent gets fully simulated, engine-ready 3D in seconds, from one call.
You write a spec, or your agent does. Spatial Compiler compiles it on the hosted service and sends back assets you can drop into your game. pyrofx compiles fire and smoke. meshfx repairs and lightens meshes. geofx shapes ground and terrain. shadowfx bakes moving shadows. You do not wait for your agent to write simulation or shader code from scratch.
You get real simulation quality in seconds, not hours. The same spec gives you the same result. You see the price before you run. It works from any MCP client, including Claude Code, Cursor, and Codex, and over HTTP.
You can use the results in Godot, Unity, Unreal, and three.js.
Games are where this starts. The same call also serves robotics, ecommerce, and other 3D work that needs a fully simulated, engine-ready result.
This repository is the npm package @applied-manifold/spatial-compiler. It is a small connector that forwards MCP calls to https://mcp.spatialcompiler.dev. You can also point a client at that URL directly. Nothing compiles on your machine. Jobs are billed the same as when you use the hosted server directly.
This repository does not include Spatial Compiler or any compiler source.
More about Spatial Compiler: https://appliedmanifold.com
Install and run
You need Node.js 18 or newer and an API key. Get Free API Key
SPATIAL_API_KEY=YOUR_KEY npx -y @applied-manifold/spatial-compilerYour MCP client normally starts this command for you. Use one of the setups below. If you omit the key, the connector opens a browser sign-in and remembers the session.
Claude Code
claude mcp add spatial-compiler -e SPATIAL_API_KEY=YOUR_KEY -- npx -y @applied-manifold/spatial-compilerCursor (stdio via npm)
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"spatial-compiler": {
"command": "npx",
"args": ["-y", "@applied-manifold/spatial-compiler"],
"env": {
"SPATIAL_API_KEY": "YOUR_KEY"
}
}
}
}Cursor or any client (hosted MCP, no npm)
{
"mcpServers": {
"spatial-compiler": {
"url": "https://mcp.spatialcompiler.dev"
}
}
}The hosted server signs you in through console.appliedmanifold.com when the client supports OAuth.
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.spatial-compiler]
command = "npx"
args = ["-y", "@applied-manifold/spatial-compiler"]
env = { SPATIAL_API_KEY = "YOUR_KEY" }Or from a terminal:
codex mcp add spatial-compiler --env SPATIAL_API_KEY=YOUR_KEY -- npx -y @applied-manifold/spatial-compilerAny other MCP client that can start a stdio server works the same way: run npx -y @applied-manifold/spatial-compiler with SPATIAL_API_KEY in its environment.
Related MCP server: loopcut-render
Sign in without an API key
If you start the server without a key, it opens a browser sign-in against the hosted service and remembers the session, so later runs start without asking. The session (including the refresh token) is saved in ~/.config/spatial-compiler/mcp-oauth.json (or under $XDG_CONFIG_HOME) with file mode 0600.
If your client cannot open a browser, sign in once from a terminal:
npx -y @applied-manifold/spatial-compiler loginTo forget the saved session:
npx -y @applied-manifold/spatial-compiler logoutEnvironment variables
Variable | Purpose |
| API key ( |
| Same, used when |
| Optional. Hosted MCP URL without a trailing slash. Default |
With a key set, the server sends Authorization: Bearer <key> and does not use the browser sign-in.
Logs go to stderr. stdout carries only the MCP stream.
Run npx -y @applied-manifold/spatial-compiler --help for a summary.
What the hosted server can do
The hosted service compiles fire and smoke with pyrofx, meshes with meshfx, ground and terrain with geofx, and moving shadows with shadowfx. meshfx accepts a GLB through add_input, including a model from an image-to-3D generator, and can repair it, build levels of detail, unwrap UVs, and bake textures.
The hosted server lists discover, add_input, estimate, submit, get_job, and cancel_job. estimate is free. submit starts a paid job.
Ask your agent to write a spec, get a free price estimate, and run a job. You get back fully simulated, engine-ready 3D, plus a report your code can check. After a run, the bundled verify-compiled-job skill reads the receipt and inspects a framed still.
Clean up generated meshes (meshfx)
Send a GLB from an image-to-3D generator, or any other GLB, with add_input. meshfx repairs the surface, builds lighter levels of detail, unwraps UVs when needed, and bakes textures. You get a GLB back, plus a report your agent can read.
The hosted API accepts a GLB of at most 64 MB, in the source.file slot.
A Draft bake costs $0.10. A Final bake is priced by the triangle count of the uploaded GLB. It is $1 up to 50,000 triangles, $2 up to 500,000, $4 up to 2,000,000, and $6 above that. Repeats of an unchanged spec are free. estimate shows the exact price and is free.
On the hosted service, meshfx can:
Repair the surface: weld nearby vertices, fix face winding, fill small holes, remove floating fragments, and remesh a solid part when you ask
Build levels of detail, including a reduced triangle budget for the first level
Keep the source UVs, unwrap new charts, or repack existing charts
Bake base colour, normal, metallic-roughness, occlusion, and emissive textures
For a generated model, set source.kind = "generated" and units.size_m to the real-world size you want, in metres, so cleanup defaults and scale are applied.
Ask your agent:
Clean up this generated GLB for a game. Repair the mesh, unwrap UVs if the source UVs fail, bake textures, and build 3 levels of detail. Set the height to 2 metres.
Tool call flow:
Call
add_inputwith the GLB filename, byte size, and sha256, then PUT the file to the upload URL until the input is ready.Call
estimatewith modulemeshfxand a.meshfx.tomlspec that setssource.fileto that input. Use qualitydraftorfinal.Call
submitwith the same spec to start the bake.Call
get_jobuntil the job finishes, then download the GLB andbake_report.json.
See the meshfx module and the meshfx docs.
Links
Console and API keys: https://console.appliedmanifold.com
Hosted MCP: https://mcp.spatialcompiler.dev
Agent docs: https://appliedmanifold.com/docs/agents/
MCP tools docs: https://appliedmanifold.com/docs/mcp-tools/
Modules: https://appliedmanifold.com/modules/
Privacy: https://appliedmanifold.com/privacy/
License
MIT. Copyright 10356689 Canada Inc. (Applied Manifold). See LICENSE. This package does not include Spatial Compiler or any compiler source.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Prepaid inference for agents over hosted MCP. Chat, image, and video.
Cloud iOS simulators and Android emulators your agent can create, drive, and throw away.
On-demand GPU nodes for agents: create nodes, run commands, and submit jobs, billed by the minute.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables AI agents to create, manage, and download 3D models, textures, images, rigged characters, and animations through natural conversation.2924,122 npm97MIT- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents and shells to quote, start, monitor and fetch cloud GPU renders of saved Blender scenes, returning hash-checked PNG frames and a QA report, with jobs paid for by Loopcut credits.36 PyPI3GPL 3.0
- AlicenseAqualityCmaintenanceEnables AI clients to write and fix WGSL effect nodes, render and bake them into flipbook PNG texture sheets with quality warnings, and push the results into Roblox Studio as emitter textures with matching flipbook settings.4121MIT

popnow-apiofficial
AlicenseNot gradedqualityBmaintenanceEnables clients to generate images, videos, music, and voiceovers across supported models by API ID, monitor long-running tasks, and install agent skills over one hosted connection, with USD quotes and approval before paid calls.MIT