fxapis — MetaTrader 5 MCP Server
com.fxapis/mt5v1.0.0
Let AI agents trade and read MetaTrader 5 accounts. Hosted — no terminal for you to run.
context tax
~12,147 tok/turn29 tools
security
100/100
cold start
hosted
freshness
Active41d ago
Our reading of fxapis — MetaTrader 5, from the data
fxapis — MetaTrader 5 is a code execution & sandboxes MCP server, listed in the official MCP Registry.
Its 29 tools add about 12,147 tokens to every model turn, heavier than the code execution & sandboxes median of 2,412 tokens across 38 measured servers (measured 2026-10-19).
Maintenance is active: the last public signal was 41 days ago (2026-10-01). For comparison, 67% of code execution & sandboxes servers are active or maintained.
It runs as a hosted endpoint, so there is nothing to install.
Install fxapis — MetaTrader 5 MCP server
Install in Claude Code
claude mcp add --transport http mt5 https://api.fxapis.com/mcpInstall in Cursor
{
"mcpServers": {
"mt5": {
"url": "https://api.fxapis.com/mcp"
}
}
}Install in Claude Desktop
{
"mcpServers": {
"mt5": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.fxapis.com/mcp"
]
}
}
}Or add it as a custom connector under Settings → Connectors. The config above bridges via mcp-remote.
Install in VS Code
{
"servers": {
"mt5": {
"type": "http",
"url": "https://api.fxapis.com/mcp"
}
}
}Install in Windsurf
{
"mcpServers": {
"mt5": {
"serverUrl": "https://api.fxapis.com/mcp"
}
}
}Remote endpoints
- streamable-http
https://api.fxapis.com/mcp
Context tax
Connecting this server adds ~12,147 tokens of tool definitions to every model turn (heavy, 29 tools). Measured 2026-10-19 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $48.59 | $2.43 |
| Claude Sonnet 5.5 | $24.29 | $2.43 |
| Claude Haiku 5.5 | $1.21 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (29)
place_multi_account_order1,467 tokPlaces the same market order on many of the user's real broker accounts (or demo) at once and returns at once; follow it with get_multi_account_order. Confirm the accounts, symbol, side and volume with the user first. Example: {"account_ids": ["<id>", "<id>"], "instrument": "XAUUSD", "side": "buy", "volume": "0.01", "idempotency_key": "<new uuid>"}
place_pending_order1,085 tokPlaces a limit or stop order on the user's real broker account (or demo) that waits at the broker; success means working, not filled. Confirm it with the user first. Example: {"account_id": "<id>", "symbol": "EURUSD", "side": "buy", "kind": "limit", "volume": "0.10", "price": "1.08000", "idempotency_key": "<new uuid>"}
list_orders827 tokOrders placed through fxapis, newest first, for one account or all; state `unknown` means still being confirmed, so never resend those. Pages with cursor. Example: {"state": "unknown"}
list_deals804 tokAn account's deal history as the broker recorded it, newest first, including stops that fired, swaps and manual trades. Realised profit is here. Example: {"account_id": "<id>", "since": "2026-10-01T00:00:00Z"}
place_market_order738 tokOpens a position at market on the user's real broker account (or demo) and waits for the broker; confirm account, symbol, side and volume with the user first. On ORDER_UNRESOLVED never resend, poll get_order. Example: {"account_id": "<id>", "symbol": "EURUSD", "side": "buy", "volume": "0.10", "idempotency_key": "<new uuid>"}
calculate598 tokThe margin an order would need, or its profit between two prices, as the broker computes it; opens nothing. The account must be online. Example: {"account_id": "<id>", "kind": "margin", "symbol": "EURUSD", "side": "buy", "volume": "0.10", "price": "1.08450"}
close_position533 tokCloses a position on the user's real broker account (or demo), whole or by volume. Sent twice it opens the opposite position, so reuse an idempotency_key only to retry the same close. Example: {"account_id": "<id>", "position_id": "<brokerPositionId>", "idempotency_key": "<new uuid>"}
modify_position532 tokMoves a position's stop loss or take profit on the user's real broker account (or demo); null removes a level. Remove a stop loss only when the user asks. Example: {"account_id": "<id>", "position_id": "<brokerPositionId>", "stop_loss": "1.08000", "idempotency_key": "<new uuid>"}
get_symbol_snapshot465 tokOne symbol on one account in one call: its specification, live quote, whether the market is open, and the margin for a volume. Use it before proposing a trade. Example: {"account_id": "<id>", "instrument": "XAUUSD", "volume": "0.10", "side": "buy"}
get_quotes385 tokLive bid and ask for up to 20 symbols or instruments from this account's broker; a closed market answers its last price with marketOpen false. The account must be online. Example: {"account_id": "<id>", "instruments": ["EURUSD"]}
list_account_instruments335 tokEach instrument's symbol on this account's broker: mapped, ambiguous (with candidates) or missing. Trade the mapped symbol. Example: {"account_id": "<id>", "query": "XAU"}
get_market_hours321 tokWhether a market is open now on this account's broker, and when it next opens or closes, in UTC. A broker holiday missing from its schedule still refuses orders. Example: {"account_id": "<id>", "instrument": "XAUUSD"}
list_positions317 tokOpen positions on one account as last observed; brokerPositionId is what close_position and modify_position take. Pages with limit and cursor. Example: {"account_id": "<id>"}
cancel_multi_account_order306 tokCalls off a multi-account order on the user's real broker accounts (or demo) before anything is sent. Once orders went out, close the positions instead. Example: {"multi_account_order_id": "<id>", "idempotency_key": "<new uuid>"}
cancel_order301 tokCancels a pending order on the user's real broker account (or demo) that has not triggered. If it triggered there is a position to close instead. Example: {"order_id": "<id>", "idempotency_key": "<new uuid>"}
get_account_figures291 tokBalance, equity, margin, free margin and margin level as decimal strings in the account currency, read every 15 s while online. Set fresh to ask the terminal now (the account must be `ready`). Example: {"account_id": "<id>", "fresh": true}
get_account_overview287 tokOne account in one call: state, environment, balance and equity, and its largest open positions with their total P/L. Start here when asked how an account is doing. Example: {"account_id": "<id>"}
get_order272 tokThe authoritative record of one order: what was asked, the broker's answer, fill volume and price. Poll it after ORDER_UNRESOLVED until it leaves `unknown`. Example: {"order_id": "<id>", "include_deals": true}
get_account_status265 tokJust an account's state, cheap enough to poll every few seconds after bring_accounts_online until `ready`. States invalid_credentials, needs_2fa, needs_certificate and trading_disabled need the user, so stop polling. Example: {"account_id": "<id>"}
get_multi_account_order252 tokOne multi-account order and each account's result; poll it after placing one. An account left `unresolved` must not be resent, so poll its order instead. Example: {"multi_account_order_id": "<id>"}
get_account246 tokOne account: login, broker, state, environment, and its last-read balance, equity and free margin. Example: {"account_id": "<id from list_accounts>"}
bring_accounts_online243 tokStarts each account's MT5 terminal in the cloud and logs it in; poll get_account_status until `ready`. Places no trades and is safe to repeat. Example: {"account_ids": ["<id>"]}
take_account_offline211 tokStops an account's terminal; open positions and their stops stay at the broker. Refused while an order is in flight. Example: {"account_id": "<id>"}
list_accounts177 tokThe workspace's MT5 accounts with id, login, server, state and environment (demo or live); use the id, not the login, everywhere else. Only `ready` accounts trade, so bring the others online first. Example: {"limit": 25}
search_broker_servers165 tokMT5 broker servers matching a broker or server name, servers seen working on fxapis first. A server not listed can still be used. Example: {"query": "icmarkets"}
list_multi_account_orders151 tokRecent multi-account orders (one trade on many accounts), each with its per-account result. Pages with limit and cursor. Example: {}
list_instruments146 tokMarkets named once (XAUUSD, US30, BTCUSD) whatever each broker calls them. list_account_instruments gives one account's own symbol for each. Example: {"category": "metals"}
get_usage110 tokThis month's usage against the plan, and its cost so far in minor units (9900 is $99.00). Over quota opening is refused, closing never is. Example: {}
get_workspace109 tokThis connection's workspace: its plan, the plan's limits and features, and whether trading is switched off. Call it first when unsure what the user can do. Example: {}
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Repository hygiene (archived, activity, license, security policy) — pending
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 41d ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-10-01 · 41d ago · official registry · v1.0.0
How it compares in Code Execution & Sandboxes
Against the most-starred code execution & sandboxes servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| fxapis — MetaTrader 5 (this) | — | 29 | 12,147 | Active | hosted |
| REA | 324,759 | 207 | 185,564 | Active | local |
| Node Repl | 28,567 | 5 | 1,266 | Active | local |
| Ask Jev | 5,224 | — | not measured | Active | hosted |
| Container Use | 4,072 | — | not measured | Maintained | — |
| MATLAB | 1,679 | — | not measured | Active | local |
FAQ
›How do I install the fxapis — MetaTrader 5 MCP server in Claude Code?
Run: claude mcp add --transport http mt5 https://api.fxapis.com/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does fxapis — MetaTrader 5 require an API key?
No required environment variables are declared in its published metadata.
›Can I use fxapis — MetaTrader 5 as a remote (hosted) MCP server?
Yes. It is a hosted MCP server; connect to its URL with any client that supports remote MCP.
›Is fxapis — MetaTrader 5 in the official MCP registry?
Yes, as com.fxapis/mt5.
›How many tokens does fxapis — MetaTrader 5 add to my context?
Its tool definitions total about 12,147 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-01
- Tool list (tools/list), measured by us
- 2026-10-19
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to fxapis — MetaTrader 5
Other code execution & sandboxes MCP servers.