# How do I connect Mage to Claude, ChatGPT, or Cursor?

Source: https://www.mage.space/help/integrations/mcp

> Connect the Mage MCP server to Claude, ChatGPT, Claude Code, Cursor, or Grok to generate images, video, and audio right in your chat.

Add the Mage MCP server (`https://mcp.mage.space/mcp`) as a connector in your AI assistant, sign in to Mage, and click **Connect**. Once connected, you can ask for images, video, or audio right in chat: your assistant picks a model, quotes the Gem price, and returns the result.

All MCP generations are paid in Gems from your Mage balance (Unlimited applies in the web app only). Buy any [Gem pack](https://www.mage.space/gems) or membership first to unlock MCP access; free sign-up Gems work in the web app only.

## Quick setup by assistant

- **Claude:** open the connector link on [Mage MCP](https://www.mage.space/mcp), click **Add**, sign in, and approve. Enable Mage from the `+` menu under Connectors in any chat.
- **ChatGPT:** in ChatGPT **Plugins**, click **Add**, choose **Create MCP App**, enter `https://mcp.mage.space/mcp` with OAuth, sign in, and mention `@Mage` in chat. (If **Create MCP App** is missing, turn on Developer mode in ChatGPT **Settings → Security and login**.)
- **Claude Code:** run `claude mcp add --transport http mage https://mcp.mage.space/mcp`, then run `/mcp`, pick `mage`, and sign in.
- **Cursor:** click **Connect to Cursor** on [Mage MCP](https://www.mage.space/mcp) and sign in when prompted.
- **Grok:** open Connectors → **New Connector** → **Custom**, paste `https://mcp.mage.space/mcp`, and sign in.

> Need the full walkthrough for your client? See the setup guides under [Developers → MCP](https://www.mage.space/developers/mcp).

## What your assistant can do

Connected assistants can quote prices, generate images, video, and audio, mention or create your Characters and References by `@handle`, inspect your last 30 days of History, and search your Saved creations. Unless you name a model, they default to **Mango 4** (images), **Cherry 2 Pro** (video), **Seed Audio 1.5** (audio), and **Seed TTS 3.0** (text-to-speech).

## Disconnecting an assistant

Go to [Mage MCP](https://www.mage.space/mcp) → **Connected apps** and click **Disconnect**. Access ends immediately so the app can no longer spend Gems. Active connections otherwise stay valid for up to 180 days before asking you to re-approve.

## Common questions

### Why am I seeing a `payment_required` error?

Buy any [Gem pack](https://www.mage.space/gems) or membership first, since free sign-up Gems only work in the web app. Once a payment succeeds, retry without reconnecting.

### Can I attach a local file directly in Claude, ChatGPT, or Grok?

Web chats in Claude, ChatGPT, and Grok can’t forward attached files to Mage. Paste a direct image or video URL, or reference an existing Mage creation instead. Claude Code and Cursor can upload local files directly.

### How long are generated results kept?

Results stay available for 30 days. Download what you want to keep, or save it in Mage.
