Longbridge

by longbridge

Not rated
GitHub Website SSE

About

US/HK markets — 110 tools: real-time quotes, options, orders, fundamentals, alerts, DCA & portfolio

Details

Author
longbridge
Categories
Remote MCP, Productivity, Finance, Other, API

Setup

Install Longbridge in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/longbridge/longbridge-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Official MCP server for theLongbridgebrokerage.163 toolsacross real-time quotes, options, order routing, fundamentals, analyst ratings, calendars, IPO, price alerts, DCA plans, grid trading, portfolio analytics and community sharelists — coveringUS and HK markets. Built with Rust usingrmcpandaxum.

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.

- 163 tools, one endpoint— quotes, options, order routing, fundamentals, analyst research, screeners, IPO, alerts, DCA, grid trading and portfolio analytics acrossUS and HK markets.
- Stateless by design— every request forwards its Bearer token straight to the Longbridge SDK. No sessions, no database, nothing stored server-side.
- OAuth 2.1, auto-discovered— RFC 9728 protected-resource and RFC 8414 authorization-server metadata; clients complete the flow with no token to paste.
- Clean, typed responses— snake_case fields, RFC 3339 timestamps, human-readable symbols, and typedoutputSchemadescriptors for compatible clients.

Longbridge runs a hosted endpoint athttps://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 mcp add --transport http longbridge https://mcp.longbridge.com

Claude Desktop— add toclaude_desktop_config.json, then restart:

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

Cursor · Cline · Windsurf · Zed · other clients— point them athttps://mcp.longbridge.comwith transportstreamable-http.

# Local self-hosted instance (see Self-hosting below) claude mcp add --transport http longbridge-local http://localhost:8000/mcp claude mcp list # registered servers claude mcp get longbridge # config + auth status claude mcp remove longbridge # unregister claude mcp logout longbridge # re-trigger OAuth after revocation

On first use, the client reads theWWW-Authenticatechallenge, 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.

Prefer your own instance? Run the published image:

docker run -p 8443:8443 \ -v /path/to/certs:/certs:ro \ ghcr.io/longbridge/longbridge-mcp \ --bind 0.0.0.0:8443 \ --base-url https://mcp.example.com \ --tls-cert /certs/cert.pem \ --tls-key /certs/key.pem

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.

Config lives at~/.longbridge/mcp/config.json(override the directory withLONGBRIDGE_MCP_CONFIG_DIR). CLI flags take precedence. Whentls_certandtls_keyare both set the server runs HTTPS, otherwise HTTP;base_urldefaults tohttps://localhost:{port}with TLS orhttp://localhost:{port}without.

Advanced environment variables — most deployments never touch these; they exist for non-production Longbridge environments and SDK debugging.

MCP requests and responses carry customer data — cash balances, positions, order history — and upstream SDK frames carry access tokens. None of it belongs in a log file, so the server caps the log targets that would print it, independent ofRUST_LOG:

So raising verbosity is safe:RUST_LOG=debug(ortrace) gives you the server's own logs without leaking customer data. Two switches defeat this, both off by default —LONGBRIDGE_MCP_LOG_PAYLOADS=1(removes the caps; use only against a test account locally) andLONGBRIDGE_LOG_PATH(makes the SDK write unfiltered bodies to that directory; the server warns at startup when set).

The server expects a Longbridge OAuth access token inAuthorization: Bearer <token>. On missing or invalid auth it returns401with aWWW-Authenticateheader pointing to the protected-resource metadata, which directs clients to the Longbridge OAuth authorization server.

Prometheus metrics:mcp_tool_calls_total(counter),mcp_tool_call_duration_seconds(histogram), andmcp_tool_call_errors_total(counter) — each labelled bytool_name.

cargo +nightly fmt # format cargo clippy # lint cargo test # test

Longbridge runs an official remote MCP server — connect over a hosted URL instead of installing this one locally.

Real-time sports card pricing, market analysis, arbitrage detection, grading ROI, investment advice, and player stats (NBA/NFL/MLB). 9 tools for AI agents helping collectors and investors.

The official Unusual Whales API and MCP Server gives you 100+ endpoints for options flow, dark pool, congressional trading, Greek exposure, volatility, and more. Connect via REST, WebSocket, Kafka, or MCP.

Real-time and historical FX/crypto signal API for AI agents. Pay-per-call via x402 protocol on Base. No subscription, no API key. Correlation, regime, momentum, volatility across 10 instruments.

Interact with Ramp's Developer API to run analysis on your spend and gain insights leveraging LLMs

WunderTrading MCP connects AI agents to live crypto trading execution on 20+ supported exchanges through a single MCP integration. Use it to turn AI-driven signals, market analysis, sentiment, screenshots, and custom strategy logic into real trades on exchanges including Binance, Bybit, Coinbase, Bitget, OKX, KuCoin, Hyperliquid, and BingX. Supports MCP and REST API workflows for order execution, trade management, and AI-powered automation.

Free MCP server that gives AI real-time candlestick charts for forex, crypto, commodities and indices. 34 symbols, 6 timeframes, updated every minute.

Access real-time Indian options market data and volatility analytics. Analyze IV, RV, VRP, and skew with automated token management and percentile-based filtering tools.

Provides real-time currency conversion and exchange rate data using the Frankfurter API.

Exposes portfolio tracking tools for AI clients.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.