← Back to directory
F

Futu Stock MCP Server

Community
Access Futu market, account, and trading features through MCP.
Category
Other #611 of 678
Stars
★ 85 Popular
Transport
stdio (local process)
Runtime
Python 3.10+
Credentials
API key / credential required
License
MIT
Last commit
Tools
37
38FMRS · D

The README lists market data, subscription, options, account, trading, and market information tools and provides a Claude Desktop stdio configuration example. Use depends on a Futu account, OpenAPI access, and OpenD. Trading carries financial risk; the project states it does not provide investment advice.

Strongest · Documentation 9/20 Weakest · Reliability 6/20

Reliability
6/20
Security and permissions
8/20
Maintenance
7/20
Documentation
9/20
Setup experience
8/20
Why each score
Reliability 6/20
The README gives stdio launch instructions, initialization log examples, and many tool examples, which provide some basis for a plausible happy-path MCP handshake. However, the manifest is unavailable, there is no evidence of CI or committed tests, and the README lists trading tools without documenting their actual behavior or error handling. Some example code is also misplaced, reducing reviewability. Static calibration caps this score at 12.
Security and permissions 8/20
The documentation recommends injecting credentials through the client environment and lists trading feature switches; the example uses SIMULATE and disables trading, giving limited evidence of access controls. The server can unlock trading and place, modify, or cancel orders, but per-action confirmation, permission boundaries, and data flows are not explained. The supplied material shows no evidence of a 0–4 red-line condition.
Maintenance 7/20
The repository metadata lists an MIT license, no archive status, and no open issues, while the README records two updates dated 2026-03-02. There is no commit history, CI evidence, dependency update policy, security response channel, or maintainer governance information, so the score remains limited.
Documentation 9/20
The README covers installation, client configuration, environment variables, tool examples, filter limits, logging, and troubleshooting. Deductions reflect the missing server manifest, a placeholder Docker image address, several misplaced or malformed code snippets, and limited disclosure of trading confirmation, data boundaries, and costs.
Setup experience 8/20
The README provides pipx, Docker, and source installation paths, plus Claude Desktop and Python/Node client examples; it also documents environment variables and the OpenD prerequisite. Deductions reflect the placeholder Docker image, the need to install and run OpenD separately, and limited platform compatibility and verifiable evidence for a working end-to-end connection. Static calibration caps this score at 15.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Users with a Futu securities account, OpenAPI access, and a running OpenD gateway.
  • Users who want to query Futu market or account data through MCP.

Not for

  • Users without a Futu account, OpenAPI access, or the OpenD gateway.
  • Users seeking investment advice; the README says the project does not provide it.

Required permissions

  • Requires connection to the user's running Futu OpenD and, depending on account settings, access to market or account data.
  • Trading tools require relevant trading permissions; the README documents a FUTU_ENABLE_TRADING switch and shows it set to 0 in an example.

Risks and side effects

  • Trading can cause financial losses; the README says users assume the risks of trading with the project.
  • Market data permissions and Futu OpenAPI terms and limits affect available data and features.
  • Avoid hard-coding account passwords and protect API credentials.

Setup

Before you start

Runtime:Python 3.10+

FUTU_HOST required OpenD gateway address; defaults to 127.0.0.1. Set it to the address where OpenD is running.
FUTU_PORT required OpenD gateway port; defaults to 11111.
Other optional settings (6)
FUTU_ENABLE_POSITIONS optional Positions feature switch; the example configuration sets it to 1.
FUTU_ENABLE_TRADING optional Trading feature switch; the example configuration sets it to 0.
FUTU_TRADE_ENV optional Trading environment, SIMULATE or REAL; defaults to SIMULATE.
FUTU_SECURITY_FIRM optional Broker, FUTUSECURITIES or FUTUINC; defaults to FUTUSECURITIES.
FUTU_TRD_MARKET optional Trading market, HK or US; defaults to HK.
FUTU_DEBUG_MODE optional Debug logging switch, 0 or 1; defaults to 0.

