MetaTrader MCP server for MT4 and MT5
The FundedOps MetaTrader MCP server is a hosted Model Context Protocol server that lets an AI app read, trade and manage your MT4 and MT5 accounts through one URL and an API key, with no MetaTrader app or Windows machine to run yourself.
https://api.fundedops.com/v1/mcp- list_accounts
- get_account_informationaccount_id: "sample-mt5"
- get_account_informationaccount_id: "sample-mt4"
Sample MT5 account: 10,000.00 USD. Sample MT4 account: 5,000.00 USD.
- list_positionsaccount_id: "sample-mt5"
EURUSD buy 0.10 lots, +12.40 USD.
- list_history_positionsaccount_id: "sample-mt5"start_time: "2026-11-09T00:00:00Z"end_time: "2026-11-15T23:59:59Z"
3 positions closed, result +86.20 USD.
What is a MetaTrader MCP server?
A MetaTrader MCP server gives AI apps tools for working with MetaTrader accounts. MCP (Model Context Protocol) is the standard way for apps such as Claude Code, Cursor and VS Code to call tools on another service.
What can an AI app do with it?
Every public Data API operation is a tool, so an AI app can do what the API does:
Read balance, equity, positions, orders and trade history.
Get live quotes, candles and symbol details.
Full Access key
Place, change and close trades, with a Full Access key.
Full Access key
Deploy and redeploy accounts. The tool states the cost before it runs.
How is it different from running an MCP server yourself?
Most MetaTrader MCP servers run on your own Windows machine, with MetaTrader open and your broker login in a config file. The FundedOps server is hosted, and your AI app holds only an API key.
| Typical self-hosted MCP server | FundedOps MCP server | |
|---|---|---|
| Platforms | Typical self-hosted MCP serverUsually MT5 only | FundedOps MCP serverMT4 and MT5 |
| Where it runs | Typical self-hosted MCP serverYour Windows machine, with MetaTrader open | FundedOps MCP serverHosted by FundedOps |
| What your AI app's config holds | Typical self-hosted MCP serverYour broker login and password | FundedOps MCP serverAn API key, read from an environment variable |
| Limit what the AI app can do | Typical self-hosted MCP serverDepends on the project | FundedOps MCP serverRead Only keys, keys for some accounts only, keys that expire |
| Other ways in | Typical self-hosted MCP serverMCP only | FundedOps MCP serverREST API, WebSocket stream, Python, JavaScript and TypeScript SDKs |
How do I connect Claude Code, Cursor or VS Code?
Create an API key, store it in the environment variable FUNDEDOPS_API_KEY, and add the server to your AI app. For Claude Code, run:
claude mcp add --transport http fundedops https://api.fundedops.com/v1/mcp --header "Authorization: Bearer $FUNDEDOPS_API_KEY"The MCP docs have the setup for Cursor, VS Code, the OpenAI Responses API and the Anthropic Messages API.
How do I stop an AI app from trading?
Give it a Read Only key. A Read Only key sees only the read tools, so it cannot place, change or close trades or change accounts. You can also:
Give it a Read Only key. It sees only the read tools, so it cannot trade or change accounts. You can also limit a key to some of your accounts, or set it to expire after 30 days, 90 days or 1 year.
- Limit a key to some of your accounts.
- Set a key to expire after 30 days, 90 days or 1 year.
Delete Account and Undeploy Account are marked, so AI apps ask you before running them.
Trading tools need an idempotencyKey, so a retried call never places the same trade twice. Text in tool results is cleaned and marked as data, not instructions. Use a Read Only key for any AI app that also reads emails, web pages or chat messages from other people.
Trading tools need an idempotencyKey, so a retried call never places the same trade twice. Use a Read Only key for any AI app that reads emails, web pages or chat messages from other people.
- list_accounts
- list_positions
- get_quote
- place_order
- modify_position
- close_position
- delete_accountAsks first
- undeploy_accountAsks first
What does it cost?
$8
Per account, every 30 days
The MCP server costs nothing extra. You pay for connected accounts, not for calls: $8 per account every 30 days from a prepaid balance, and your first account is free for 15 days.
Frequently asked questions
FUNDEDOPS_API_KEY, and the config reads it from there. Your broker password is not in the config: you connect an account once with an API call or the SDK. If you ask an AI app to connect an account, its login, password and server go to that AI provider and can stay in your chat history.Also available
The same accounts and the same key work with the REST API, the WebSocket stream, the Python SDK and the TypeScript SDK.
