Brokerage MCP server offering 148 tools for US/HK market data, trading, portfolio analytics, and OAuth 2.1 authentication.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Longbridge MCP.
Official MCP server for the Longbridge brokerage. 163 tools across real-time quotes, options, order routing, fundamentals, analyst ratings, calendars, IPO, price alerts, DCA plans, grid trading, portfolio analytics and community sharelists β covering US and HK markets. Built with Rust using rmcp and axum.
Longbridge is officially listed in the ChatGPT Apps directory and the Claude Connectors directory.
Talk to the markets in plain language β quotes, options, fundamentals, and your own portfolio β
with no config files to edit and no tokens to paste.
| Add it in one place | Then just ask | |
|---|---|---|
| ChatGPT | Settings β Apps & Connectors β add Longbridge | "How's NVDA trading today?" Β· "Show my HK positions" |
| Claude | Settings β Connectors β add Longbridge (web Β· desktop Β· mobile) | "Compare AAPL and MSFT valuations" Β· "Any IPOs this week?" |
Sign in once with your Longbridge account. Every request runs over the same hosted, OAuth 2.1βsecured endpoint documented below β read-only market data plus full account, portfolio, and trading tools, all gated by your own credentials.
Built in Rust with rmcp and axum.
Every tool accepts an optional _jq string in its arguments. The expression runs
on the complete returned JSON, after the normal response serialization. The _jq
name is reserved for response filtering to avoid conflicts with business parameters.
Usage guidance is sent once in the MCP initialize response's instructions;
each tool schema declares only the optional parameter name and type.
For example:
Use .data[:5] to take the first five entries of a data array,
.data | map(select(.price > 10)) to select rows, or {total: .total} to
project fields. Expressions use the embedded jaq
engine's jq-compatible syntax; no separate jq executable is needed.
_jq (or pass null) to preserve the original response.[]. Scalars and arrays are JSON text; objects also appear in
structuredContent, containing only the filtered fields.Because filters can change the response shape, tools do not advertise a fixed
outputSchema. Original typed schemas remain available through resources/list
and resources/read at lb://tools/{tool-name}/output-schema for schema-backed tools.
Longbridge runs a hosted endpoint at https://mcp.longbridge.com β point any MCP client at it and complete OAuth when prompted. Authorization is auto-discovered via RFC 9728; there is no token to paste.
Claude Code
Claude Desktop β add to claude_desktop_config.json, then restart:
Cursor Β· Cline Β· Windsurf Β· Zed Β· other clients β point them at https://mcp.longbridge.com with transport streamable-http.
On first use, the client reads the WWW-Authenticate challenge, fetches /.well-known/oauth-protected-resource (RFC 9728), and opens your browser for the Longbridge OAuth flow. Tokens are cached per session and refreshed automatically.
Twenty categories spanning market data, trading, research and account management.
| Category | Count | Coverage |
|---|---|---|
| Quote | 32 | Real-time and historical quotes, candlesticks, depth, brokers, options, warrants, watchlists, capital flow, market temperature, short positions, option volume |
| Fundamental | 33 | Financial statements/reports, business segments, institutional views, industry peers/valuation, dividends, EPS forecasts, valuations & valuation comparison, company info/executives, shareholders, corporate actions, operating metrics |
| Trade | 14 | Order submission/cancellation/replacement, positions, balance, executions, cash flow, margin |
| Market | 15 | Market status, industry/top-mover rank, broker holdings, A/H premium, trade statistics, anomalies, short trades/margin, index constituents |
| DCA | 9 | Dollar-cost averaging plan create/update/pause/resume/stop, execution history, statistics, support check |
| Grid | 11 | Grid trading order submit/replace/cancel/suspend/restart, list/detail/trigger-history reads, per-symbol setup info, one-time strategy consent |
| Sharelist | 8 | Community sharelist CRUD, member add/remove/sort, popular lists |
| IPO | 7 | IPO subscriptions, calendar, listed stocks, order detail, profit/loss analysis |
| Content | 7 | News list/detail, discussion topic CRUD and replies |
| Alert | 5 | Price alert CRUD (add, delete, enable, disable, list) |
| Screener | 5 | Stock screener search, indicators, strategy recommendation/management |
| Portfolio | 4 | Exchange rates, profit/loss analysis (summary, detail, realized) |
| ATM | 3 | Bank cards, withdrawal records, deposit records |
| Macrodata | 2 | Macroeconomic indicator list and detail |
| Search | 2 | News search, community topic search |
| Statement | 2 | Account statement listing and export |
| Calendar | 1 | Finance calendar (earnings, dividends, IPOs, macro data, closures) |
| Quant | 1 | Run a quant indicator script against historical K-line data |
| Authenticate | 1 | OAuth code exchange for clients that can't complete a browser redirect |
| Utility | 1 | Current UTC time |
Prefer your own instance? Run the published image:
Set
--base-urlto your externally reachable URL on any public deployment β it is published in the OAuth metadata clients use to discover the authorization server. It defaults tohttp://localhost:{port}, which remote clients cannot use.
Or build from source: cargo build --release && ./target/release/longbridge-mcp.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/longbridge-longbridge-mcp)<a href="https://allmcps.com/mcp/longbridge-longbridge-mcp"><img src="https://allmcps.com/api/badge/longbridge-longbridge-mcp?style=directory" alt="Longbridge MCP on AllMCPs" /></a>