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).
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.
ChatGPT
Longbridge is available as an official ChatGPT App.
On ChatGPT web, desktop, or mobile:
- Open Plugins
- Search for
longbridge, or open the Longbridge ChatGPT App directly - Select Longbridge and complete the authorization login


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.
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 web or Claude Desktop:
- Click Customize → Connectors, then click the Add button
- Select Browser Connectors from the dropdown and search for
longbridge - Select Longbridge and complete the authorization login
Or open the Longbridge connector directly.
Claude Code
Run the following command in your terminal:
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:
codex mcp add longbridge --url https://mcp.longbridge.com
Then follow the OAuth authorization flow in Codex when prompted.
Codex Desktop
- Click Settings (bottom right) → MCP Servers → Add Server
- 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
- Name:
- Click Save
- Back in the MCP Servers list, click Authenticate on the
longbridgeentry to complete OAuth authorization
Gemini CLI
Run the following command in your terminal:
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):
{
"mcpServers": {
"longbridge": {
"httpUrl": "https://mcp.longbridge.com"
}
}
}
opencode
Run the following command in your terminal:
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:
{
"mcp": {
"servers": {
"longbridge": {
"type": "remote",
"url": "https://mcp.longbridge.com"
}
}
}
}
OpenClaw
Run the following command in your terminal:
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
- Open Settings → Agents → MCP servers
- Click + Add and choose Streamable HTTP or SSE Server (URL)
- Enter
https://mcp.longbridge.comand save, then complete the OAuth authorization
Grok
Open Grok Connectors and add a custom MCP server:
- In the left sidebar, go to Skills and Connectors → Connectors → New Connector → Custom
- Fill in:
- Name:
Longbridge - Server URL:
https://mcp.longbridge.com
- Name:
- Click Add Connector and follow the Longbridge OAuth 2 authorization flow to complete the setup


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):
{
"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:
{
"mcpServers": {
"longbridge": {
"url": "https://mcp.longbridge.com"
}
}
}

Next steps
- Learn how the OAuth authorization flow works, or use an Agent Auth Code if your client can’t open a browser
- Browse all available tools