Install Python 3.10+, the Futu OpenAPI SDK, and the MCP SDK; the README recommends uv. The README describes installing futu-stock-mcp-server with pipx and running futu-mcp-server. Ensure Futu OpenD is running, then set FUTU_HOST and FUTU_PORT in the MCP client configuration. A Claude Desktop stdio configuration example is provided.

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

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "futu-stock": {
      "command": "futu-mcp-server",
      "env": {
        "FUTU_HOST": "127.0.0.1",
        "FUTU_PORT": "11111",
        "FUTU_ENABLE_POSITIONS": "1",
        "FUTU_ENABLE_TRADING": "0",
        "FUTU_TRADE_ENV": "SIMULATE",
        "FUTU_SECURITY_FIRM": "FUTUSECURITIES",
        "FUTU_TRD_MARKET": "HK"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.futu-stock]
command = "futu-mcp-server"

[mcp_servers.futu-stock.env]
FUTU_HOST = "127.0.0.1"
FUTU_PORT = "11111"
FUTU_ENABLE_POSITIONS = "1"
FUTU_ENABLE_TRADING = "0"
FUTU_TRADE_ENV = "SIMULATE"
FUTU_SECURITY_FIRM = "FUTUSECURITIES"
FUTU_TRD_MARKET = "HK"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add futu-stock -e FUTU_HOST=127.0.0.1 -e FUTU_PORT=11111 -e FUTU_ENABLE_POSITIONS=1 -e FUTU_ENABLE_TRADING=0 -e FUTU_TRADE_ENV=SIMULATE -e FUTU_SECURITY_FIRM=FUTUSECURITIES -e FUTU_TRD_MARKET=HK -- futu-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After restarting the MCP client, check that `get_stock_quote` appears in its tool list. Request a quote for HK.00700 to confirm the connection.

Troubleshooting

  1. Confirm Futu OpenD is running and check FUTU_HOST and FUTU_PORT.
  2. Confirm futu-mcp-server is installed and available on PATH.
  3. Check the Claude Desktop configuration path and JSON syntax, then restart the client.
  4. Confirm the required market data subscription and API permissions are enabled.

Things to try

Once connected, you can ask your AI assistant things like:

  • Show the live quote and order book for Tencent in Hong Kong (HK.00700).
  • Get daily historical K-line data for AAPL.
  • Show the funds and positions in my Futu account.
  • List the option expiration dates for HK.00700.

Tools 37

get_stock_quote read-only
Get quote data for specified securities.
get_market_snapshot read-only
Get market snapshots for specified securities.
get_cur_kline read-only
Get current K-line data.
get_history_kline read-only
Query historical K-line data.
get_rt_data read-only
Get real-time trading data.
get_ticker read-only
Get detailed trade data.
get_order_book read-only
Get order book data.
get_broker_queue read-only
Get broker queue data.
Show 29 more tools
subscribe writes
Subscribe to real-time data for specified securities.
unsubscribe writes
Unsubscribe from real-time data for specified securities.
get_option_chain read-only
Query option chain data.
get_option_expiration_date read-only
Query option expiration dates.
get_option_condor read-only
Get option condor strategy data.
get_option_butterfly read-only
Get option butterfly strategy data.
get_account_list read-only
Query the account list.
get_funds read-only
Query account funds information.
get_positions read-only
Query account positions.
get_position_list read-only
Query account positions with filters.
get_max_power read-only
Query maximum trading power.
get_margin_ratio read-only
Query the margin ratio for a security.
unlock_trade writes
Unlock trading operations.
place_order writes
Submit a trading order.
modify_order writes
Modify a trading order.
cancel_order destructive
Cancel one order.
cancel_all_orders destructive
Cancel all cancellable orders.
get_order_list read-only
Query current orders.
get_history_order_list read-only
Query historical orders.
get_deal_list read-only
Query current deals.
get_history_deal_list read-only
Query historical deals.
get_order_fee read-only
Query order fee details.
get_acc_cash_flow read-only
Query account cash flow details.
get_acc_trading_info read-only
Query trading capability or pre-check information.
get_market_state read-only
Query market state.
get_security_info read-only
Query security information.
get_security_list read-only
Query a market's security list.
get_stock_filter read-only
Filter stocks based on conditions.
get_current_time read-only
Get current server time information.

Use cases

Query quotes, snapshots, K-lines, trades, and order books for Hong Kong, US, and A-share securities.
Subscribe to or unsubscribe from real-time market data.
Query options information, account funds, positions, and orders.
Use trading tools when the required permissions are configured.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Futu Stock MCP Server exposes Futu OpenAPI features through MCP, with tools for market data queries and subscriptions, security and derivatives information, account queries, and trading operations. The README mentions Hong Kong, US, and A-share market data. Use requires a Futu securities account, OpenAPI access, and a running OpenD gateway.

Similar servers

Source revision cd0790f9b599 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/futu-stock-mcp-server.svg)](https://followmcp.com/en/servers/futu-stock-mcp-server)