Guide

Connect your agent with MCP.

The Mografy MCP server lets any agent that speaks MCP check, preview, edit and export your films from the chat. It runs on your computer with one command.

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.

Set up Mografy MCP
Set up the Mografy MCP server for me. Guide: https://www.mografy.app/docs/mcp 1. Make sure the current folder is my Mografy workspace: it has a mografy.workspace.json (npx mografy@latest init created it; if I am inside one of its projects, go up to that folder). If there is none, stop and tell me to install Mografy first: https://www.mografy.app/docs/getting-started 2. Add the server to yourself from this folder: - Claude Code: claude mcp add mografy -- npx -y mografy mcp - Codex: codex mcp add mografy --env MOGRAFY_WORKSPACE=<absolute path of this folder> -- npx -y mografy mcp On Windows, put cmd /c in front of npx. 3. Ask me if I also use Claude Desktop. If I do, add a "mografy" server to its claude_desktop_config.json and keep the servers already there: command npx (on Windows: command cmd, args starting with /c npx), args -y mografy mcp, and env MOGRAFY_WORKSPACE set to the absolute path of this folder. If Claude Desktop cannot find npx, use the full path of npx. Then tell me to restart Claude Desktop. 4. Check that mografy is connected and call list_projects: it lists the workspace's projects/ and examples/. If the tools only appear after a restart, tell me to restart you. Do not change Mografy itself. If a step fails, tell me the error.

Or run one line yourself

Run it once in your mografy folder.

Terminal
claude mcp add mografy -- npx -y mografy mcp

Type /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:

Prompt
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_projects

Lists your recent projects, the projects library and the bundled examples.

project_info

Size, duration, shots, tempo, source files, parameters and settings, plus the last build error.

check

Compiles the scene and trial-renders it in Chromium. With motion, it also scans every frame for jumps, hard starts and hard stops.

render_frame

Renders one moment of the film and returns it as an image, so the agent can look at it.

review

Changes files

Creates the visual-review sheets in renders/ and returns them as images.

read_source

Reads the scene’s source files.

write_source

Changes 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_project

Changes files

Creates a new project with the starter scene in your projects library.

open_player

Shows the project in the Mografy player: switches the player that is open, or starts one.

export

Changes 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_guide

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