Image MCP + Roo Code

Add AI image generation to Roo Code

🔑 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 Roo Code in seconds

Or add to roo-config.json:
{
  "mcpServers": {
    "image-mcp": {
      "url": "https://imagemcp.io/api/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
AI coding assistant
MCP protocol support
Generate images in chat
API key authentication
Multiple models available
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 Roo Code Settings

Access Roo Code's settings panel where MCP servers can be configured.

3

Navigate to MCP Configuration

Find the MCP servers section in settings and add a new server entry.

4

Add Image MCP

Configure Image MCP with the endpoint URL and 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"
      }
    }
  }
}
5

Restart and Test

Restart Roo Code to apply changes, then ask the AI to generate an image to test the integration.

🎨 Usage Example

Once connected, just ask Roo Code to generate images

You:

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

Roo Code (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 Roo Code 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.