Futu Stock

v1.0.0Finance & Fintechstable

mcp server for futuniuniu stock

futu-stockmcpai-integration
Share:
66
Stars
0
Downloads
0
Weekly
0/5

What is Futu Stock?

Futu Stock is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for futuniuniu stock

mcp server for futuniuniu stock

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • mcp server for futuniuniu stock

Use Cases

Access Futu stock market data and quotes.
Query stock information for trading analysis.
Retrieve real-time stock prices via MCP.
shuizhengqi1

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx futu-stock

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Futu Stock

The Futu Stock MCP Server connects AI assistants directly to the Futu OpenD gateway, enabling real-time access to Hong Kong and US stock market data, order book information, K-line history, and optional order placement through natural language. It works alongside the Futu OpenD desktop client which must be running locally, acting as a bridge between MCP-enabled AI tools and Futu's institutional-grade market data feed. Traders and quantitative analysts use it to query live quotes, analyze options chains, and monitor portfolio positions without leaving their AI workflow.

Prerequisites

  • Python 3.10 or later installed
  • An active Futu NiuNiu account with OpenAPI permissions enabled (apply in the Futu app settings)
  • Futu OpenD desktop client installed and running (provides the local API gateway at 127.0.0.1:11111 by default)
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Enable OpenAPI in your Futu account

In the Futu NiuNiu mobile or desktop app, go to Settings > OpenAPI and apply for API access. Once approved, download and install the OpenD client from Futu's developer portal.

2

Start Futu OpenD

Launch the Futu OpenD application. It listens on 127.0.0.1:11111 by default and must be running before the MCP server can connect.

3

Install the MCP server

Install the futu-stock-mcp-server package using pipx for an isolated installation that puts the futu-mcp-server binary on your PATH.

pipx install futu-stock-mcp-server
4

Configure your MCP client

Add the server to your MCP client configuration. Set FUTU_TRADE_ENV to SIMULATE to use the paper trading environment initially, or REAL for live trading (FUTU_ENABLE_TRADING must also be 1 for live orders).

{
  "mcpServers": {
    "futu-stock": {
      "command": "futu-mcp-server",
      "env": {
        "FUTU_HOST": "127.0.0.1",
        "FUTU_PORT": "11111",
        "FUTU_TRADE_ENV": "SIMULATE",
        "FUTU_TRD_MARKET": "HK",
        "FUTU_ENABLE_POSITIONS": "1",
        "FUTU_ENABLE_TRADING": "0"
      }
    }
  }
}
5

Restart your MCP client and verify

Restart Claude Desktop or your IDE. Ask the assistant to fetch a stock quote to confirm the connection to OpenD is working.

Futu Stock Examples

Client configuration

Minimal Claude Desktop config connecting to a local Futu OpenD in simulation mode for Hong Kong equities.

{
  "mcpServers": {
    "futu-stock": {
      "command": "futu-mcp-server",
      "env": {
        "FUTU_HOST": "127.0.0.1",
        "FUTU_PORT": "11111",
        "FUTU_TRADE_ENV": "SIMULATE",
        "FUTU_TRD_MARKET": "HK",
        "FUTU_SECURITY_FIRM": "FUTUSECURITIES",
        "FUTU_ENABLE_POSITIONS": "1",
        "FUTU_ENABLE_TRADING": "0",
        "FUTU_DEBUG_MODE": "0"
      }
    }
  }
}

Prompts to try

These prompts show how to query market data, historical prices, and options information through the Futu MCP server.

- "Get the current stock quote for Tencent (HK.00700)."
- "Show me the daily K-line data for HK.00700 from 2024-01-01 to 2024-03-31."
- "What are the current bid and ask prices in the order book for HK.09988?"
- "Subscribe to real-time quotes for HK.00700 and HK.00005."
- "Show me the options chain for AAPL expiring next month."

Troubleshooting Futu Stock

Connection error: cannot reach OpenD at 127.0.0.1:11111

Ensure the Futu OpenD desktop application is running and logged in. If you changed the default port in OpenD settings, update FUTU_PORT in your MCP config to match.

OpenAPI permission denied error

OpenAPI access requires explicit approval from Futu. Check the OpenAPI section in your Futu NiuNiu app to confirm the application status. Approval can take 1-2 business days.

futu-mcp-server command not found

After 'pipx install futu-stock-mcp-server', ensure the pipx bin directory (~/.local/bin on Linux/macOS) is on your PATH. Run 'pipx ensurepath' to add it automatically.

Frequently Asked Questions about Futu Stock

What is Futu Stock?

Futu Stock is a Model Context Protocol (MCP) server that mcp server for futuniuniu stock It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Futu Stock?

Follow the installation instructions on the Futu Stock GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Futu Stock?

Futu Stock works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Futu Stock free to use?

Yes, Futu Stock is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "futu-stock": { "command": "npx", "args": ["-y", "futu-stock"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Futu Stock?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides