How to connect Longbridge MCP to Claude Cowork

Connect Claude Cowork to Longbridge MCP. Get real-time prices for aapl, list recent trades in your portfolio, and more using natural language, with authentication handled for you.

Longbridge MCP logoLongbridge MCP
Dcr Oauth

Longbridge MCP is Longbridge's OpenAPI for market data, accounts, and trading. It provides secure, standardized access to market and account information.

162 Tools

Introduction

Cowork is Anthropic's AI agent for knowledge work. Think of it as Claude Code for everything else. It works autonomously with your computer, local files, and applications to accomplish complex tasks.

This guide walks you through the easiest and most secure way to connect your Longbridge account to Cowork via Composio Connect, enabling it to get real-time prices for AAPL, list recent trades in your portfolio, place a market order for 100 TSLA, and more such actions on your behalf without compromising your account security.

Also integrate Longbridge MCP with

Connecting Longbridge to Claude Cowork

1. Open Customize

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

2. Add the Composio MCP server

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

3. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Cowork

4. Connect your Longbridge account

Back in Cowork, ask the agent to connect to Longbridge or give it any Longbridge-related task.

For example, ask Cowork to:

  • "Get real-time prices for AAPL"
  • "List recent trades in your portfolio"
  • "Place a market order for 100 TSLA"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Cowork, and your Longbridge account is ready to use.

What is Claude Cowork?

Claude Cowork is Anthropic's agent for general knowledge work. It can use your computer, files, and connected applications to complete longer-running tasks across your work tools.

With Composio Connect, Cowork can securely access apps like Longbridge through MCP without you sharing account credentials directly with the agent.

What is the Longbridge MCP server, and what's possible with it?

The Longbridge MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Longbridge account. It provides structured and secure access so your agent can perform Longbridge operations on your behalf.

TOOLS

Supported Tools

Every Longbridge MCP action and event your agent gets out of the box.

Account balance

Get account cash balance and asset summary.

Ah premium

Get A/H share premium historical K-line data.

Ah premium intraday

Get A/H share premium intraday time-share data.

Alert add

Add a price alert.

Alert delete

Delete a price alert by alert_id (numeric string from alert_list).

Alert disable

Disable a price alert by alert_id.

Alert enable

Enable a price alert by alert_id.

Alert list

Get all configured price alerts.

Anomaly

Get market anomaly alerts (unusual price/volume changes).

Bank cards

List linked withdrawal bank cards for the current account.

Broker holding

Get top broker holding data for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).

Broker holding daily

Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).

Broker holding detail

Get full broker holding detail list for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).

Brokers

Get broker queue (HK stocks only).

Business segments

Get current-period business segment revenue breakdown for a symbol (name, percent, total, currency)

Business segments history

Get historical business segment revenue trends (by period and category).

Calc indexes

Calculate financial indexes for symbols.

Cancel order

Cancel an open order by order_id.

Candlesticks

Get candlestick data (OHLCV).

Capital distribution

Get capital distribution for a symbol.

Capital flow

Get capital inflow/outflow time series.

Cash flow

Get cash flow records (deposits, withdrawals, dividends).

Company

Get company overview.

Consensus

Get financial consensus estimates for upcoming periods.

Constituent

Get the constituents of an index or the asset allocation of an ETF.

Corp action

Get corporate actions (splits, buybacks, name changes).

Create watchlist group

Create a new watchlist group.

Dca check

Check whether given symbols support DCA recurring investment.

Dca create

Create a DCA recurring investment plan.

Dca history

Get execution history records for a DCA plan by plan_id.

Dca list

List DCA recurring investment plans.

Dca pause

Pause (suspend) a DCA plan by plan_id.

Dca resume

Resume a suspended DCA plan by plan_id.

Dca stats

Get DCA investment statistics.

Dca stop

Permanently stop a DCA plan by plan_id.

Dca update

Update an existing DCA plan by plan_id.

Delete watchlist group

Delete a watchlist group by id (numeric).

Deposits

List deposit history for the current account.

Depth

Get order book depth for a symbol.

Dividend

Get dividend history for the symbol.

Dividend detail

Get detailed dividend distribution scheme.

