> ## Documentation Index
> Fetch the complete documentation index at: https://wonder.design/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Wonder MCP

> Connect Wonder to your coding agent over MCP so design changes and code changes stay in sync.

Design and code have always lived in separate worlds. Wonder changes that. The Wonder MCP server gives your AI coding agent direct read and write access to your Wonder canvas, so you can pull designs into code or push code back into designs.

<video src="https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/wonder-MCP-small.mp4?fit=max&auto=format&n=txvZZNRKXPPmeY_S&q=85&s=42beb4ec23ecbbd92e8622c8df466116" width="1600" height="900" autoPlay muted playsInline loop />

> [!NOTE]
>
> **Before you start**\\
>
> You need a Wonder account with at least one file. The MCP server is free on every plan, including the free tier.

## What is Wonder MCP?

Wonder's MCP server plugs into coding agents (Claude, Cursor, and others) so that designs created in Wonder can be read, edited, and updated by your agent, and vice versa.

## How it works

Wonder connects to your agent through the Wonder MCP server at `https://mcp.wonder.so/mcp`. On first use you'll sign in through a standard OAuth flow. There are no API keys to manage, and tokens refresh automatically.

For Cursor, install Wonder from Cursor's plugin marketplace. Claude Code and Codex support the Wonder plugin directly.

## Install

Pick your agent below. We currently support Cursor, Claude Code, Claude Desktop, Claude custom connectors, Codex, Antigravity, Lovable, and custom MCP clients.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/cursor.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=c9e587213edd8dbc324af22e5cc2a4c0) Cursor

[Open Customize](cursor://anysphere.cursor-deeplink/customize)

1. Click **Browse Marketplace**.
2. Search for **Wonder** and open the result.
3. Click **Add**.
4. Click **Manage**. Wonder should now appear under **MCP**.
5. Click **Authenticate** and complete the browser sign-in.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/claude.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=bf657a5a2fb2c7430f78238193e89467) Claude Code

**Plugin (recommended)**

Open your terminal and run `claude` to start Claude Code. Add the marketplace:

```
/plugin marketplace add aquila-lab/wonder-plugins
```

Install the plugin:

```
/plugin install wonder@wonder
```

![Wonder plugin found in Claude Code](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-plugin-found.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=29c0a142147b03a615774a7470793a3d)

Claude Code showing the Wonder plugin available to install

Reload to activate it:

```
/reload-plugins
```

To check if it worked, run `/plugin` and confirm that Wonder appears under **installed**.

![Wonder plugin installed in Claude Code](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-plugin-installed.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=c6cc865b9807025e05f8d6bff0595c8d)

Claude Code showing the Wonder plugin under Installed

Open the Wonder app and any canvas file you want generations drawn to. Then, back in Claude Code, type a prompt like:

```
Generate a purple button in Wonder
```

On first use, Claude will say the Wonder MCP needs authentication and print a URL. Open that link in your browser to authorize, then come back to Claude Code and re-send the same prompt. Watch it draw onto your canvas in real time.

**Manual setup**

