# Connect Your Client

ChatGPT is the recommended starting point because Longbridge is available directly in ChatGPT Plugins. For other MCP clients, configuration format may vary across client versions; treat your client's official MCP documentation as the source of truth.

All clients connect to the same endpoint — `https://mcp.longbridge.com` (or `https://mcp.longbridge.cn` for faster access from Mainland China; see [Overview](/docs/mcp)).

:::tip Which clients can trade?
The ChatGPT App and the Claude directory connector are read-only: they cover market data, research, and account queries but not order placement. To place, modify, or cancel orders, connect a client directly to the MCP endpoint — Claude Code, Codex, Cursor, Zed, and others. See [Trade with AI](/docs/mcp/trading).
:::

## ChatGPT

Longbridge is available as an official ChatGPT App.

On ChatGPT web, desktop, or mobile:

1. Open **Plugins**
2. Search for `longbridge`, or open the [Longbridge ChatGPT App](https://chatgpt.com/plugins/longbridge) directly
3. Select **Longbridge** and complete the authorization login

![Search for Longbridge in ChatGPT Plugins](https://assets.lbkrs.com/uploads/aeb84040-b2c7-442d-af46-adfab66297a1/scr-20260707-nbjr.png)

![Authorize the Longbridge ChatGPT App](https://assets.lbkrs.com/uploads/a66bcd75-d747-4259-b684-a689d324716c/scr-20260707-nbno.png)

After authorization, prefix every message with `@longbridge` to send it to Longbridge MCP — for example: `@longbridge check my today's orders`. Without this prefix, ChatGPT will not route your question to Longbridge.

:::warning Trading features unavailable in ChatGPT
Due to ChatGPT platform policies, the Longbridge ChatGPT App does not include order placement and other trading tools. To use trading features, switch to Claude Code, Cursor, or another MCP client.
:::

## Claude

Longbridge is available as an official connector in Claude's directory.

On [Claude](https://claude.ai) web or Claude Desktop:

1. Click **Customize** → **Connectors**, then click the **Add** button
2. Select **Browser Connectors** from the dropdown and search for `longbridge`
3. Select **Longbridge** and complete the authorization login

Or open the [Longbridge connector](https://claude.ai/directory/longbridge) directly.

## Claude Code

Run the following command in your terminal:

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

Then open the `claude` terminal interface, type `/mcp`, select `longbridge`, and choose **Authenticate** to complete the OAuth authorization flow.

## Codex

Run the following command in your terminal:

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

Then follow the OAuth authorization flow in Codex when prompted.

### Codex Desktop

1. Click **Settings** (bottom right) → **MCP Servers** → **Add Server**
2. In the "Connect to a custom MCP" screen, fill in:
   - Name: `longbridge`
   - Type: **Streamable HTTP**
   - URL: `https://mcp.longbridge.com`
   - Leave all other fields empty
3. Click **Save**
4. Back in the MCP Servers list, click **Authenticate** on the `longbridge` entry to complete OAuth authorization

## Gemini CLI

Run the following command in your terminal:

```bash
gemini mcp add --transport http longbridge https://mcp.longbridge.com -s user
```

Then start `gemini` and run `/mcp` to confirm `longbridge` is connected, authorizing in the browser if prompted.

To edit the config by hand instead, add this under `mcpServers` in `~/.gemini/settings.json` — note the key is `httpUrl`, not `url` (Gemini CLI treats `url` as an SSE endpoint, and the connection will fail):

```json
{
  "mcpServers": {
    "longbridge": {
      "httpUrl": "https://mcp.longbridge.com"
    }
  }
}
```

## opencode

Run the following command in your terminal:

```bash
opencode mcp add longbridge --url https://mcp.longbridge.com --global
```

Run `opencode mcp list` to confirm it registered. To edit the config by hand instead, add this to `opencode.json`:

```json
{
  "mcp": {
    "servers": {
      "longbridge": {
        "type": "remote",
        "url": "https://mcp.longbridge.com"
      }
    }
  }
}
```

## OpenClaw

Run the following command in your terminal:

```bash
openclaw mcp add longbridge --url https://mcp.longbridge.com --transport streamable-http
```

Run `openclaw mcp doctor longbridge --probe` to verify the connection. You can also add it from the Control UI under **Settings** → **MCP**, choosing **Streamable HTTP** and entering the URL.

## Warp

1. Open **Settings** → **Agents** → **MCP servers**
2. Click **+ Add** and choose **Streamable HTTP or SSE Server (URL)**
3. Enter `https://mcp.longbridge.com` and save, then complete the OAuth authorization

## Grok

Open [Grok Connectors](https://grok.com/connectors) and add a custom MCP server:

1. In the left sidebar, go to **Skills and Connectors** → **Connectors** → **New Connector** → **Custom**
2. Fill in:
   - Name: `Longbridge`
   - Server URL: `https://mcp.longbridge.com`
3. Click **Add Connector** and follow the Longbridge OAuth 2 authorization flow to complete the setup

![](https://assets.lbkrs.com/uploads/08d07992-5463-4bfd-a4e4-97fab6e9cb41/grok-0.png)

![](https://assets.lbkrs.com/uploads/56eee753-f3d4-4186-b024-ee0145f4eb54/grok-1.png)

## Cursor

Settings → MCP Servers → Add Remote MCP Server, then enter `https://mcp.longbridge.com`.

## Zed

Add the following to your `settings.json` under the `context_servers` key (key name is customizable):

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

## Cherry Studio

Settings → MCP Servers → Add, then enter `https://mcp.longbridge.com`.

## Manus

In Manus, open the **Plugins** window, click the **Create** button on the right side, and select **Import MCP by JSON** from the menu. Paste the following JSON to complete the import:

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

![](https://assets.lbctrl.com/uploads/f3aa3f71-c7a1-48b3-91dc-ea82a7018b53/scr-20260625-ttzy.png)

## Next steps

- Learn how the [OAuth authorization flow](/docs/mcp/authorization) works, or use an Agent Auth Code if your client can't open a browser
- Browse all [available tools](/docs/mcp/tools)