# Cursor + VidMachine MCP

> One JSON file, and the editor can build and post videos for you.

Cursor reads MCP servers from `.cursor/mcp.json` in the project, or `~/.cursor/mcp.json` for every workspace. Keep the key in your environment: the config interpolates `${env:VIDMACHINE_API_KEY}`, so the committed file never contains it.

Page: https://vidmachine.ai/cursor

## Connect

Create an API key under [API & MCP](https://vidmachine.ai/api-keys), then add the server to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (every workspace):

```json
{
  "mcpServers": {
    "vidmachine": {
      "url": "https://vidmachine.ai/api/mcp",
      "headers": { "Authorization": "Bearer ${env:VIDMACHINE_API_KEY}" }
    }
  }
}
```

- Use the project file to share the setup with a repository; use the home file to get it in every project.
- The same `mcpServers` entry works in any client that supports Streamable HTTP and a custom header.
- The agent gets 28 tools in five groups: find, build, render, post, brand.

## The loop: find, inspect, make, schedule

### 1. Find — find out what's already there

Ask for a project or a video in plain language. The read tools answer with real IDs, statuses, and the first missing stage — and cost nothing.

Tools: `search_documentation`, `get_documentation`, `list_projects`, `list_videos`

### 2. Inspect — inspect before spending credits

Read the script, scenes, and cover, then quote the credits the remaining stages will cost and check the balance. Every paid step is priced before it runs.

Tools: `get_video_content`, `estimate_video_cost`, `get_credit_balance`

### 3. Make — make your version

Rewrite a scene, regenerate just that scene's media, and resume the pipeline. Work that already exists is reused, so a one-scene change does not redo the video.

Tools: `update_scene`, `generate_scene_media`, `generate_video`, `export_video`

### 4. Schedule — schedule it and get the link

Set the post time and status, then have the final URL handed back to you. The scheduler publishes it with the same rules as the dashboard.

Tools: `update_video`, `export_video`

## Three prompts to try

1. Open the Fast Brain project, read video 42, and show me its next step.
2. Tighten the scene 2 prompt in the demo project and regenerate just that image.
3. Export the last video and paste the final URL here.

## Full tool list

Every tool, input schema, protocol version, and header rule: [MCP server docs](https://vidmachine.ai/docs/mcp.md).

Other guides: [Claude Code](https://vidmachine.ai/claude) · [ChatGPT](https://vidmachine.ai/chatgpt) · [Codex](https://vidmachine.ai/codex)
