Skip to main content
Setup takes under a minute. Claude Desktop connects with OAuth; clients that support custom headers can use a Magica API key as either an Authorization Bearer token or an x-api-key header.

1. Choose your authentication method

For Claude Desktop, skip the API-key step. Its remote connector UI uses OAuth and does not require you to paste a token, client ID, or client secret. For Claude Code, Cursor, or another client that supports custom headers, open magica.com, then Settings → API Keys → Manage to create or copy a key. This is the same Bearer token used for the REST API.

Step-by-step API key walkthrough

See the full Authentication page for click-by-click screenshots, rate limits, key rotation, and revocation.
If you use an API key, treat it like a password — store it in your password manager or a .env file, never in committed code.

2. Connect your client

Pick your assistant below. Where a command shows YOUR_API_KEY, replace it with the key from step 1.
1

Add the MCP server via CLI

Run this in your terminal:
2

Verify the server is registered

You should see magica in the output.
Terminal output of claude mcp list with magica visibleTerminal output of claude mcp list with magica visible

claude mcp list showing the Magica server registered

3

Start using tools

Open a new Claude Code session and ask it to find an image model or start a generation.
Current Claude Desktop releases add remote MCP servers through Settings → Connectors. Do not put this remote connector in claude_desktop_config.json; that file is for local desktop extensions.

3. Start using tools

Your AI assistant now has access to the Magica MCP tools. Try one of these prompts:
  • “Show me the available text-to-image models.”
  • “Generate a product photo of a red sneaker on a studio backdrop.”
  • “Run the Nano Banana Pro model on this image and add a dog to the scene.”
See Available Tools for the full list.