Authorization
Longbridge MCP uses standard OAuth 2.1. You never need to paste API keys or tokens into the client.
In ChatGPT, the authorization happens when you add Longbridge from Plugins. In other MCP clients, the first tool call usually starts the browser authorization flow.
OAuth authorization flow
AI client Browser Longbridge
| | |
|--- initiate MCP ------->| |
| |--- redirect to auth ------>|
| |<-- show login & consent ---|
| |--- sign in & approve ------>|
|<-- return credentials --| |
|--- call tools with credentials ----------------------->|
Steps:
- Initiate connection — Adding the Longbridge MCP config and calling a tool for the first time triggers the authorization flow
- Browser redirect — The client opens a browser tab with the Longbridge login and consent page
- Sign in and approve — Log in with your Longbridge account and review and accept the requested permission scopes (see OAuth Scopes). Longbridge US accounts currently have market data tools only
- Session established — After approval, the client receives credentials and MCP tools become available
- Credential maintenance — Credentials are refreshed automatically per OAuth policy. You can remove the authorization in your Longbridge account security settings so it can no longer be renewed; tokens already issued remain valid until they expire
Client compatibility
Longbridge MCP requires clients that fully implement MCP OAuth 2.1. Clients with incomplete support will fail during the authorization flow.
Known issue: early versions of Cherry Studio do not support the full OAuth flow. Please upgrade to the latest release.
If another client fails to connect, check its version and MCP support documentation.
Client can’t open the browser?
If your client has incomplete OAuth support or cannot launch a browser, use an Agent Auth Code instead: generate a one-time code at https://open.longbridge.com/connect, connect to the dedicated endpoint https://mcp.longbridge.com/agent, and have the agent redeem it via the authenticate tool.