Image MCP + Cursor

Add AI image generation to the most popular AI-powered IDE

🔑 API Key Required: Get your API key from the Dashboard to start generating images. Replace YOUR_API_KEY in the configuration below.

⚡ Quick Setup

Add Image MCP to Cursor in seconds

Or add to .cursor/mcp.json:
{
  "mcpServers": {
    "image-mcp": {
      "url": "https://imagemcp.io/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Generate images directly in chat
5 AI models available
API key for authentication
Instant CDN-backed image URLs
Works with all Cursor AI features
Supports detailed style prompts

Step-by-Step Guide

1

Get Your API Key

First, create an account and get your API key from the Dashboard. Each image generation costs 10 credits.

💡 New accounts receive free credits to get started.
2

Open Cursor Settings

Go to Cursor Settings (Cmd+, on Mac, Ctrl+, on Windows) and navigate to the MCP section, or create/edit the .cursor/mcp.json file in your project root.

3

Add Image MCP Configuration

Add the Image MCP server to your MCP configuration with your API key. Replace YOUR_API_KEY with your actual key.

{
  "mcpServers": {
    "image-mcp": {
      "url": "https://imagemcp.io/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
4

Restart Cursor

After saving the configuration, restart Cursor to load the new MCP server. The generate_image tool will now be available.

💡 You can verify the connection by checking the MCP panel in Cursor's sidebar.
5

Start Generating Images

Simply ask Cursor to generate an image in your chat. For example: "Generate an image of a mountain landscape at sunset".

🎨 Usage Example

Once connected, just ask Cursor to generate images

You:

"Generate an image of a futuristic city at sunset with flying cars"

Cursor (using Image MCP):

I'll generate that image for you using the generate_image tool...

generate_image({ prompt: "A futuristic city at sunset with flying cars, cyberpunk aesthetic, vibrant colors" })

Here's your generated image: [Image URL returned]

🔧 Troubleshooting

Tool not showing up?

Restart Cursor after adding the configuration. MCP servers are loaded at startup.

Connection errors?

Make sure you have internet access. Image MCP is a hosted service at imagemcp.io.

Image generation fails?

Try a different model or simplify your prompt. Check our error documentation for details.

Authentication errors?

Make sure you've added your API key correctly. Get your key from the Dashboard.