Setting up VidMage MCP in Cursor requires one JSON entry. You will need to add the VidMage server and your API key to Cursor's global mcp.json file, restart Cursor, and confirm that the vidmage server is enabled. Cursor's agent can then find VidMage's image and video tools, quote the credit cost, run the generation, and save the finished file in your project folder.
Cursor connects to VidMage over HTTPS using your API key. You need access to Cursor's agent features and an active VidMage subscription with enough credits for the generation. You don't need to install a local VidMage server.
What You Need Before Your First Cursor MCP Setup
- Cursor with agent access: Install Cursor and sign in. This guide for setting up VidMage MCP in Cursor uses Cursor's agent window on a Mac. Cursor tracks its agent usage separately from VidMage credits.
- A VidMage subscription with credits: API keys work only on subscribed accounts. Each image or video uses the same credit balance as vidmage.ai.
- A local project folder: Cursor saves the generated file in this folder. An empty folder works.
- Coding experience: Not required. The setup uses one JSON entry, and Cursor's agent makes the VidMage tool calls.
How to Add VidMage MCP to Cursor
Step 1: Go to the VidMage Developer Console, open API keys, and click Create API key. Enter a name that identifies where you will use the key, such as Cursor MCP, and click Create key. VidMage displays the full key only once, so copy it immediately and store it somewhere secure. Add the key only to Cursor's settings file, and keep it out of chat messages, screenshots, and shared files. For detailed API key instructions, see How to Create Your VidMage API Key.

Step 2: In the Developer Console, select MCP connections and open the Cursor tab. VidMage displays the configuration Cursor requires and its file location: ~/.cursor/mcp.json. Click Copy configuration. The Setup required label identifies the configuration instructions. It does not report Cursor's connection status. You verify the connection from Cursor in Step 4.

