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

# Use Polymet from your coding agent

> Set up the Polymet MCP server in Claude Code, Claude, Cursor or VS Code.

The Polymet MCP server lets a coding agent like Claude Code or Cursor work in Polymet for you. It can create a project, send a prompt, wait for the Polymet Agent to finish, and read the code back, while you watch the result on the canvas.

Prompts sent this way spend your organization's credits, the same as prompts you type in Polymet. See [How credits work](https://docs.polymet.ai/plans/credits.md).

![The Polymet MCP server page in Settings, with the server URL and the setup steps](https://mintcdn.com/polymet/TfIzLh80_L4bW9xQ/images/docs/mcp/mcp-settings.png?fit=max\&auto=format\&n=TfIzLh80_L4bW9xQ\&q=85\&s=4df380f80bf6d921074dd6f41b099c88)

## Find your set-up steps

1. Open the profile menu and click **Settings**.
2. Click **Polymet MCP server**.
3. Under **Connect your client**, pick **Claude Code**, **Claude**, **Cursor** or **VS Code**. Each tab has a copy button for its command and config.

The server URL is the same for every client:

```text theme={null}
https://polymet.ai/api/mcp
```

## Claude Code

Run this in your terminal, then sign in to Polymet in the browser window that opens:

```bash theme={null}
claude mcp add --transport http polymet https://polymet.ai/api/mcp
```

To share the server with everyone on a repository, add this file as `.mcp.json` at the repository's root:

```json theme={null}
{
  "mcpServers": {
    "polymet": {
      "type": "http",
      "url": "https://polymet.ai/api/mcp"
    }
  }
}
```

## Claude

1. In Claude Desktop or on claude.ai, open Settings, then Connectors. The **Open Connectors** button on the settings page takes you there.
2. Add Polymet as a custom connector, using the server URL above.

To set it up by hand, put the same config as above in `claude_desktop_config.json` and restart Claude.

## Cursor

1. Click **Add to Cursor**. Cursor opens with Polymet filled in.
2. Approve it and sign in.

To set it up by hand, put this in `~/.cursor/mcp.json` for every project, or `.cursor/mcp.json` for one project, then reload Cursor. If the file already has an `mcpServers` object, add `"polymet"` inside it instead of starting a second one.

```json theme={null}
{
  "mcpServers": {
    "polymet": {
      "url": "https://polymet.ai/api/mcp"
    }
  }
}
```

## VS Code

Run this to add Polymet to your user profile, then sign in to Polymet in your browser:

```bash theme={null}
code --add-mcp '{"name":"polymet","type":"http","url":"https://polymet.ai/api/mcp"}'
```

Inside VS Code, `MCP: Add Server` in the Command Palette does the same. To set it up by hand, paste this into `.vscode/mcp.json` or your user-level server config:

```json theme={null}
{
  "servers": {
    "polymet": {
      "type": "http",
      "url": "https://polymet.ai/api/mcp"
    }
  }
}
```

## What to ask for

Ask your coding agent for something you want to see, and say to use Polymet:

```text theme={null}
Use Polymet to prototype a settings page with tabs for Profile, Billing and Notifications, then send me the canvas link.
```

Your coding agent shares the canvas link, and you keep refining the design in Polymet. If the Polymet Agent stops to ask you something, like approving a database change, answer it on the canvas.

## Related

* [What your agent can do](https://docs.polymet.ai/mcp/tools.md) — every tool the Polymet MCP server offers
* [Integrations, connectors and the MCP server](https://docs.polymet.ai/connectors/how-connections-differ.md) — how this differs from agent connectors
* [How credits work](https://docs.polymet.ai/plans/credits.md) — what a prompt costs


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