金融 · 开发者工具

Metatrader MCP Server logo

Metatrader MCP Server

ariadng/metatrader-mcp-server

MetaTrader MCP Server是一个基于Python构建的模型上下文协议服务器,旨在通过AI大语言模型(LLM)实现MetaTrader平台的自动化交易。它支持与Claude Desktop、Open WebUI等LLM工具的集成,并提供HTTP服务器接口。

安装

pip install metatrader-mcp-server

客户端配置

{
  "mcpServers": {
    "metatrader": {
      "command": "metatrader-mcp-server",
      "args": [
        "--login",
        "YOUR_MT5_LOGIN",
        "--password",
        "<value>",
        "--server",
        "YOUR_MT5_SERVER",
        "--transport",
        "stdio"
      ]
    }
  }
}

环境变量

LOGINPASSWORDSERVER
GitHub 星标
9
作者
@ariadng
分类
金融, 开发者工具
许可证
MIT
更新于
2026年10月6日

工具(23)

  • get_account_info

    Get balance, equity, profit, margin level, leverage, currency

  • get_symbol_price

    Get current bid/ask price for a symbol

  • get_candles_latest

    Get recent price candles (OHLCV data)

  • get_candles_by_date

    Get historical candles for a date range

  • get_symbol_info

    Get detailed symbol information

  • place_market_order

    Execute instant BUY/SELL orders

  • place_pending_order

    Place limit/stop orders for future execution

  • modify_position

    Update stop loss or take profit

  • modify_pending_order

    Modify pending order parameters

  • get_all_positions

    View all open positions

  • get_positions_by_symbol

    Filter positions by trading pair

  • get_positions_by_id

    Get specific position details

  • close_position

    Close a specific position

  • close_all_positions

    Close all open positions

  • close_all_positions_by_symbol

    Close all positions for a symbol

  • close_all_profitable_positions

    Close only winning trades

  • close_all_losing_positions

    Close only losing trades

  • get_pending_orders_by_symbol

    Filter pending orders by symbol

  • cancel_pending_order

    Cancel a specific pending order

  • cancel_all_pending_orders

    Cancel all pending orders

  • cancel_pending_orders_by_symbol

    Cancel pending orders for a symbol

  • get_deals

    Get historical completed trades

  • get_orders

    Get historical order records

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS

相关 MCP 服务器

更多服务器
Stripe Agent Toolkit logo

Stripe Agent Toolkit

stripe/agent-toolkit

677

Stripe Agent Toolkit是一个支持多种AI代理框架(如OpenAI、LangChain、CrewAI等)与Stripe API集成的工具包,提供Python和TypeScript支持,简化支付相关操作。

金融
Awesome Web3 MCP Servers logo

Awesome Web3 MCP Servers

demcp/awesome-web3-mcp-servers

405

这是一个关于Web3 Model Context Protocol (MCP) 服务器的精选列表,涵盖了链交互、交易、DeFi、市场数据、工具和社交等多个类别。MCP是一个开放协议,标准化了应用程序如何向LLM提供上下文,类似于AI应用程序的USB-C端口。DeMCP是第一个去中心化的MCP网络,专注于为代理提供自研和开源的MCP服务,支持加密支付,并结合TEE和区块链注册表重新定义了MCP的安全性和可靠性。

金融
Financial Datasets logo

Financial Datasets

financial-datasets/mcp-server

225

一个提供金融市场数据的MCP服务器,支持查询股票和加密货币的财务数据与价格信息

金融
lyraios logo

lyraios

GalaxyLLMCI/lyraios

216

LYRAIOS是一个基于模型上下文协议(MCP)的多AI代理操作系统,旨在通过连接金融网络和区块链公链扩展AI应用功能,提供区块链操作、金融科技分析和教育学习等服务。

金融
EVM Blockchain logo

EVM Blockchain

mcpdotdirect/evm-mcp-server

216

一个支持多链交互的EVM兼容区块链服务MCP服务器,提供统一的区块链操作接口,支持30+网络和ENS解析。

金融
longport logo

longport

longportapp/openapi

206

LongPort OpenAPI SDK 提供程序化交易和行情接口,支持多种编程语言,帮助开发者构建投资策略分析和交易工具。

金融