What it does
npx mografy mcp starts a local MCP server over stdio. It offers the same work as the mografy command, as tools: list projects, check a scene, render a frame, make review sheets, read and write scene files, open the player and export.
Agents that can run terminal commands, like Claude Code and Codex, already work well with the Mografy Skill. MCP adds two things: chat apps without a terminal, such as Claude Desktop, can use Mografy too, and every agent gets frames and review sheets back as images it can look at.
Install Mografy first. The MCP server is part of Mografy, with nothing extra to install. Run the commands below in your mografy folder. If npx mografy --help does not work there yet, follow Installation.
Add it to your agent
Open Claude Code or Codex in your mografy folder and paste this. Your agent adds the server to itself, adds it to Claude Desktop too if you use it, and checks that it is connected. It works the same on macOS and Windows.
Or run one line yourself
Run it once in your mografy folder.
claude mcp add mografy -- npx -y mografy mcpType /mcp in Claude Code to see that mografy is connected.
Other clients
Any MCP client that starts a local stdio server works: command npx, arguments -y mografy mcp, and the environment variable MOGRAFY_WORKSPACE set to your mografy folder.
Try it
Ask your agent something that needs Mografy:
List my Mografy projects, then check the newest one and show me the frame at 2 seconds.The agent lists your projects, runs the check and shows you the frame. From there, describe what to change, just as you would with the Skill.
Tools
Every tool takes the project as an absolute path or as a folder name from list_projects. Tools marked Changes files write to the project; the others only read it.
list_projectsLists your recent projects, the projects library and the bundled examples.
project_infoSize, duration, shots, tempo, source files, parameters and settings, plus the last build error.
checkCompiles the scene and trial-renders it in Chromium. With motion, it also scans every frame for jumps, hard starts and hard stops.
render_frameRenders one moment of the film and returns it as an image, so the agent can look at it.
reviewChanges files
Creates the visual-review sheets in renders/ and returns them as images.
read_sourceReads the scene’s source files.
write_sourceChanges files
Writes scene files only after they compile and trial-render. A failed change returns the error and leaves your files as they were.
create_projectChanges files
Creates a new project with the starter scene in your projects library.
open_playerShows the project in the Mografy player: switches the player that is open, or starts one.
exportChanges files
Exports the film to renders/ with progress. Cancelling the call cancels the export. Agents use it only when you ask for a file.
read_guideReads the Mografy Skill and its references, for agents that do not have the Skill installed.
How it works
Works with the open player
If the project is open in the player, the tools go through the player, so you and the agent see the same result. If not, the server opens the project in the background and closes it after five idle minutes.
Checks before it writes
write_source compiles and trial-renders new files first and writes them only if that passes. If it fails, your files stay as they were.
Exports only when you ask
Exporting takes time and can replace a file in renders/, so agents export only when you ask for a file. Presets and formats are the same as in the player.
Export settings →Follows the Mografy rules
The server asks every agent to read the Mografy Skill before it writes a scene, and to run check and review after every change.
Stays on your computer
The server talks to your agent over stdio and connects only to the player on 127.0.0.1. It never opens a network port of its own.
Safety
Open only projects you trust. A project’s scene code runs in the player with the same access as the editor, so opening a project from someone else is like running their script. This is true with or without MCP.
Most clients ask before an agent calls a tool. Allow the read-only tools freely, and keep an eye on write_source and export.