# Connect an AI agent with the MCP server

> Let Claude, Cursor, VS Code or any MCP client manage your pages with a workspace API key.

me.io’s MCP server lets an AI agent create, update and publish your pages and read their analytics and messages.

## Connect

1. Create an API key with **Write** permission: see [Create an API key and call the API](https://support.me.io/developers/create-an-api-key-and-call-the-api).
2. Add the server **https://mcp.me.io/mcp** to your client with your key in the **x-api-key** header. For Claude Code:

```bash
claude mcp add --transport http me-io https://mcp.me.io/mcp --header "x-api-key: <your-api-key>"
```

   The configs for Claude Desktop, Cursor, VS Code and Windsurf are in the [MCP server guide](https://me.io/guides/mcp-server).
3. Ask your agent: “List my pages, then show this week’s views by country.”

## What it can do

- **Read** keys: list and read pages, analytics, visits, messages, domains and activity.
- **Write** and **Admin** keys: also create, update and delete pages.

## Good to know

- A published page is public at once. The agent creates drafts unless you ask it to publish.
- Images can’t be uploaded through the agent yet: upload them in the app.
- A **401** means the key is missing, copied incompletely or disabled: send it in **x-api-key**, not **Authorization**.
- A **429** means you are over your key’s per-minute limit: wait the **Retry-After** seconds.
