Image MCP + Windsurf

Add AI image generation to Codeium's powerful 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 Windsurf in seconds

Or add to windsurf-mcp.json:
{
  "mcpServers": {
    "image-mcp": {
      "url": "https://imagemcp.io/api/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Seamless Codeium integration
Generate images in chat
API key authentication
Works with Cascade AI
Multiple model options
Fast CDN image delivery

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 Windsurf Settings

Open Windsurf and navigate to Settings > Extensions > MCP Servers, or locate your MCP configuration file.

3

Add Image MCP Server

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

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

Reload Windsurf

Restart Windsurf or reload the window to apply the new MCP server configuration.

💡 Check the MCP status indicator to confirm the connection is active.
5

Use Image Generation

Chat with Windsurf's AI assistant and ask it to generate images. For example: "Create a logo for my app with a mountain theme".

🎨 Usage Example

Once connected, just ask Windsurf to generate images

You:

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

Windsurf (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 Windsurf 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.