1. Open the terminal on your computer.
2. Run the command below (not inside Claude) to register the Wonder MCP server:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
claude mcp add --transport http wonder https://mcp.wonder.so/mcp
```

![Claude terminal command](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=2511626654ab2177cdc251974616c9f5)

Run the command in your terminal

3. Run `claude mcp list` to confirm the Wonder server appears.

![Claude mcp list output](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-02.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=abacdfb80c6d9814e415224ca5dd0bcd)

Confirm the Wonder server appears

4. Open a Claude Code session and run `/mcp`. You should see Wonder in the list of MCPs. If you don't, restart your Claude session. Wonder will prompt you to sign in to your account in the browser. Once done, your agent is connected. Tokens refresh automatically, so you should only need to do this once.

![Wonder shown in Claude /mcp list](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-03.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=836dc7955a108dbe65e8ac6c04b7ea76)

Wonder appears in the /mcp list

> [!TIP]
>
> **New to the terminal?**\\
>
> If you have trouble setting up Claude Code, watch this [tutorial](https://www.youtube.com/watch?v=eMZmDH3T2bY) or ask any AI agent to walk you through it.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/claude.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=bf657a5a2fb2c7430f78238193e89467) Claude Desktop

**Plugin (recommended)**

1. Open your Claude Desktop app and navigate to the **Code** tab in the top-left corner.
2. Click on **Customize**.
3. Click the plus icon under **Personal Plugins** > **Create Plugin** > **Add Marketplace**.
4. Enter the Wonder plugin URL in the field: `aquila-lab/wonder-plugins`.
5. Click **Sync** and add the Wonder plugin that appears to Claude.

![Add Marketplace dialog in Claude Desktop](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-desktop-marketplace.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=7f3ce6183cbf270ebe4c49e3e89e1cd9)

Add Marketplace in Claude Desktop

![Installed Wonder plugin in Claude Desktop](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-desktop-installed.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=2a980ae9996fc98f55566cdb3061dc8a)

Wonder plugin installed in Claude Desktop

You should now see Wonder in your MCP list when you start a `claude` session in your terminal and run `/mcp`.

**Manual setup**

Claude Desktop requires Node.js to run MCP servers. Verify by running `node --version` in your terminal.

Open **Claude Desktop Settings > Developer > Edit Config**. This opens your `claude_desktop_config.json` file.

Your file probably looks something like this:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "preferences": {
    "coworkWebSearchEnabled": true,
    "ccdScheduledTasksEnabled": true,
    "sidebarMode": "chat"
  }
}
```

Add the Wonder MCP section so it looks like this:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "mcpServers": {
    "wonder": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.wonder.so/mcp"
      ]
    }
  },
  "preferences": {
    "coworkWebSearchEnabled": true,
    "ccdScheduledTasksEnabled": true,
    "sidebarMode": "chat"
  }
}
```

Save the file. Make sure there's a comma after the closing `}` of `mcpServers`. Fully quit and restart Claude Desktop. A browser window will open asking *"MCP CLI Proxy would like access to your account."* Click **Allow access**. Once the browser confirms "Authorization successful!", close it and return to Claude. Check the chat input area for the MCP indicator to verify Wonder is connected.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/claude.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=bf657a5a2fb2c7430f78238193e89467) Claude (custom connector)

If you use the Claude desktop app or claude.ai in the browser and don't want to touch the terminal or config files, add Wonder as a custom connector. This is the simplest way to connect Claude to your canvas.

There are two parts. An admin adds Wonder as a connector once, then each person connects their own Wonder account. On a personal Pro or Max plan you're the admin, so do both.

**Add Wonder (admins)**

1. Open Claude (the desktop app or [claude.ai](https://claude.ai)).
2. Go to **Settings > Connectors**.
3. Click **Add**, choose **Custom**, then **Web**. In some versions this reads **Add custom connector**.

![The Add menu in Claude Connectors settings showing Add custom connector](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-connector-add.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=505778ab843270f2c614b71bb3e09c61)

Add a custom connector from the Connectors settings

4. Enter the following details:
   * **Name:** `Wonder`
   * **Remote MCP server URL:** `https://mcp.wonder.so/mcp`
5. Claude auto-detects Wonder's authentication settings. Keep the detected defaults:
   * **Authentication:** **Always required**
   * **OAuth client:** **Use Anthropic's hosted client metadata** (Recommended)

