# Pixel Surgeon

> Pixel Surgeon is an open-source MCP server for design and media. AI image and video generation, editing, and region repair via Gemini, OpenAI, and Grok. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/j-east/pixel-surgeon-mcp
- **MCP Registry name:** io.github.j-east/pixel-surgeon
- **Categories:** design and media, AI models and LLM tooling
- **Listing updated:** 2026-11-13

## About

AI image and video generation, editing, and region repair via Gemini, OpenAI, and Grok.

## Install

### Claude Code (Terminal)

```sh
claude mcp add pixel-surgeon --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env XAI_API_KEY='<XAI_API_KEY>' -- npx -y pixel-surgeon-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pixel-surgeon": {
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "XAI_API_KEY": "<XAI_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pixel-surgeon": {
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "XAI_API_KEY": "<XAI_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pixel-surgeon": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "XAI_API_KEY": "<XAI_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pixel-surgeon": {
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "XAI_API_KEY": "<XAI_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pixel-surgeon": {
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "XAI_API_KEY": "<XAI_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Pixel Surgeon free?

Yes. Pixel Surgeon is open source, so you can use and self-host it for free.

### How do I add Pixel Surgeon to Claude Code?

Run this command in your terminal: claude mcp add pixel-surgeon --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env XAI_API_KEY='<XAI_API_KEY>' -- npx -y pixel-surgeon-mcp

### What are the best alternatives to Pixel Surgeon?

The closest alternatives to Pixel Surgeon are HyperFrames by HeyGen, ffmpeg-skill, Claude Code Ultimate Guide, AvatarSay — Fictional Character & Talking Video MCP and ChartAnt.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [AvatarSay — Fictional Character & Talking Video MCP](https://ai-powered.com/mcp/avatarsay-fictional-character-and-talking-video-mcp): AvatarSay — Fictional Character & Talking Video MCP is a freemium MCP server for design and media.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [VfxSmith](https://ai-powered.com/mcp/vfxsmith): VfxSmith is a freemium MCP server for design and media.
- [CalderFlow](https://ai-powered.com/mcp/calderflow): CalderFlow is a free MCP server for design and media.
- [Hourlore](https://ai-powered.com/mcp/hourlore): Hourlore is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/pixel-surgeon
