MCP Integration
The ASCII Motion MCP server lets AI assistants create and edit ASCII art and animations through the Model Context Protocol. Your assistant calls tools to draw cells, add generator layers, set timing, inspect the canvas and export your work. With live sync, the changes appear in an ASCII Motion editor open in your browser.
The server is published on npm as ascii-motion-mcp. These docs describe version 3.0.0, which provides 216 tools (106 canonical operations, 109 compatibility tools with the 2.x names, and read_artifact), 9 resources and 7 prompts. See the tool reference for the full list.
Version 3 uses bridge v3, which ascii-motion.app supports from app version 2.2.6, and needs Node.js 22 or 24. For an older self-hosted app, use the legacy ascii-motion-mcp@2.3.0. See Version compatibility.
What you can do
- Draw and write: set cells, draw brush strokes, lines, shapes, Bézier curves and ASCII boxes, fill areas and gradients, and place plain or FIGlet text.
- Build layered animations: add, group, reorder and merge layers; add, split and retime content frames; and keyframe layer and group properties, all with stable IDs.
- Add procedural motion: generator layers (radio waves, turbulent noise, particle physics, rain drops, digital rain and animated text), non-destructive effects, and the five shaders, each with keyframes.
- Edit safely: run up to 100 changes as one atomic, undoable batch, and guard edits with document revisions.
- Import: text, images and video through the app's converter, plus image trace overlays.
- Export: PNG, JPG, SVG, MP4, WebM, HTML, text, JSON, React, Ink, Bubble Tea, OpenTUI and the native session format, with frame ranges and the app's own export options.
ASCII Motion has no GIF export; use video export for shareable animations.
Choose your client
| Client | Guide | Configuration |
|---|---|---|
| GitHub Copilot app | Setup | Customize → MCP, then add a custom server |
| GitHub Copilot CLI | Setup | copilot mcp add or ~/.copilot/mcp-config.json |
| VS Code + GitHub Copilot | Setup | .vscode/mcp.json (servers) |
| Claude Desktop | Setup | claude_desktop_config.json (mcpServers) |
| Cursor | Setup | .cursor/mcp.json (mcpServers) |
| Windsurf | Setup | mcp_config.json (mcpServers) |
Every client uses the same command:
npx -y ascii-motion-mcp@3 --live --project-dir /absolute/path/to/projects --port 9876| Option | Description |
|---|---|
--live, -l | Start the WebSocket bridge so a browser editor can connect. |
--project-dir, -d | Folder used by file tools such as save, load, import and export. Defaults to the directory the client starts the server in, so set it explicitly. |
--port, -p | WebSocket port for live sync. Default 9876. |
--help, -h / --version, -v | Show help or the version, then exit. |
How live sync works
Your AI client starts and owns the server process. The browser editor connects to that same process with the token and port it reports, through ☰ → MCP Connection. You never need to run the server in a separate terminal. The connection only works when the client, server and browser are on the same computer.
Read Live Sync for the connection steps, verification, security notes and troubleshooting.
Cloud project tools act for the account signed in to the connected browser. They have only been tested signed out. See Cloud projects are untested signed in.
Task guides
- Layers and timeline: timeline frames, content frames, stable IDs, revisions and keyframes.
- Generators, effects and shaders: procedural layers, effect blocks and shaders.
- Import and export: media import, export formats, options and artifacts.
- Projects, selection and palettes: project lifecycle, selections and palettes.
- Example prompts: end-to-end workflows to copy.
Built-in prompts and resources
The server includes prompt templates such as create-animation, create-banner and export-for-cli, which your client may offer as slash commands. It also exposes read-only resources such as project://state and guide://llm-best-practices that assistants can read for context. Both are listed in the tool reference.