The copied block holds only the server address and an authorization header:
{
"mcpServers": {
"vidmage": {
"url": "https://vidmage.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Step 3: Open Cursor, click Customize in the sidebar, go to MCPs, and choose New MCP Server > Add a Custom MCP Server.
Cursor opens its global mcp.json file in the editor and creates the file if you don't have one yet. Paste the configuration and replace YOUR_API_KEY with the key from Step 1, keeping the word Bearer and the single space after it. Save with Command + S (Ctrl + S on Windows).
If the file already contains other servers, add the "vidmage": { ... } entry inside the existing mcpServers object. Separate the entries with commas and keep the existing configuration.
On Windows, Cursor stores the same file at %USERPROFILE%\.cursor\mcp.json.
On a Mac, you can optionally run chmod 600 ~/.cursor/mcp.json in Terminal to keep other accounts on the computer from reading the key.
Step 3.1 Quit Cursor completely with Command + Q, then reopen it so Cursor loads the new server.
Step 3.2 Go to Customize > MCPs and click vidmage. In the Configure vidmage panel, confirm three details:
- The User source points to ~/.cursor/mcp.json, and its switch is on
- The Local environment shows Connected
- The Tools list includes entries such as list_capabilities, describe_capability, and estimate_capability_credits.
If the switch is off, turn it on, then click Done.

Check That Cursor's Agent Can Use VidMage
Step 4: The switch shows that the server is enabled. Before generating an asset, make an authenticated tool call to confirm that Cursor can access VidMage.
Click Open Workspace in the sidebar, choose Use Existing… > Open Folder, and select your project folder.
Click New Agent next to that folder and confirm that the environment below the message box is your computer (This Mac on a Mac). Then send this message:
Check my VidMage MCP connection. Use the vidmage MCP server to call list_capabilities with a limit of 3 and show me the capability names returned. Do not upload files or generate anything. If the server or tool is unavailable, tell me instead of using another route.
Cursor lists the call under Explored, with the VidMage icon next to 1 tool.
Click that line to view the list_capabilities request and the VidMage response. A successful check returns a short list of capability names, such as Photo Face Swap, Photo Head Swap, and Multiple Face Swap. The capability names and their order may change. Check that the list comes from a successful VidMage list_capabilities tool response. If Cursor requests permission to run a VidMage tool, review the tool name and approve the request.

Create and Save an Image From a Prompt
Step 5: Describe the image and its purpose, then ask Cursor for a credit quote before it generates anything. Stating the purpose helps the agent choose a suitable capability and write a more specific generation prompt. The following request describes a homepage image for a small flower shop:
I need a homepage hero image for a small flower shop: a loose bouquet of peach and cream flowers in a clear glass vase on a pale wooden table, soft daylight, natural colors, and open space on the right for a heading. No people, text, logos, or watermark.
Use VidMage MCP to find a text-to-image capability, check its supported inputs, and get an exact credit quote for one 16:9 PNG at 1k if supported. Show me the final generation prompt, settings, and price before generating anything. Save the proposed request and quote in flower-shop-quote.json for later approval.
Cursor searches the VidMage catalog, selects Text to Image, checks its supported inputs, and returns the final prompt, settings, and an exact quote. It also saves the proposal in flower-shop-quote.json for review.

Step 6: After reviewing the prompt, settings, and quoted cost, send a separate message that authorizes the generation and specifies the budget and output filename:
Generate one image using the approved request in flower-shop-quote.json, for up to 5 VidMage credits. Save it in outputs as flower-shop-hero with the correct file extension.
Before submitting, save the request and a fresh idempotency key in flower-shop-job.json. Add the returned task ID, then check that same task until it finishes, respecting VidMage's returned wait interval. Download its completed result, verify the file's format and dimensions, and show me the saved image and its location. Keep the final status and credit usage in the job file. Do not create another generation if the download or preview needs a retry.
If your quote differs, replace the credit amount with your quoted amount. Cursor saves the request and a new idempotency key in flower-shop-job.json, submits the task once, and records the task ID that VidMage returns. Cursor then checks the same task at the interval VidMage specifies and downloads the completed result to an outputs folder in your project. If Cursor requests permission to download the result or save it locally, review and approve the action for the selected project folder.
Open the saved file using the path Cursor returns. The PNG shown below uses the path outputs/flower-shop-hero.png.

The saved image at full size:

Step 7: To confirm the charge in VidMage, open the Developer Console and click the task in your recent tasks. Task details show the capability (text-to-image), a billing status of recorded, the credits used, and the task ID. Compare this task ID with the one in flower-shop-job.json to link the charge to your request.

How to Switch to AI Video Generation in Cursor
To use AI video generation in Cursor, ask Cursor to find a VidMage video capability, check its supported duration and aspect ratio settings, and quote the cost before submission. Describe the scene, subject movement, and camera motion you want.
Have Cursor save the video request and quote separately from the image files. After approving the quote, ask Cursor to submit one video task, save the task ID in a separate job file, check that task until completion, and download the result using the returned file format.
Pricing and processing time depend on the selected capability and settings.
Why Cursor Saves a Task ID and a Job File
The job file preserves the request, idempotency key, and task ID so Cursor can recover the existing generation. For a retry of the same submission, Cursor must reuse the original idempotency key and the unchanged request.
Once a task ID is available, Cursor should check that task rather than submit another generation. If the chat closes, Cursor quits, or the download fails, ask Cursor to continue from the saved record:
Open flower-shop-job.json, check the saved task ID, and download the result to the same file if it's finished. Don't submit a new generation. If there's no task ID, look up my recent VidMage tasks first.
Downloading a finished result again doesn't use generation credits. Removing VidMage from mcp.json also leaves any submitted task running.
Troubleshoot VidMage MCP in Cursor With the MCP Logs
If VidMage does not appear in Cursor, appears without tools, or stops responding during a chat, check Cursor's MCP logs for the cause. To open the VidMage log:
- Click IDE in the top right corner of the agent window to open the project folder in Cursor's editor.
- Press Command + Shift + P (Ctrl + Shift + P on Windows), type Output, and choose Output: Show Output Channels…. You can also press Command + Shift + U (Ctrl + Shift + U) to open the Output panel.
- Type MCP and select MCP: user-vidmage to inspect the connection messages for the VidMage server in your user settings.
A working connection shows messages such as Successfully connected to streamableHttp server and connected=true. The auth=unknown field alone does not indicate an authentication failure. Check the accompanying connection messages and the authenticated tool response from Step 4. Before sharing logs with support, remove API keys, Authorization values, signed URLs, and unrelated private information.

What you see | What to do |
|---|---|
vidmage does not appear under Customize > MCPs | Reopen mcp.json and check that the vidmage entry sits inside mcpServers with no missing or extra commas. Save the file, then quit and reopen Cursor. |
The server appears, but the agent cannot find VidMage tools | Confirm that the User switch is on and the chat runs on your computer. Click Reload in the Configure vidmage panel, then start a new agent chat. |
AUTHENTICATION_REQUIRED or AUTHORIZATION_HEADER_INVALID in the log | Check that the Authorization line contains Bearer, one space, and your full key, with no placeholder text or line break. |
API_KEY_INVALID_OR_REVOKED | Create a new key in the Developer Console, replace only the key in the Authorization line, save the file, click Reload, and repeat the Step 4 check. |
A 403 or access denied error | Confirm that your VidMage subscription is active. On a work computer, your organization may also restrict MCP servers. |
A timeout or connection error | Confirm that the URL reads exactly https://vidmage.ai/api/mcp, and check that a VPN, proxy, or firewall is not blocking it. |
The generation does not start | Ask Cursor to show VidMage's returned error and check it against the capability's supported inputs and your available credits. If VidMage returned a task ID, check that task before submitting again. |
The image finished, but no file appeared | Approve the download or file access request, then ask Cursor to download the same task again without submitting a new one. |
Try it in VidMage
Open the tool and follow the steps above.

