Back to Browse

Npm MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Your agent gets fully simulated, engine-ready 3D in seconds, from one call.

About

Your agent gets fully simulated, engine-ready 3D in seconds, from one call.

Remote endpoints: streamable-http: https://mcp.spatialcompiler.dev

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (4 strong, 6 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

Endpoint verified · Requires authentication · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

API key from console.appliedmanifold.com. Optional if you sign in through the browser.Required

Environment variable: SPATIAL_API_KEY

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

Spatial Compiler

Spatial Compiler MCP server Spatial Compiler MCP connector

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 load in Godot, three.js, Unity, and Unreal. You can compile fire and smoke, clean up a generated mesh and build levels of detail, or write a terrain map. 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 a common starting point. 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.

Get Free API Key

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-compiler

Your 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-compiler

Cursor (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-compiler

Any 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.

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. If the process cannot open a browser, it still answers initialize and tools/list, and tools/call returns an error until you set SPATIAL_API_KEY or sign in. 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 login

To forget the saved session:

npx -y @applied-manifold/spatial-compiler logout

Environment variables

VariablePurpose
SPATIAL_API_KEYAPI key (spck_live_... or spck_test_...). Preferred, matches the public docs.
SPATIAL_COMPILER_API_KEYSame, used when SPATIAL_API_KEY is not set.
SPATIAL_COMPILER_MCP_URLOptional. Hosted MCP URL without a trailing slash. Default https://mcp.spatialcompiler.dev.

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, repairs and lightens meshes with meshfx, and writes terrain maps with geofx, including optional terrain shadows. meshfx accepts a GLB through add_input, including a model from an image-to-3D generator, and can repair it, make it lighter, and build levels of detail. The result loads in Godot and three.js. The hosted bake keeps the source UVs.

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 and builds lighter levels of detail. You get a GLB back that loads in Godot and three.js, plus a report your agent can read. The hosted bake keeps the source UVs.

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
  • When reduction leaves an edge shared by three or more faces, a pinch split turns that edge into two sheets
  • Build levels of detail, including a reduced triangle budget for the first level
  • Keep the source UVs
  • Write a box, sphere, capsule or hull collider, named for Godot, Unity, Unreal or OMI. Import is checked in Godot only

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. Repair the mesh, make it lighter, and build 3 levels of detail. Set the height to 2 metres.

Tool call flow:

  1. Call add_input with the GLB filename, byte size, and sha256, then PUT the file to the upload URL until the input is ready.
  2. Call estimate with module meshfx and a .meshfx.toml spec that sets source.file to that input. Use quality draft or final.
  3. Call submit with the same spec to start the bake.
  4. Call get_job until the job finishes, then download the GLB and bake_report.json.

Get Free API Key

See the meshfx module and the meshfx docs.

Links

License

MIT. Copyright 10356689 Canada Inc. (Applied Manifold). See LICENSE. This package does not include Spatial Compiler or any compiler source.

Reviews

No reviews yet

Be the first to review this server!