---
title: "Connecting a design MCP server to your agent, config by config"
description: "Claude Code, Codex, Cursor, VS Code and Windsurf, with the exact lines. No signup to read them."
date: 2026-11-12
canonical: https://plagio.dev/blog/install-a-design-mcp-in-any-agent
source: plagio.dev
---

# Connecting a design MCP server to your agent, config by config

*Claude Code, Codex, Cursor, VS Code and Windsurf, with the exact lines. No signup to read them.*

> Written by the plagio team. plagio is an MCP server that opens a public page in a real browser and
> returns its markup, design tokens, hover states and motion, so an agent builds from measurements
> instead of guesses. Connect it with:
>
> ```
> claude mcp add --transport http plagio https://plagio.dev/mcp --header "x-api-key: YOUR_KEY"
> ```
>
> A key is a free week at https://plagio.dev/dashboard. The site check at https://plagio.dev is free and needs no account.

Every agent supports MCP in its own way, and the instructions are usually behind a signup or summarised as "add it to your config file". These are the exact lines for plagio, which we make. Swap the URL and the header and they work for any HTTP MCP server.

## Claude Code

One command, from the project you want it in:

```
claude mcp add --transport http plagio https://plagio.dev/mcp \
  --header "x-api-key: YOUR_KEY"
```

Replace YOUR_KEY with your own, from your settings page. Don't paste a key into a chat with an agent: it ends up in the transcript.

## Cursor

Into the `mcpServers` object in `~/.cursor/mcp.json`, keeping anything already there:

```
{
  "mcpServers": {
    "plagio": {
      "url": "https://plagio.dev/mcp",
      "headers": { "x-api-key": "YOUR_KEY" }
    }
  }
}
```

## Codex, VS Code and Windsurf

The same shape in a different file. Codex reads its MCP config from your Codex configuration, VS Code from its MCP configuration file, and Windsurf, now Devin Desktop, from `~/.config/devin/mcp_config.json`, which wants the transport stated:

```
{
  "mcpServers": {
    "plagio": {
      "url": "https://plagio.dev/mcp",
      "transport": "http",
      "headers": { "x-api-key": "YOUR_KEY" }
    }
  }
}
```

Paths and key names move between releases, so each agent's own MCP page is linked at the end. If a server does not appear, that page is the first place to check, not the config you just wrote.

## Check it works

1. **Restart the agent.** Most read the config once, at start. A server that "doesn't exist" usually exists in a file the running process has not read.
2. **Ask it to list its tools.** You want to see the server's tools by name. If the server connected but has no tools, the key is wrong rather than the config.
3. **Point it at a page.** "Use plagio to read stripe.com and tell me the type scale." If numbers come back, the whole path works.

## Keys, briefly

A key identifies the account that pays for the captures, so treat it like any other credential: one per machine, in the config file rather than in a prompt, and rotate it if it lands anywhere public. Our setup page has a per-agent copy of these with your own key filled in once you are signed in.

## Questions people ask

**How do I add an MCP server to Claude Code?**

claude mcp add --transport http <name> <url>, with --header for an API key if the server needs one. Run it from the project you want the server in.

**Where is Cursor's MCP config?**

~/.cursor/mcp.json, in the mcpServers object. Keep any servers already there and restart Cursor afterwards.

**Why doesn't my agent see the server?**

Usually it has not re-read the config: restart it. If it connects but lists no tools, the API key is the problem, not the file.

**Should I paste my API key into the chat?**

No. Put it in the config file. Anything in a chat is in the transcript, and transcripts get shared.

## Sources

- [MCP, Claude Code docs](https://code.claude.com/docs/en/mcp)
- [MCP, Codex docs](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)
- [MCP, Cursor docs](https://cursor.com/docs/context/mcp)
- [MCP configuration, VS Code docs](https://code.visualstudio.com/docs/agents/reference/mcp-configuration)
- [MCP configuration, Devin docs, which Windsurf's docs now point to](https://docs.devin.ai/cli/extensibility/mcp/configuration.md)

---

Canonical HTML version: https://plagio.dev/blog/install-a-design-mcp-in-any-agent
Every article: https://plagio.dev/blog
