
litash/moomoo-api-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP Server for AI Agents to use Moomoo OpenAPI (https://www.moomoo.com/OpenAPI)]]
개요
MCP (모델 Context Protocol) 서버는 Moomoo 거래 플랫폼에 있습니다. 이 서버는 AI Agent(Clude Desktop 또는 Gemini와 같은)를 통해 시장 데이터, 계정 정보 및 moomoo-api Python SDK를 통해 거래를 실행할 수 있습니다. 이 MCP 서버는 개발자가 사용자 정의 거래 기술과 전략을 구축 할 수 있습니다. 이 도구를 통합함으로써, 당신은 모든 호환 AI 에이전트가 대신 Moomoo 플랫폼과 직접 상호 작용할 수 있습니다. 시장 모니터링, 포트폴리오 분석, 또는 자동으로 복잡한 거래 전략을 실행하는 AI 보조를 원하든, 이 서버는 사용자 정의 AI 논리 및 Moomoo의 강력한 거래 인프라 간의 원활한 브리지를 제공합니다. - : 실시간 견적, 역사 K-라인, 시장 스냅샷 및 주문서. - : 포괄적인 계정 요약, 자산, 위치 및 현금 흐름 분석. - : 주문 변경, 수정, 취소 등 전체 주문 관리 - : 내장된 건강 검사 및 연결 검증.
개요(AI 번역)
MCP (모델 Context Protocol) 서버는 Moomoo 거래 플랫폼에 있습니다. 이 서버는 AI Agent(Clude Desktop 또는 Gemini와 같은)를 통해 시장 데이터, 계정 정보 및 moomoo-api Python SDK를 통해 거래를 실행할 수 있습니다.
♨ 자신의 거래 에이전트 구축
AI와 함께 다음 단계로 거래하세요!
이 MCP 서버는 개발자가 사용자 정의 거래 기술과 전략을 구축 할 수 있습니다. 이 도구를 통합함으로써, 당신은 모든 호환 AI 에이전트가 대신 Moomoo 플랫폼과 직접 상호 작용할 수 있습니다. 시장 모니터링, 포트폴리오 분석, 또는 자동으로 복잡한 거래 전략을 실행하는 AI 보조를 원하든, 이 서버는 사용자 정의 AI 논리 및 Moomoo의 강력한 거래 인프라 간의 원활한 브리지를 제공합니다.
특징
- Market Data: 실시간 견적, 역사 K-라인, 시장 스냅샷, 주문서.
- Account Management: 포괄적인 계정 요약, 자산, 위치 및 현금 흐름 분석.
- Trading: 주문 변경, 수정, 취소 등 전체 주문 관리
- System Health: 내장된 건강 검사 및 연결 검증.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Moomoo API MCP Server
An MCP (Model Context Protocol) server for the Moomoo trading platform. This server allows AI agents (like Claude Desktop or Gemini) to access market data, account information, and execute trades via the moomoo-api Python SDK.
🚀 Build Your Own Trading Agent
Take your trading to the next level with AI!
This MCP server empowers developers to build custom trading skills and strategies. By integrating this tool, you can enable any compatible AI agent to interact directly with the Moomoo platform on your behalf. Whether you want an AI assistant that monitors the market, analyzes your portfolio, or automatically executes complex trading strategies, this server provides the seamless bridge between your custom AI logic and Moomoo’s powerful trading infrastructure.
Features
- Market Data: Real-time quotes, historical K-lines, market snapshots, and order books.
- Account Management: Comprehensive account summaries, assets, positions, and cash flow analysis.
- Trading: Full order management including placing, modifying, and canceling orders.
- System Health: Built-in health checks and connectivity verification.
- Extensible Architecture: Built on FastMCP for easy extension of trading capabilities.
Tools
System
check_health: Check connectivity to Moomoo OpenD gateway and server health.
Account
get_accounts: List all trading accounts (REAL and SIMULATE).get_account_summary: Get a complete summary of assets and positions for an account.get_assets: Retrieve account assets (cash, market value, buying power).get_positions: Get current stock positions with P/L data.get_max_tradable: Calculate maximum tradable quantity for a specific stock.get_margin_ratio: Check margin ratios for specific stocks.get_cash_flow: Retrieve historical cash flow records.unlock_trade: Unlock trading access for REAL accounts.
Market Data
get_stock_quote: Get real-time stock quotes.get_historical_klines: Retrieve historical candlestick data (Day, Week, Min, etc.).get_market_snapshot: Get efficient market snapshots for multiple stocks.get_order_book: View real-time bid/ask order book depth.
Trading
place_order: Place a new order (Market, Limit, Stop, etc.).modify_order: Modify price or quantity of an open order.cancel_order: Cancel an open order.get_orders: Get list of orders for the current day.get_deals: Get list of executed trades (deals) for the current day.get_history_orders: Search historical orders.get_history_deals: Search historical deals.
Installation
Quick Start (Recommended)
You can run the server directly using uvx (part of the uv toolkit).
Using --refresh ensures you are always running the latest version:
# Optional: Set these environment variables for REAL trading access.
설치
uvx --refresh moomoo-api-mcp설정
{
"mcpServers": {
"moomoo": {
"command": "uvx",
"args": ["--refresh", "moomoo-api-mcp"],
"env": {
"MOOMOO_TRADE_PASSWORD": "your_trading_password",
"MOOMOO_SECURITY_FIRM": "FUTUSG"
}
}
}
}