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.

Server URL
https://api.fundedops.com/v1/mcp
AI appSample data
List my accounts and show the balance of each.
  1. list_accounts
  2. get_account_informationaccount_id: "sample-mt5"
  3. get_account_informationaccount_id: "sample-mt4"

Sample MT5 account: 10,000.00 USD. Sample MT4 account: 5,000.00 USD.

Read Only key

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.

AI app
API key
FundedOps MCP server
Hosted connection
  • MetaTrader 4
  • MetaTrader 5

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 serverFundedOps MCP server
PlatformsTypical self-hosted MCP serverUsually MT5 onlyFundedOps MCP serverMT4 and MT5
Where it runsTypical self-hosted MCP serverYour Windows machine, with MetaTrader openFundedOps MCP serverHosted by FundedOps
What your AI app's config holdsTypical self-hosted MCP serverYour broker login and passwordFundedOps MCP serverAn API key, read from an environment variable
Limit what the AI app can doTypical self-hosted MCP serverDepends on the projectFundedOps MCP serverRead Only keys, keys for some accounts only, keys that expire
Other ways inTypical self-hosted MCP serverMCP onlyFundedOps 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. 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. Use a Read Only key for any AI app that reads emails, web pages or chat messages from other people.

Read
  • list_accounts
  • list_positions
  • get_quote
Trade
  • place_order
  • modify_position
  • close_position
Manage accounts
  • 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

Also available

The same accounts and the same key work with the REST API, the WebSocket stream, the Python SDK and the TypeScript SDK.