Mage for Claude Code
Generate images, video, and audio in Claude Code
Connect Mage to Claude Code in your terminal and editor, then ask for images, video, and audio in plain words. Claude Code picks the model, quotes the price, and brings back the result.
https://mcp.mage.space/mcpAt a glance
To use Mage in Claude Code, add the Mage MCP server (https://mcp.mage.space/mcp) and sign in with your Mage account. Claude Code can then generate images with Mango 4, video with Cherry 2 Pro, audio with Seed Audio, or any of 35 Mage models you name, paid per generation in Gems.
- 16MCP tools
- 35Image, video & audio models
- 5Supported assistants
- $0To connect
Setup
How to connect Mage to Claude Code
A Mage account is required; a guest session cannot connect an app.
Add the server
Run this command in your terminal.
claude mcp add --transport http mage https://mcp.mage.space/mcpAuthenticate
In Claude Code, run /mcp, choose mage, and authenticate. A browser page opens for you to sign in to Mage and select Connect.
Or use an API key
To skip the browser sign-in, add the server with your key in a header instead.
claude mcp add --transport http mage https://mcp.mage.space/mcp \ --header "Authorization: Bearer $MAGE_API_KEY"
Try it
Example prompts for Mage in Claude Code
- Generate a 1200×630 Open Graph image for this blog post and save it to public/og.png.
- Make hero illustrations for the three landing page sections in our brand colors.
- Upload assets/demo.mp4 and restyle it as a watercolor animation.
- Create a looping 5-second background video for the homepage.
Tools
16 tools your assistant can call
| Tool | What it does |
|---|---|
| list_models | Lists the recommended models with prices, what each is best for, and its trade-offs. |
| get_model | Describes one model's fields, allowed values, defaults, rules, and price. |
| estimate_cost | Prices a generation before it starts. Nothing is charged. |
| create_upload | Gets a signed link to upload a local file, for assistants that can run commands. |
| generate | Starts an image, video, or audio generation. |
| get_request | Waits for a generation to finish and returns the result link. |
| cancel_request | Stops a running generation. |
| get_account | Shows the connected account and its Gems balance. |
| list_characters | Lists your saved characters and their @handles. |
| create_character | Saves a private character from an image, optionally with a voice. |
| delete_character | Deletes one of your characters. |
| list_references | Lists your saved outfits, poses, locations, objects, and voice clips. |
| create_reference | Saves a private reference from an image or audio link. |
| delete_reference | Deletes one of your references. |
| list_history | Lists your generations from the last 30 days, including ones made in the app. |
| search_creations | Searches your saved creations by what they show, collection, or date. |
More assistants
Mage works in every major AI assistant
Mage in Claude
Generate images, video, and audio in Claude on the web, the desktop app, the mobile apps, and Cowork.
Mage in ChatGPT
Generate images, video, and audio in ChatGPT as a personal MCP app.
Mage in Grok
Generate images, video, and audio in Grok as a custom connector.
Mage in Cursor
Generate images, video, and audio in Cursor Agent mode.
FAQ
Frequently asked questions
Can Claude Code generate images for my project?
Should I use OAuth or an API key with Claude Code?
What is the Mage MCP server?
Do I need an API key to use the MCP server?
How much does it cost?
Which models does my assistant use?
Is it safe to connect my Mage account?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.