Longport MCP Server

A Node.js library for Longport Open API

Local serverstdioPython

What is the Longport MCP Server?

A Node.js library for Longport Open API

What you get

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:

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

VariableDescriptionRequired
LONGPORT_APP_KEYCredential the server authenticates with.Yes
LONGPORT_APP_SECRETCredential the server authenticates with.Yes
LONGPORT_ACCESS_TOKENCredential the server authenticates with.Yes
LONGPORT_HTTP_URLEndpoint or connection string the server talks to.Yes
LONGPORT_QUOTE_WS_URLEndpoint or connection string the server talks to.Yes
LONGPORT_TRADE_WS_URLEndpoint or connection string the server talks to.Yes
LONGPORT_LOG_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Longport to Trading.”
  • “Use Longport to Quotes.”
  • “Use Longport to Portfolio.”

Frequently asked questions

A Node.js library for Longport Open API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.