Estimate max purchase quantity

Estimate maximum buy/sell quantity for a symbol.

Exchange rate

Get exchange rates for all supported currencies.

Executive

Get company executive and board member information.

Filings

Get regulatory filings (8-K, 10-Q, 10-K, etc.

Finance calendar

Finance calendar by category: report (earnings) / dividend / split / ipo / macrodata (CPI, NFP, rates) / closed (holidays).

Financial report

Get financial reports (income statement, balance sheet, cash flow).

Financial report latest

Get the latest financial report summary for a security.

Financial report snapshot

Get financial report snapshot: report_desc (text summary), fo_revenue/fo_ebit/fo_eps (actual vs forecast with yoy/cmp), fr_* financial ratios (ROE, margins, assets, cash flow).

Financial statement

Get financial statements (income statement, balance sheet, or cash flow) for a security.

Forecast eps

Get EPS forecast and analyst estimate history.

Fund holder

Get funds and ETFs that hold a given symbol.

Fund positions

Get current fund positions.

Grid cancel

Cancel (terminate) a grid order by order_id.

Grid detail

Full detail for one grid order: rule parameters, status, embedded child orders (grid_sub_orders) and lifecycle history (grid_order_history).

Grid list

List grid trading orders.

Grid list by ids

Fetch specific grid orders by their IDs.

Grid questionnaire

Record the one-time grid strategy risk-disclosure consent required before submitting grid orders.

Grid replace

Replace an existing grid order's rule by order_id.

Grid restart

Restart (resume) a suspended grid order by order_id.

Grid submit

Submit a grid trading order.

Grid suspend

Suspend (pause) a running grid order by order_id.

Grid symbol info

Pre-trade grid setup info for a security (takes a symbol, not an order_id): security name, last price, board lot sizes (buy/sell), price-step (bid_size) table, and channel/authorization info (strategy grant flag, RTH support, supported s.

Grid trigger history

Trigger history for one grid order: each triggered child order with price, quantity, executed price/qty, and trigger time.

History candlesticks by date

Get historical candlestick data by date range.

History candlesticks by offset

Get historical candlestick data by offset from a reference time.

History executions

Get historical trade executions between dates.

History market temperature

Get historical market temperature time series.

History orders

Get historical orders between dates (excludes today).

Industry peers

Hierarchical sub-sector tree for an industry group.

Industry rank

Industry ranking list by market (US/HK/CN/SG) and indicator (0=领涨/1=今日走势/2=人气/3=市值/4=营收/5=营收增长率/6=净利润/7=净利润增长率).

Industry valuation

Get industry valuation comparison for peers.

Industry valuation dist

Get industry PE/PB/PS valuation distribution.

Institutional views

Get monthly institutional rating distribution timeline.

Institution rating

Get institution rating summary.

Institution rating detail

Get detailed historical institution ratings and target price history.

Institution rating history

Get institution rating history.

Institution rating industry rank

Get peers ranked by institution analyst ratings in the same industry.

Intraday

Get intraday minute-by-minute price/volume data.

Invest relation

Get investor relations events and announcements.

Ipo calendar

Show the IPO calendar.

Ipo detail

Show IPO detail for a symbol.

Ipo listed

List recently listed IPO stocks (HK+US).

Ipo order detail

Show detailed information for a specific IPO order by order_id.

Ipo orders

List IPO orders (active+history).

Ipo profit loss

Show IPO profit/loss summary and per-stock breakdown.

Ipo subscriptions

List IPO stocks in subscription/pre-filing stage (HK+US).

Macrodata

Get historical observations for one macro-economic indicator.

Macrodata indicators

List macro-economic indicators.

Margin ratio

Get margin ratio for a symbol.

Market status

Get current market trading status for all markets.

Market temperature

Get current market sentiment temperature.

News

Get latest news articles for a symbol.

News detail

Get one news article's full detail by id (from news/news_search).

News search

Search news articles by keyword.

Now

Get current UTC time as an RFC3339 string (e.

Operating

Get company operating metrics (HK stocks only).

Option chain expiry date list

Get option chain expiry dates for a symbol (e.

Option chain info by date

Get option chain for an expiry date.

Option quote

Get option quotes (max 500 symbols).

Option volume

Get real-time option call/put volume stats for a US stock.

Option volume daily

Get daily historical option stats for a US stock.

Order detail

Get detailed information about a specific order.

Participants

Get HK market participant broker information.

Profit analysis

Get portfolio profit and loss analysis summary.

Profit analysis detail

Get detailed profit and loss analysis for a specific symbol.

Quant run

Run a quant indicator script against historical K-line data on the server.

Quote

Get latest price quotes.

Rank categories

Get rank tab category configurations for the popularity leaderboard.

Rank list

Get ranked stock list by leaderboard tab key.

Replace order

Modify an open order's quantity, price, trigger_price, or trailing params.

Screener indicators

Get all available screener indicator keys with units and default value ranges.

Screener recommend strategies

List platform-preset screener strategies.

Screener search

Screen stocks.

Screener strategy

Inspect a screener strategy's filter conditions before running it.

Screener user strategies

List the current user's saved screener strategies.

Security facts

List a security's fact (catalyst) events — anomaly detections, factor readings, data sources and natural-language summaries — filtered by time range and count.

Security list

Get security list for a market.

Shareholder

Get institutional shareholders for a symbol.

Shareholder detail

Get a single shareholder's holding and trade history.

Shareholder top

Get Top 20 major shareholders (institutions, individuals, insiders) across reporting periods.

Sharelist add

Add securities to a community sharelist by id.

Sharelist create

Create a new community sharelist with a name and optional description.

Sharelist delete

Delete a community sharelist by id (own lists only; subscribed lists cannot be deleted).

Sharelist detail

Get community sharelist detail by id.

Sharelist list

List user's own and subscribed community sharelists.

Sharelist popular

Get popular/trending community sharelists.

Sharelist remove

Remove securities from a community sharelist by id.

Sharelist sort

Reorder securities in a community sharelist by id.

Short margin

Get short margin deposit details for the current account.

Short positions

Get short interest history (open short positions) for HK or US stocks.

Short trades

Get daily short-sale volume history for HK or US stocks.

Signal detail

Get one signal by ID (from `signals`).

Signals

Query strategy signals — a strategy's take on a security, triggered by a catalyst.

Statement export

Get a pre-signed download URL for a statement data file (obtained from statement_list).

Statement list

List available account statements (daily/monthly).

Static info

Get static info for securities.

Stock positions

Get current stock positions across all channels.

Submit order

Submit a buy/sell order.

Today executions

Get today's trade executions (fills).

Today orders

Get orders placed today.

Topic

Get discussion topics for a symbol.

Topic create

Create a new discussion topic.

Topic create reply

Create a reply to a discussion topic.

Topic detail

Get discussion topic detail by topic_id.

Topic replies

Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50)

Topic search

Search community topics/posts by keyword.

Top movers

Get stocks whose price fluctuation exceeds the 20-trading-day standard deviation, with correlated news reasons.

Trades

Get recent trades (max 1000).

Trade stats

Get trade statistics (buy/sell/neutral volume distribution).

Trading days

Get trading days for a market between dates.

Trading session

Get trading session schedule for all markets.

Update watchlist group

Update a watchlist group by id.

Valuation

Get valuation overview with peer comparison.

Valuation comparison

Stock valuation comparison.

Valuation history

Get detailed valuation history time series.

Valuation rank

Get daily valuation rank (PE/PB/PS/dividend yield industry percentile) for a security over a date range.

Warrant issuers

Get HK warrant issuer information.

Warrant list

Get filtered warrant list for an underlying symbol.

Warrant quote

Get warrant quotes.

Watchlist

Get all watchlist groups and their securities.

Withdrawals

List withdrawal history for the current account.

FRAMEWORKS

How to build Longbridge MCP Agent with another framework

FAQ

Frequently asked questions

With a standalone Longbridge MCP server, the agents and LLMs can only access a fixed set of Longbridge tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Longbridge and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Longbridge tools.

Yes, absolutely. You can configure which Longbridge scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Longbridge data and credentials are handled as safely as possible.

Start with Longbridge MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Longbridge MCP tool your agent needs.Free to start.

Start building