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.

What this does

longportapp/openapi exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation. That makes it useful when you want Claude to reach into external HTTP APIs without copy-pasting context every turn.

Requirements

This server needs the following environment variables to be set before it can run:

LONGBRIDGE_APP_KEY
LONGBRIDGE_APP_SECRET
LONGBRIDGE_ACCESS_TOKEN

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Common use cases

  • Call REST or GraphQL endpoints against an authenticated upstream service
  • Translate between Claude's natural-language requests and a structured API
  • Compose several API calls in a single Claude turn (read user → fetch order → annotate)