Back to MCP Servers
🔌

longportapp/openapi

Apache-2.0API key required

🐍 ☁️ - LongPort OpenAPI provides real-time stock market data, provides AI access analysis and trading capabilities through MCP.

RustAPIs

Install

npx -y longportapp-openapi

Required environment variables

LONGBRIDGE_APP_KEYSet in your MCP config
LONGBRIDGE_APP_SECRETSet in your MCP config
LONGBRIDGE_ACCESS_TOKENSet in your MCP config

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "longportapp-openapi": {
      "command": "npx",
      "args": [
        "-y",
        "longportapp-openapi"
      ],
      "env": {
        "LONGBRIDGE_APP_KEY": "<YOUR_LONGBRIDGE_APP_KEY>",
        "LONGBRIDGE_APP_SECRET": "<YOUR_LONGBRIDGE_APP_SECRET>",
        "LONGBRIDGE_ACCESS_TOKEN": "<YOUR_LONGBRIDGE_ACCESS_TOKEN>"
      }
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.