> For the complete documentation index, see [llms.txt](https://docs.whalesync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whalesync.com/mcp/setup.md).

# Client setup

Add the Whalesync MCP server to Claude, Claude Code, ChatGPT, Codex, Cursor, VS Code, or any other MCP client.

The server URL is all that a client needs to get started:

```
https://api.whalesync.com/mcp
```

There is no key or secret to put in the config. Authorization is [handled in the browser](#approving-the-connection) when you first connect.

## Claude (web, desktop, and mobile)

Whalesync is in the Claude connectors directory: open [claude.ai/directory/whalesync](https://claude.ai/directory/whalesync) and click **Connect**, or find Whalesync under Settings → Connectors → Browse connectors. Claude opens a browser sign-in to Whalesync on first use.

If your organization restricts directory connectors, you can still add a custom connector with the server URL `https://api.whalesync.com/mcp`. Anthropic's guide: [Get started with custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).

## Claude Code

```bash
claude mcp add --transport http whalesync https://api.whalesync.com/mcp
```

Reference: [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp).

## ChatGPT

Add Whalesync to ChatGPT as a custom MCP server. Do this in ChatGPT on the web:

1. Open [Plugins](https://chatgpt.com/plugins) in ChatGPT's sidebar.
2. Click **+**, then **Add custom MCP server**.
3. Enter `Whalesync` as the name. Under **Connection**, enter `https://api.whalesync.com/mcp`.
4. Under **Authentication**, choose **OAuth**. There is no client ID or secret to enter.
5. Read the warning, check **I understand and want to continue**, and click **Create as a plugin**.
6. ChatGPT opens Whalesync's sign-in. [Approve the connection](#approving-the-connection).
7. Start a new chat, type `@`, pick Whalesync, and ask it something, such as "List my Whalesync syncs."

Things to know:

* **Your ChatGPT plan decides what works.** Custom MCP servers aren't on every plan, and some plans only allow tools that read. If **Add custom MCP server** is missing, or ChatGPT can't create or change anything in Whalesync, check OpenAI's guide for your plan: [Connecting custom MCP servers in ChatGPT](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt).
* **In a workspace, an admin may have to allow it.** On Business, Enterprise, and Edu plans, admins decide who can add a custom MCP server.
* **ChatGPT asks before each change.** It asks you to confirm a tool that creates, edits, or deletes something.
* **New tools need a refresh.** ChatGPT keeps the list of tools from when you added the server. To pick up new ones, open Whalesync under Plugins and click **Refresh**.

Whalesync is no longer offered in ChatGPT's app directory. If you installed it from there, see [ChatGPT directory migration](https://docs.whalesync.com/mcp/chatgpt-migration.md).

## Codex

```bash
codex mcp add whalesync --url https://api.whalesync.com/mcp
```

Or add the server to `~/.codex/config.toml`:

```toml
[mcp_servers.whalesync]
url = "https://api.whalesync.com/mcp"
```

`codex mcp login whalesync` starts the browser sign-in without waiting for first use. Reference: [Model Context Protocol](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) in the Codex docs.

## Grok

In [grok.com/connectors](https://grok.com/connectors), choose **New Connector → Custom** and paste the server URL. Grok opens the browser sign-in when it first connects. xAI's guide: [Connectors](https://grok.com/connectors).

## Cursor

Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` inside a project:

```json
{
  "mcpServers": {
    "whalesync": {
      "url": "https://api.whalesync.com/mcp"
    }
  }
}
```

Reference: [Model Context Protocol](https://cursor.com/docs/mcp) in the Cursor docs.

## VS Code

```bash
code --add-mcp '{"name":"whalesync","type":"http","url":"https://api.whalesync.com/mcp"}'
```

Reference: [Add and manage MCP servers in VS Code](https://code.visualstudio.com/docs/agent-customization/mcp-servers).

## Other clients

Any client that supports remote MCP servers over streamable HTTP works. Add `https://api.whalesync.com/mcp` as a remote server or custom connector. Where a config file is expected, the `mcpServers` JSON shown for Cursor is the common shape.

## Approving the connection

1. The first time the agent uses the server, the client opens your browser to Whalesync's consent page. 
2. The page shows the client's name and the access it requested. You can grant that access or a weaker scope, never a stronger one: a request for `readwrite` can be lowered to `operate` or `read`. See [Scopes](https://docs.whalesync.com/mcp#scopes).
3. Click **Connect**. The browser returns to the client and the agent is connected.

The new connection appears under [Settings → MCP](https://app.whalesync.com/settings/mcp).

## Troubleshooting

* **The agent reports a 401 or an expired authorization**: reconnect from the client. If the connection no longer appears under Settings → MCP, it was revoked, and reconnecting runs consent again.
* **"Connection request has expired"** on the consent page: more than ten minutes passed since the client started the connection. Retry from the client.
