---
docId: doc_a64d94ab5ea44451baa21454f9b98a52
title: Install
description: Connect Platic's MCP server to Claude, Claude Code, ChatGPT, Codex, Cursor, VS Code, Antigravity, OpenCode and other clients.
---

<script>
  import { Note, Collapsible, McpGuide, McpClients } from '$lib/components';
</script>

# Install

Choose your client, copy what it shows and authorize in Platic's window. You don't need an API key. If you'd rather have your agent guide you, copy its instructions and paste them into the chat.

<McpClients />

## Claude

On [claude.ai](https://claude.ai) or in the desktop app, open **Plugins → Add → Add custom connector**, enter **Platic**, paste the URL and choose **Add**. Authorize in Platic's window. If Claude says it already exists, find it in Plugins and use **Connect**.

<McpGuide client="claude-browser" />

## Claude Code

Run this command, then open `/mcp`, select **platic** and sign in. If you paste it the instructions, Claude Code does it for you.

```bash
claude mcp add --transport http --scope user platic https://api.platic.ai/mcp
```

<McpGuide client="claude-desktop" />

## ChatGPT

On [chatgpt.com/plugins](https://chatgpt.com/plugins), choose **Add (+) → Add custom MCP server**, enter **Platic**, paste the URL, choose **OAuth** and then **Create as a plugin**. It requires a Business, Enterprise or Edu workspace with permission to create servers.

<McpGuide client="chatgpt" />

## Codex

Run these commands, or in the desktop app open **Settings → MCP servers → Add server** with **Streamable HTTP**. The configuration is shared with ChatGPT desktop and the IDE extension.

```bash
codex mcp add platic --url https://api.platic.ai/mcp
codex mcp login platic
```

<McpGuide client="codex" />

## Cursor

**Install in Cursor** opens Cursor with the server ready. Then, in **Customize → MCP**, choose **Sign in** next to **platic**. If it's missing, open a new chat, choose **+ → MCP** and then **Needs Authorization**.

<McpGuide client="cursor" cursor />

To do it by hand, add this to `~/.cursor/mcp.json`:

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

## VS Code

In the Command Palette, run **MCP: Add Server** (or **Chat: Open Customizations → MCP Servers → Add Server**), choose **HTTP**, paste the URL, use `platic` as the ID and sign in.

<McpGuide client="vscode" />

## Antigravity

Open **MCP Servers → Manage MCP Servers → View raw config**, add this entry and choose **Authenticate**. Antigravity uses `serverUrl`, not `url`.

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

<McpGuide client="antigravity" />

## OpenCode

In OpenCode V2:

```bash
opencode mcp add platic --url https://api.platic.ai/mcp
opencode mcp auth platic
```

<McpGuide client="opencode" />

## Other clients

Your client must support remote servers over Streamable HTTP and OAuth. Add a remote server with the URL and the name `platic`, then follow its sign-in. A client that only runs local (stdio) servers can't connect directly.

<McpGuide client="other" />

| Setting | Value |
|---|---|
| URL | `https://api.platic.ai/mcp` |
| Transport | Streamable HTTP, `POST`, JSON responses (no SSE) |
| Session | Stateless, no `Mcp-Session-Id` |
| Authentication | OAuth 2.1 with PKCE, or `Authorization: Bearer pl_key_…` |

## Use an API key instead of OAuth

For scripts, CI or a client without OAuth, [create a key](/mcp/authentication#api-key) and send it as a Bearer header. Replace the placeholder with your key.

<Collapsible summary="Header examples by client">

Claude Code:

```bash
claude mcp add --transport http --scope user platic https://api.platic.ai/mcp \
  --header "Authorization: Bearer pl_key_YOUR_KEY_ID_YOUR_SECRET"
```

Cursor:

```json
{
  "mcpServers": {
    "platic": {
      "url": "https://api.platic.ai/mcp",
      "headers": { "Authorization": "Bearer pl_key_YOUR_KEY_ID_YOUR_SECRET" }
    }
  }
}
```

VS Code (`.vscode/mcp.json`):

```json
{
  "servers": {
    "platic": {
      "type": "http",
      "url": "https://api.platic.ai/mcp",
      "headers": { "Authorization": "Bearer pl_key_YOUR_KEY_ID_YOUR_SECRET" }
    }
  }
}
```

Codex:

```toml
[mcp_servers.platic]
url = "https://api.platic.ai/mcp"
http_headers = { "Authorization" = "Bearer pl_key_YOUR_KEY_ID_YOUR_SECRET" }
```

Antigravity:

```json
{
  "mcpServers": {
    "platic": {
      "serverUrl": "https://api.platic.ai/mcp",
      "headers": { "Authorization": "Bearer pl_key_YOUR_KEY_ID_YOUR_SECRET" }
    }
  }
}
```

</Collapsible>

<Note type="warning">

Never commit a key to a repository. Keep it in an environment variable or your client's secret store. See [Safety](/mcp/safety).

</Note>

## Response format

Tools return Markdown by default. If you need the API's JSON body, add the `X-Platica-MCP-Format: json` header to the connection.

## Check the connection

Ask your assistant "Which Platic workspaces can you access?". It should call [`list_workspaces`](/mcp/tools#list_workspaces), which only reads, and show what you authorized. Don't send messages or change data to test the installation. If it doesn't work, see [Troubleshooting](/mcp/troubleshooting).