![Claude custom connector authentication settings with Always required and Use Anthropic's hosted client metadata selected](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-connector-auth.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=eb7b0fe98ac7c5087649b9773a97e576)

Keep the detected authentication defaults

6. Scroll down and click **Add** to make Wonder available.

Adding the connector doesn't give Wonder access to every member or file. Each person connects their own Wonder account and only sees files their existing Wonder permissions allow.

> [!NOTE]
>
> **Who can do this**\\
>
> On Team and Enterprise, only a Claude organization Owner or Primary Owner can add a custom connector. If you don't see the option, you likely aren't an Owner or your organization has restricted custom connectors: send your admin this guide.

**Connect your account (everyone)**

1. In Claude, open **Customize > Connectors**.
2. Find **Wonder** in the list (it may have a **Custom** label) and click **Connect**.
3. Sign in to Wonder and approve the connection.
4. Open the **Wonder** connector settings. Under **Tool permissions**, set both groups to **Always allow**:
   * **Read-only tools:** Always allow
   * **Write/delete tools:** Always allow

![Wonder connector tool permissions with Read-only tools and Write/delete tools set to Always allow](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/claude-connector-permissions.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=bdd28d52186d658de9b23a2742567412)

Set both tool groups to Always allow

> [!NOTE]
>
> **Why Always allow**\\
>
> This lets Claude work without asking before every Wonder tool call. Claude can still only reach files your Wonder account permits.

5. Open the Wonder web or desktop app and keep the canvas file you want to use open.
6. In a Claude conversation, open **+ > Connectors** and enable Wonder if it isn't already.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/codex.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=bf1e36104a2c66eebf1a6802a319fd9e) Codex

**Plugin (recommended)**

1. With the [Codex CLI](https://learn.chatgpt.com/docs/codex/cli) installed, run these commands in your terminal:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
codex plugin marketplace add aquila-lab/wonder-plugins
codex plugin add wonder@wonder
```

Wonder uses a [custom marketplace](https://developers.openai.com/plugins/build/plugins#add-a-marketplace-from-the-cli) hosted on GitHub, so an official directory listing isn't required.

2. Restart Codex and start a new chat. Type `@wonder` and select the installed **Wonder** plugin.

![Selecting the Wonder plugin in a new Codex chat](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/codex-wonder-attachment.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=c0d08fa6444c1f96ee728bf2e7afced0)

Select the installed Wonder plugin

> [!NOTE]
>
> **Choose the installed plugin**\\
>
> The **Wonder · Computer use** entry starts desktop automation. Select the installed Wonder plugin to use its MCP integration.

3. Open a canvas in Wonder, then send this read-only connection check in Codex:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Use Wonder MCP to list the artboards on my open canvas without changing it. If MCP is unavailable or authentication fails, stop and explain how to connect it. Do not use computer use.
```

4. Complete Wonder sign-in when Codex prompts you, then retry the connection check. Confirm Codex calls a Wonder MCP tool and returns your canvas's artboards before asking it to edit a design.

The plugin's bundled skill guides Codex to use Wonder MCP for canvas operations and explain connection problems. It asks Codex to use computer use only when you explicitly request it. This guidance applies when the skill loads; Codex controls the app picker and global tool routing.

**Manual setup**

Run the command below in your terminal to register the Wonder MCP server:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
codex mcp add wonder --url https://mcp.wonder.so/mcp
```

You can also configure it manually via `config.toml`. Run `codex mcp list` to confirm the Wonder server appears.

Restart Codex and start a new chat, then run the read-only connection check above and complete Wonder sign-in if prompted. Manual setup connects the MCP server without the plugin's bundled skill, so ask explicitly to use Wonder MCP.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/antigravity.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=101f07e7db51f64a704473c0c8507dfe) Antigravity

In Antigravity, click the **⋯** menu in the Agent panel > **MCP Servers**, then select **Manage MCP Servers** > **View raw config**. This opens your `mcp_config.json` file.

The file is located at:

* **macOS / Linux:** `~/.gemini/antigravity/mcp_config.json`
* **Windows:** `C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json`

Add the following configuration. Note that Antigravity uses `serverUrl` instead of `url` for remote MCP servers.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "mcpServers": {
    "wonder": {
      "serverUrl": "https://mcp.wonder.so/mcp"
    }
  }
}
```

Close and reopen Antigravity. Go to **MCP Servers** and confirm Wonder appears with its tools listed.

### ![](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/logos/lovable.svg?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=3c70668fbdec7673c9154790591923f6) Lovable

> [!NOTE]
>
> **Paid plan required**\\
>
> Custom MCP servers require a paid Lovable plan.

1. Open Lovable.
2. Navigate to **Settings → Connectors → Personal connectors** via the sidebar. Scroll down to **New MCP server** and click it. You can also click **+** in the prompt box and go to **Connectors** for quick access.

![Add custom MCP to Lovable](https://mintcdn.com/wonder-0722b0f6/txvZZNRKXPPmeY_S/images/mcp/lovable-mcp.webp?fit=max\&auto=format\&n=txvZZNRKXPPmeY_S\&q=85\&s=57e873a4f9c8c199aed65f357701eef7)

Add Wonder to Lovable with a custom MCP server

3. Enter `Wonder` as the MCP name and paste this URL:

```
https://mcp.wonder.so/mcp
```

4. Select **No authentication** and click **Add server**.

Wonder will appear in your list of personal connectors. You can now reference your Wonder designs directly in prompts.

### Other MCP clients

If your client isn't listed above, you can set up Wonder manually. The server URL is:

```
https://mcp.wonder.so/mcp
```

Most MCP clients accept a JSON config like this:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "mcpServers": {
    "wonder": {
      "url": "https://mcp.wonder.so/mcp"
    }
  }
}
```

If your client doesn't support remote URLs natively, use the `mcp-remote` bridge (requires Node.js):

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "mcpServers": {
    "wonder": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.wonder.so/mcp"
      ]
    }
  }
}
```

## Try it out

Once Wonder is connected, open a chat in your agent of choice and try one of these prompts to confirm everything is working.

**If you are in an existing codebase:**

```
Read my Tailwind config and create a design in Wonder using my exact colors, typography, and spacing.
```

**If you're starting fresh:**

```
Create a simple landing page hero in Wonder with a headline, subheadline, and a call-to-action button.
```

**To test the round-trip:**

```
Look at my existing app's header component and design a matching hero section in Wonder.
```

Your agent will use the Wonder MCP tools to read and write directly to your canvas. Open Wonder to see the result.

## Troubleshooting & FAQ

> [accordion] What does the Wonder MCP server do?
>
> The Wonder MCP gives your AI coding agent direct access to your designs, components, and documentation inside Wonder. Instead of screenshotting or describing your designs, your agent can read the actual design data and generate code that matches what you've built on the canvas.

> [accordion] Do I need a Wonder account?
>
> Yes. You need an active Wonder account with at least one project. The MCP server connects to your Wonder workspace, so the agent only sees designs you have access to.

> [accordion] Is the MCP server free?
>
> Yes, the Wonder MCP server is free to use on all plans, including the free tier.

> [accordion] Does it work with Windsurf, VS Code Copilot, or Cline?
>
> Yes. Any MCP-compatible client can connect to Wonder. Use the manual setup instructions above. The JSON config with `"url": "https://mcp.wonder.so/mcp"` works with most clients. For clients that don't support remote URLs directly, use the `mcp-remote` bridge method shown in the **Other MCP clients** section.

> [accordion] The Wonder server isn't showing up, or tools aren't working
>
> Try fully quitting and restarting your agent. Most MCP connection issues resolve after a restart.

> [accordion] The MCP server is connected but the agent isn't using it
>
> This usually means the agent doesn't know to look at your Wonder designs. Try being explicit in your prompt, for example: *"Use the Wonder MCP to pull my designs and generate the landing page layout."* Most agents discover the available tools automatically, but a nudge helps.

> [accordion] Why does Codex still use Computer Use?
>
> The **Wonder · Computer use** entry requests desktop automation. Follow the [Codex setup](#codex) to select the installed Wonder plugin in a new chat, then run the read-only connection check. If MCP is unavailable or sign-in fails, resolve that connection problem before asking Codex to edit your canvas.

> [accordion] Can the agent modify my designs?
>
> Yes. The Wonder MCP server provides both read and write access. Your agent can pull your designs as context and push new designs or updates back to the canvas.

> [accordion] I already added other MCP servers. Will Wonder conflict?
>
> No. MCP servers run independently. Add the Wonder config alongside your existing `mcpServers` entries in the same JSON object:
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
> {
>   "mcpServers": {
>     "wonder": {
>       "url": "https://mcp.wonder.so/mcp"
>     },
>     "other-server": {
>       "url": "https://example.com/mcp"
>     }
>   }
> }
> ```

> [accordion] Where can I report issues or request features?
>
> Head to our [Feature Requests board](https://wonderdesign.featurebase.app/en) or drop a message in our [Discord](https://discord.gg/HHA2sq6XKp).

## Related

* [Bring your code onto the canvas](https://wonder.design/docs/bring-your-code-onto-the-canvas.md): connect a GitHub repository and design with your real components.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.