Finance · Developer Tools

Longport OpenAPI logo

Longport OpenAPI

longportapp/longport-mcp

Official MCP server for the LongPort brokerage. 145 tools across real-time quotes, options, order routing, fundamentals, analyst ratings, calendars, IPO, price alerts, DCA plans, portfolio analytics and community sharelists — covering US and HK markets. Built with Rust using rmcp and axum.

Install

docker run -p 8443:8443 \

Client configuration

{
  "mcpServers": {
    "longport": {
      "url": "https://mcp.longportapp.com"
    }
  }
}
GitHub stars
5
Category
Finance, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • 145 MCP tools across 13 categories: quotes, trading, fundamentals, screener, market data, calendars, IPO, portfolio, alerts, content, account statements, DCA, and community sharelists

  • Stateless architecture -- each request carries a Bearer token forwarded directly to the LongPort SDK; no server-side sessions or database

  • OAuth 2.1 resource metadata compliant with RFC 9728, pointing clients to LongPort OAuth for authorization

  • JSON response transformation -- field names normalized to snake_case, timestamps converted to RFC 3339, internal counter_id values mapped to human-readable symbols

  • Prometheus metrics for monitoring tool calls, latency, and errors

  • Configurable via CLI arguments or a JSON config file (CLI takes precedence)

Tools (14)

  • Quote

    Real-time and historical quotes, candlesticks, depth, brokers, options, warrants, watchlists, capital flow, market temperature, short positions, option volume

  • Trade

    Order submission/cancellation/replacement, positions, balance, executions, cash flow, margin

  • Fundamental

    Financial statements, business segments, institutional views, industry peers, earnings snapshot, dividends, EPS forecasts, valuations, company info,…

  • Market

    Market status, industry rank, broker holdings, A/H premium, trade statistics, anomalies, index constituents

  • IPO

    IPO subscriptions, calendar, listed stocks, order detail, profit/loss analysis

  • DCA

    Dollar-cost averaging plan create/update/pause/resume/stop, execution history, statistics, and support check

  • Sharelist

    Community sharelist CRUD, member add/remove/sort, popular lists

  • Alert

    Price alert CRUD (add, delete, enable, disable, list)

  • ATM

    Bank cards, withdrawal records, deposit records

  • Portfolio

    Exchange rates, profit/loss analysis with optional date range

  • Search

    News search, community topic search

  • Statement

    Account statement listing and export

  • Calendar

    Finance calendar events (earnings, dividends, IPOs, macro data, market closures)

  • Utility

    Current UTC time

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cline logo

Cline

Desktop · Free · MIT

An AI coding assistant integrated into the IDE. Supports MCP servers for enhanced functionality.

WindowsMacOSLinux
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
Windsurf logo

Windsurf

Desktop · Freemium · Proprietary

The first agentic IDE. The Windsurf editor truly merges how developers and AI work together.

WindowsMacOSLinux

Related MCP servers

More servers
Stripe Agent Toolkit logo

Stripe Agent Toolkit

stripe/agent-toolkit

677

It contains a collection of SDKs to help you integrate Stripe with LLMs and agent frameworks, including.

Finance
Awesome Web3 MCP Servers logo

Awesome Web3 MCP Servers

demcp/awesome-web3-mcp-servers

405

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

Finance
Financial Datasets logo

Financial Datasets

financial-datasets/mcp-server

225

This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.

Finance
lyraios logo

lyraios

GalaxyLLMCI/lyraios

216

LYRAI is a Model Context Protocol (MCP) operating system for multi-AI AGENTs designed to extend the functionality of AI applications (such as Claude Desktop and Cursor) by enabling them to interact with financial networks and blockchain public chains.

Finance
EVM Blockchain logo

EVM Blockchain

mcpdotdirect/evm-mcp-server

216

A comprehensive Model Context Protocol (MCP) server that provides blockchain services across 60+ EVM-compatible networks. This server enables AI agents to interact with Ethereum, Optimism, Arbitrum, Base, Polygon, and many other EVM chains with a unified interface through 22 tools and 10 AI-guided prompts.

Finance
longport logo

longport

longportapp/openapi

206

Longport OpenAPI provides programmatic quote trading interfaces for investors with research and development capabilities and assists them to build trading or quote strategy analysis tools based on their own investment strategies. The functions fall into the following categories.

Finance