@particlr/mcp
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., "@@particlr/mcp make a fire explosion effect, then render a contact sheet to check it"
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.
@particlr/mcp
Source: https://github.com/brac/particlr-mcp (MIT).
An MCP server that lets coding agents author particlr
.prt particle effects headlessly, with a real feedback loop instead of blind
JSON generation: validate against the actual parse/migrate/validate pipeline,
simulate deterministically in Node, render frames to PNG with a CPU
rasterizer, and iterate by patching — no browser, no GPU, no flakiness.
Everything is deterministic: the same document, seed, and dt sequence produce
the same simulation state and the same pixels, so a diff between two renders
is a real diff. Effects authored here play back byte-for-byte in
@particlr/runtime
(PixiJS v8/v7) and open in the particlr editor.
Setup
Requires Node >= 20. For Claude Code, add to .mcp.json (or for any MCP
client, the equivalent stdio server config):
{
"mcpServers": {
"particlr": {
"command": "npx",
"args": ["-y", "@particlr/mcp"]
}
}
}Related MCP server: clayform
The loop
An agent authoring an effect works this cycle:
get_reference("authoring-guide")— how to make a.prtlook good: units, layer recipes, blend idioms, common mistakes."format-spec"and"schema"are the normative references.list_presets/get_preset— 71 CC0 effects (explosions, fire, smoke, shields, trails, weather…) as a few-shot corpus. Pull the closest one and mutate it.open_effect— validate and store the doc under a session handle.patch_effect— iterate by sending only RFC 6902 diffs (replace/add/remove), all-or-nothing with rollback on any error.simulate_effect— the cheap loop: per-layer live counts over time, peak vs capacity, spatial bounds, completion time, and a reproducible statehash.render_effect— see it: a 16-frame auto-framed contact sheet PNG by default, or individual frames at chosen times.overrunSecondsrenders past the duration to check loop seams.get_effect— pull the canonical.prttext for delivery.
Tools
Tool | What it does |
| Parse → migrate → validate; canonical doc or path-anchored errors |
| Deterministic headless sim: counts, bounds, completion, statehash |
| CPU-rasterize to PNG frame(s) or a contact sheet |
| Store a doc under a session handle for iteration |
| Apply RFC 6902 ops to a stored doc, re-validate, rollback on failure |
| Fetch the canonical stored |
| The shipped preset corpus |
| Authoring guide, format spec, or JSON Schema, inline |
What the renderer is (and isn't)
render_effect is a deterministic software rasterizer built for agent
iteration: all builtin and embedded-PNG textures, all five blend modes,
flipbooks, stretch/velocity-align, per-particle and connect-ribbon trails,
and layer draw order. It is structurally faithful to the GPU preview, not
pixel-identical to it. Two things it does not show: the dissolve module is
not rasterized, and the emitter never moves headlessly, so world-space trails
that depend on emitter motion read as local. Judge those in the
editor — effects round-trip losslessly.
Session handles live only for the server process; export with get_effect
before disconnecting.
License
MIT. See LICENSE. The source is public at https://github.com/brac/particlr-mcp.
Available Tools
9 toolsget_effectGet EffectARead-onlyIdempotent
Fetch the canonical stored .prt text for a handle — use this for final delivery/export after iterating. Handles live only for this session (server process); they do not survive a reconnect.
Inputs: handle (required). Returns: doc, handle
get_presetGet PresetARead-onlyIdempotent
Fetch one shipped preset by name (stem): its raw .prt text plus a parsed summary. Unknown name returns an error listing the valid names.
Inputs: name (required). Returns: doc, name, summary
get_referenceGet ReferenceBRead-onlyIdempotent
Fetch reference material inline: topic "format-spec" (the .prt format spec, markdown) or "schema" (the JSON Schema for a .prt document).
Inputs: topic (required). Returns: text, topic, format
list_presetsList PresetsARead-onlyIdempotent
List the shipped .prt presets (name, layer count, schemaVersion) — the few-shot authoring corpus.
Inputs: no named parameters. Returns: presets
open_effectOpen EffectA
Validate a .prt document and store it under a session handle so you can iterate without resending the text. Returns the handle + validate fields (ok, schemaVersion, warnings, errors); pass the handle to patch_effect / validate_effect / simulate_effect / render_effect. Handles live only for this session (server process); they do not survive a reconnect. Capped at 64 per session.
Inputs: doc (required). Returns: ok, errors, handle, warnings, +2 more
patch_effectPatch EffectA
Apply a small list of RFC 6902 ops (replace/add/remove) to a stored effect, then re-validate. Iterate by sending only the diff, not the whole document. Any failure — bad path/index or a post-patch validation error — rolls back: the stored doc is left unchanged and the failing op index is named. Handles live only for this session (server process); they do not survive a reconnect.
Inputs: ops (required), handle (required). Returns: ok, errors, handle, warnings, +2 more
render_effectRender EffectARead-onlyIdempotent
CPU-rasterize a .prt effect to PNG image(s): by default one contact-sheet PNG of 16 frames evenly spaced over [0, completion||duration], auto-framed. All builtin + embedded-PNG textures, all five blend modes, flipbook, stretch/velocity-align/flip, per-particle + connect-ribbon TRAILS, and layer draw order are rendered; DISSOLVE is NOT rasterized (a dissolve doc still renders its sprites). Deterministic: frames snap to the same 1/60 trajectory as simulate_effect. Returns image block(s) + a renderHash, the snapped times, the viewport, and the grid. An invalid doc returns validate-shaped errors.
Inputs: doc, fps, seed, times, +9 more. Returns: grid, layout, viewport, warnings, +6 more
simulate_effectSimulate EffectARead-onlyIdempotent
Deterministically step a .prt effect in Node (no rendering) and report per-layer live counts over time, peak vs capacity, spatial bounds, completion, and a statehash plus the exact {seed, dt, steps} to reproduce it. Same seed + dt sequence => identical output. Validates first; an invalid doc returns validate-shaped errors.
Inputs: dt, doc, seed, handle, +2 more. Returns: echo, bounds, layers, warnings, +3 more
validate_effectValidate EffectARead-onlyIdempotent
Validate a .prt document (JSON string) against the real parse -> migrate -> validate pipeline. Returns ok + the canonical normalized doc + schemaVersion (and the pre-migration version), or structured, path-anchored errors worded for you to fix.
Inputs: doc, handle. Returns: ok, errors, warnings, migratedFrom, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct actions (validate/simulate/render/patch/open), and descriptions clearly differentiate them. Minor overlap: open_effect also validates and returns validate fields, and get_effect/get_preset/get_reference are all 'fetch' tools, but the resource distinction (session handle vs preset vs reference topic) keeps them separable.
All nine tools follow a consistent snake_case verb_noun pattern (get_effect, validate_effect, simulate_effect, list_presets, get_preset, get_reference, render_effect, open_effect, patch_effect). Verbs are meaningful and resource nouns are reused predictably.
Nine tools is well-scoped for an effect authoring/validation/simulation/rendering workflow, with each tool earning its place (open/validate/patch for iteration, simulate/render for verification, presets/reference for authoring). No redundant or filler tools.
The surface covers the full lifecycle: author (open/patch), validate, simulate, render, export (get_effect), plus presets and reference material for authoring guidance. Minor gap: no close_effect/list_handles to explicitly free or enumerate the 64-handle session cap, but handles being session-only makes this a small workaroundable omission.
Maintenance
Related MCP Connectors
Deterministic image rendering for agents: JSON template in, on-brand PNG out.
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Blender and GLB/FBX/USD/STL rendered on cloud GPUs for AI agents: product shots, turntables, MP4
Build and run visual creative-production workflows from your AI agent.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to author node-graph-based procedural graphics as data and render them deterministically via a pinned headless engine, returning validated, hashed image artifacts with full provenance.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to model, sculpt, rig, animate and bake particle effects by editing a semantic scene document, with built-in software rendering, measurable critics that flag floating or broken geometry, and game-ready glTF export. It exposes templates, atomic edit batches, motion and effect previews, undo history, and no GPU, browser, or Blender required.31 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables LLM and agent hosts to create and manipulate structured game-art documents through typed deterministic MCP operations, render them to SVG/PNG, validate output, inspect visuals, and make targeted edits toward reproducible, game-ready assets.Apache 2.0
- AlicenseAqualityCmaintenanceEnables LLM agents to author EisenScript procedural grammars and render them headlessly into Wavefront OBJ meshes, returning vertex/face counts and bounding boxes alongside validation, linting, PNG previews, mesh-format conversion, batch gallery rendering, and Unreal import.12MIT