mcp-metatrader5-server
by Qoyyuum·★ 133·综合分 48
为MetaTrader 5交易平台提供MCP服务,让AI助手访问市场数据和执行交易操作。
概述
这个MCP服务器让AI助手能够与MetaTrader 5交易平台交互,提供访问市场数据、执行和管理交易、分析交易历史的功能。服务器支持stdio和HTTP传输模式,可与Claude Desktop等多种MCP客户端兼容。它使用Python和FastMCP框架构建,具有结构化的API参考和示例工作流程。
试试问 AI
装完之后,这里有 7 个你可以让 AI 做的事:
什么时候选它
如果您需要将 AI 与 MetaTrader 5 集成以进行自动化交易或市场分析,特别是如果您已经在使用 Python 进行开发,请选择此服务器。
什么时候不要选它
如果您不使用 MetaTrader 5,请不要选择它,因为它专门为此平台设计,并且需要 Windows 安装。
此 server 暴露的工具
从 README 抽取出 12 个工具initializeInitialize the MT5 terminal connection
loginLog in to a MetaTrader 5 trading account
shutdownClose the connection to the MT5 terminal
get_symbolsGet all available trading symbols
get_symbol_infoGet information about a specific trading symbol
get_symbol_info_tickGet the latest tick data for a symbol
copy_rates_from_posGet historical price bars from a specific position
order_sendSend a trade order to the server
order_checkCheck if an order can be placed with specified parameters
positions_getGet all open trading positions
orders_getGet all active orders
history_orders_getGet historical order data
可对比工具
安装
安装
从PyPI安装(推荐)
uvx --from mcp-metatrader5-server mt5mcp从源码安装
git clone https://github.com/Qoyyuum/mcp-metatrader5-server.git
cd mcp-metatrader5-server
uv sync
uv run mt5mcpClaude Desktop配置
添加到claude_desktop_config.json:
{
"mcpServers": {
"mcp-metatrader5-server": {
"command": "uvx",
"args": [
"--from",
"mcp-metatrader5-server",
"mt5mcp"
]
}
}
}FAQ
- MetaTrader 5在哪些平台上运行?
- MetaTrader 5目前仅支持Windows平台。MCP服务器必须连接到安装了MetaTrader 5的Windows计算机。
- 除了Claude Desktop,我还能与其他MCP客户端一起使用这个服务器吗?
- 是的,服务器支持stdio和HTTP传输模式,可与Claude Code、Cursor、Gemini CLI等多种MCP客户端兼容。
- 通过这个MCP服务器我可以访问哪些数据?
- 您可以访问市场数据(符号、汇率、报价)、放置和管理交易以及分析交易历史。服务器提供了全面的数据检索和交易操作工具。
mcp-metatrader5-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。