Releases: longportapp/openapi
longport-mcp v0.2.1
What's Changed
- Add
readonly
option to prevent submitting orders to the exchange. - Add support market temperature api.
Installation
For macOS and Linux (Debain), you can run this script to install:
curl -sSL https://raw.githubusercontent.com/longportapp/openapi/refs/heads/main/mcp/install | bash
Full Changelog: longport-mcp-0.2.0...longport-mcp-0.2.1
longport-mcp v0.2.0
What's Changed
- Fixed compatibility with the latest MCP protocol.
- Add support Streamable-HTTP transport.
Installation
For macOS and Linux (Debain), you can run this script to install:
curl -sSL https://raw.githubusercontent.com/longportapp/openapi/refs/heads/main/mcp/install | bash
Full Changelog: longport-mcp-0.1.0...longport-mcp-0.2.0
longport-mcp v0.1.0
LongPort MCP
LongPort-MCP
is an MCP server implementation for LongPort OpenAPI
Features
- Trading - Create, amend, cancel orders, query today’s/past orders and transaction details, etc.
- Quotes - Real-time quotes, acquisition of historical quotes, etc.
- Portfolio - Real-time query of the account assets, positions, funds
Installation
macOS or Linux
Run script to install:
curl -sSL https://raw.githubusercontent.com/longportapp/openapi/refs/heads/main/mcp/install | bash
Windows
Download the latest binary from the Releases page.
Running on Cursor
To configure LongPort MCP in Cursor:
- Open Cursor Settings
- Go to Features > MCP Servers
- Click
+ Add New MCP Server
- Enter the following:
- Name:
longport-mcp
(or your preferred name) - Type:
command
- Command:
env LONGPORT_APP_KEY=your-app-key LONGPORT_APP_SECRET=your-app-secret LONGPORT_ACCESS_TOKEN=your-access-token longport-mcp
- Name:
If you are using Windows, replace command with cmd /c "set LONGPORT_APP_KEY=your-app-key && set LONGPORT_APP_SECRET=your-app-secret && set LONGPORT_ACCESS_TOKEN=your-access-token && longport-mcp"
Running on Cherry Studio
To configure LongPort MCP in Cherry Studio:
- Go to Settings > MCP Servers
- Click
+ Add Server
- Enter the following:
- Name:
longport-mcp
(or your preferred name) - Type:
STDIO
- Command:
env LONGPORT_APP_KEY=your-app-key LONGPORT_APP_SECRET=your-app-secret LONGPORT_ACCESS_TOKEN=your-access-token longport-mcp
- Name:
If you are using Windows, replace command with cmd /c "set LONGPORT_APP_KEY=your-app-key && set LONGPORT_APP_SECRET=your-app-secret && set LONGPORT_ACCESS_TOKEN=your-access-token && longport-mcp"
Running as a SSE server
env LONGPORT_APP_KEY=your-app-key LONGPORT_APP_SECRET=your-app-secret LONGPORT_ACCESS_TOKEN=your-access-token longport-mcp --sse
Default bind address is 127.0.0.1:8000
, you can change it by using the --bind
flag:
longport-mcp --sse --bind 127.0.0.1:3000