---
title: "Connect AI coding tools with MCP"
description: "Connect Claude Code, Cursor, VS Code and other AI tools to MakePixel with MCP, so they can read and edit your pixel art directly. A Pro feature."
source: https://makepixel.ai/guide/connect-mcp/
language: en
updated: 2026-11-25
---

# Connect AI coding tools with MCP

**MCP** lets AI coding tools such as Claude Code and Cursor work directly on your MakePixel projects. Ask from your code editor, "make the slime I've selected blue", and the change appears on your open canvas, with no exporting and re-importing in between.

Connecting AI tools is part of **Pro**, including the Pro trial. It doesn't use MakePixel credits, because these tools read and edit your art rather than generate new images. Your AI tool's own plan or usage is separate.

## Connect your tool

1. Open **[Connect AI tools](https://makepixel.ai/account/ai-tools)** in your account.
2. Select your tool's name and copy the line it shows. You can also **Copy** the server address on its own: `https://makepixel.ai/mcp`.
3. Add it to your tool, using the matching section below.
4. Your tool opens a browser window. Sign in to MakePixel and select **Allow**.

There's no key to paste or keep safe. Once you've allowed it, ask your tool something simple to check: "List my MakePixel projects."

### Tools with a command

Run the line for your tool in a terminal:

```sh
# Claude Code
claude mcp add --transport http makepixel https://makepixel.ai/mcp

# Codex
codex mcp add makepixel --url https://makepixel.ai/mcp

# VS Code
code --add-mcp '{"name":"makepixel","type":"http","url":"https://makepixel.ai/mcp"}'

# Gemini CLI
gemini mcp add --transport http makepixel https://makepixel.ai/mcp

# Copilot CLI
copilot mcp add --transport http makepixel https://makepixel.ai/mcp
```

### Tools with a config file

**Cursor**, in `~/.cursor/mcp.json`:

```json
{ "mcpServers": { "makepixel": { "url": "https://makepixel.ai/mcp" } } }
```

**Windsurf**, in `mcp_config.json`:

```json
{ "mcpServers": { "makepixel": { "serverUrl": "https://makepixel.ai/mcp" } } }
```

**opencode**, in `~/.config/opencode/opencode.json`:

```json
{ "mcp": { "makepixel": { "type": "remote", "url": "https://makepixel.ai/mcp" } } }
```

If the file already has other servers, add `makepixel` alongside them.

### Tools with a settings screen

Paste `https://makepixel.ai/mcp` here:

| Tool | Where |
| --- | --- |
| **Claude Desktop** | Settings → Connectors → Add custom connector |
| **ChatGPT** | Settings → Developer mode → Add custom connector |
| **Cline** | MCP Servers → Remote Servers |

These apps move their menus from time to time. If a path doesn't match, look for "MCP" or "connectors" in that tool's documentation.

## Show it what you mean

The fastest way to direct an AI tool is to point at something rather than describe it.

- **Use your selection.** Select images in your browser, then say "the image I have selected". The project needs to be open in a browser tab for this.
- **Paste a link.** Right-click anything on the canvas, choose **Copy link** and paste it into your tool. With several things selected, you get one link per line.

Requests that work well:

- "Look at my selection and tell me what's wrong with the outline."
- "Replace the green in this sprite with colours from my saved palette."
- "Add a 4-frame blink to this idle animation."
- "Put these sprites in a section called Enemies."
- "Export this sprite for Godot and add it to `assets/hero`."

## What it can do

Your AI tool sees these actions and picks the right one for each request.

**Reading:**

| Tool | What it gets |
| --- | --- |
| `whoami` | Your account, plan and available credits |
| `list_projects` | Your projects, most recently changed first |
| `get_project` | A project's outline: sections and items, filterable by section, type or name |
| `get_selection` | What you've selected in your browser right now |
| `get_node` | An item's layers, frame timing, tags, palette and recent versions |
| `get_image` | A picture of a frame or layer, or a whole animation on one sheet |
| `get_pixels` | A frame and layer as text it can edit, up to 128 × 128 |
| `get_palette` | An image's colours, or your saved palettes |
| `export_node` | A download link for Godot, Unity, Aseprite or a PNG sheet |

**Changing:**

| Tool | What it does |
| --- | --- |
| `create_image` | Makes a new image, with several frames if needed |
| `update_image` | Replaces a frame or layer, adds one, or changes frame timing |
| `restore_version` | Puts an image back to a saved version |
| `add_note` | Adds a note |
| `create_section` | Makes a section, around existing items or empty |
| `update_node` | Renames or moves an item, or moves it in or out of a section |

Changes show up immediately on any page you have open, without a refresh. Connected tools **can't delete anything, can't generate AI images** and can't reach anyone else's projects.

## How it edits pixels

Chat-based AI can't paint into a PNG, but it can write text. So MakePixel hands it an image as a small palette and one line of text per row, one character per pixel:

```json
{
  "palette": { "k": "#28141e", "r": "#dc283c" },
  "rows": [".kk.", "krrk", ".kk."]
}
```

`.` is always transparent. To change a pixel, the tool changes one character and sends the rows back, so **every other pixel stays exactly as it was**.

It works on one layer at a time, so other layers are never flattened in. Your palette order is kept and new colours go on the end. Frames that share linked art change together. This text route covers images up to 128 × 128. Larger images can still be viewed with `get_image`.

## If it gets something wrong

Before an edit, `update_image` saves the image as a version and tells your tool which one. To go back, **just say "undo your last change"**, and it restores that version. A restore can itself be undone the same way. You can also open **Versions** on the image and pick one yourself.

⌘Z in your browser **doesn't** undo changes made through MCP, so use one of these two routes.

## Export from your tool

Ask your tool to export an image and it gets a download link for **Godot**, **Unity**, **Aseprite** or a **PNG** sheet. It's a zip, except that a single still image as PNG is just the PNG. The link works for 10 minutes and can be downloaded repeatedly in that time, so a coding tool can fetch the files and unpack them straight into your game's folders.

## Manage connections

The approval screen tells you plainly: your tool *will be able to read and change your projects*. Access is all-or-nothing, with no read-only mode, so connect only tools you trust.

- **See what's connected** on [Connect AI tools](https://makepixel.ai/account/ai-tools), with the date each one was added.
- **Disconnect** a tool there. It loses access on its next request.
- **After 90 days without use**, a connection expires and you connect again.
- **When Pro ends**, connected tools stop working.

## Common problems

**"Connecting AI tools needs Pro."** Upgrade or start a trial on the [pricing page](https://makepixel.ai/pricing/).

**It says nothing is selected.** Your project must be open in a browser tab, with the items selected there.

**It can't edit a large image.** Pixel editing stops at 128 × 128 per image.

**It asks you to sign in again.** The connection expired, or was disconnected. Approve it again in the browser.

**A setup path doesn't exist.** Your tool has updated its menus. Search its docs for adding a remote MCP server, and use `https://makepixel.ai/mcp`.

## Where to go next

Want the AI built into the canvas instead? See the [AI pixel art generator](https://makepixel.ai/features/ai-pixel-art-generator/). For generating images from your own scripts and servers, use the [pixel art API](https://makepixel.ai/guide/pixel-art-api/).
