Capital.com MCP Server
Unofficial community MCP for the Capital.com Open API. Guarded two-phase trades; demo-first.
0 stars34 downloads/wk
Reviews
Write oneNobody has reviewed Capital.com MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Capital.com MCP Server tools (42, 8 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
cap_account_demo_topupTop up the demo account balance (DEMO ONLY). The SDK enforces demo + confirm.
cap_account_history_activityGet account activity history (deals, orders, updates). detailed adds fields; deal_id filters.
cap_account_history_transactionsGet transaction history (deposits, withdrawals, P&L). Optional type filter.
cap_account_listList all trading accounts (balance, currency, type). Requires authentication.
cap_account_preferences_getGet account preferences (hedging mode, per-asset-class leverage).
cap_account_preferences_setSet account preferences (TRADE-GATED). Requires confirm=true when configured.
cap_market_getGet full market details and dealing rules for an EPIC.
cap_market_navigation_nodeGet child nodes/markets under a navigation node.
cap_market_navigation_rootGet the root market-navigation tree (categories).
cap_market_pricesGet historical OHLC candles. resolution e.g. MINUTE_15, HOUR, DAY.
cap_market_searchSearch markets by term or EPIC list. limit truncates results client-side.
cap_market_sentimentGet client sentiment (long vs short %) for a market.
cap_session_loginwrite actionCreate or verify a session. force=true re-logs in; account_id switches account.
cap_session_logoutEnd the session and clear tokens. Requires authentication.
cap_session_pingKeep the session alive (extends timeout). Requires authentication.
cap_session_statusGet current session status (login state, account, token expiry). No auth required.
cap_session_switch_accountSwitch the active trading account by ID. Requires authentication.
cap_stream_alertsMonitor EPICs for price-level crossings. alerts: {EPIC: {level, direction: ABOVE|BELOW}}.
cap_stream_candlesStream live OHLC bars for up to 40 EPICs at the given resolutions (WebSocket).
cap_stream_portfolioStream live portfolio snapshots for open positions for duration_s seconds (WebSocket).
cap_stream_pricesStream live bid/offer for up to 40 EPICs for duration_s seconds (WebSocket).
cap_trade_confirm_getGet deal-confirmation status (ACCEPTED/REJECTED/pending) for a deal reference.
cap_trade_confirm_waitPoll the confirmation endpoint until ACCEPTED/REJECTED or timeout.
cap_trade_execute_positionwrite actionExecute a previewed position (CREATES A REAL TRADE). SDK enforces all safety gates.
cap_trade_execute_working_orderwrite actionExecute a previewed working order (CREATES A REAL ORDER). SDK enforces all safety gates.
cap_trade_orders_amendAmend a working order's level/expiry/stops-limits (SIDE EFFECT). Requires confirm.
cap_trade_orders_cancelwrite actionCancel a working order (SIDE EFFECT). Requires confirm + trading enabled.
cap_trade_orders_listList all working orders (pending LIMIT/STOP that haven't triggered).
cap_trade_positions_amendAmend stop-loss / take-profit on an open position (SIDE EFFECT). Requires confirm.
cap_trade_positions_closeClose an open position (SIDE EFFECT). Requires confirm + trading enabled.
cap_trade_positions_getGet a single position's details by deal ID.
cap_trade_positions_listList all open positions (P&L, direction, size, attached orders).
cap_trade_preview_positionPreview a position (NO SIDE EFFECTS). Runs the full risk pipeline; returns preview_id.
cap_trade_preview_working_orderwrite actionPreview a working order (NO SIDE EFFECTS). type is LIMIT or STOP. Returns preview_id.
cap_watchlists_add_marketAdd a market (EPIC) to a watchlist. Requires confirm when configured.
cap_watchlists_createwrite actionCreate a new watchlist (1-100 chars). Requires confirm when configured.
cap_watchlists_deletewrite actionDelete a watchlist. Requires confirm when configured.
cap_watchlists_getGet a watchlist's details including its markets.
cap_watchlists_listList all watchlists (IDs and names).
cap_watchlists_remove_marketwrite actionRemove a market (EPIC) from a watchlist. Requires confirm when configured.
fetchChatGPT Deep Research: fetch a market's details. Returns {id,title,text,url,metadata}.
searchChatGPT Deep Research: search Capital.com markets. Returns {results:[{id,title,url}]}.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan7 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 20 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Capital.com MCP Server repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.SimonTarara62/capitalcom-mcp-server -->
Capital.com MCP Server
Self-hosted Model Context Protocol (MCP) server for the Capital.com Open API, written in Python on FastMCP. It exposes 42 safe, guarded trading and market-data tools — two-phase execution, allowlists, demo-first — to any MCP client, over stdio or HTTP. Built on the tested capitalcom-cli broker engine (SDK).
Works with Claude Desktop · Claude Code · Cursor · VS Code (Copilot) · Windsurf · ChatGPT — any MCP client.
⚠️ Unofficial & educational. Not affiliated with Capital.com. Trading is
risky and this is not financial advice. Trading is disabled by default;
all trades are two-phase (preview → confirm → execute) with allowlists and
size/rate limits. Start on a demo account. Apache-2.0 licensed.
Install
No clone required — uvx runs it in an isolated, throwaway environment and always fetches the latest tested release:
uvx capitalcom-mcp --help # smoke testOr install a persistent command with pipx:
pipx install capitalcom-mcpPinning for production / real-money use
uvx capitalcom-mcp always runs the latest published release. That is fine for trying it out, but for production or real-money use, pin the exact version so an unexpected update can't change tool behavior under you:
{
"mcpServers": {
"capitalcom": {
"command": "uvx",
"args": ["capitalcom-mcp==0.3.4"],
"env": { "CAP_ENV_FILE": "/Users/you/.config/capital-mcp/.env" }
}
}
}The CLI form is uvx capitalcom-mcp==0.3.4 run …. Pin to a version you have reviewed, and bump deliberately after reading the CHANGELOG.
1. Add your credentials (once)
Get an API key in the Capital.com app: Settings → API integrations (make a demo key first). Then run the wizard — it writes a 0600 file and prints the exact client snippet:
uvx capitalcom-mcp initThis writes ~/.config/capital-mcp/.env. Verify any time (no secrets printed):
uvx capitalcom-mcp doctorInspect the full effective configuration (redacted, offline) or confirm your credentials actually authenticate:
uvx capitalcom-mcp config # effective settings + credential source
uvx capitalcom-mcp doctor --login # verify authentication against the APIPrefer a secret manager? Set CAPAPIKEYCMD / CAPIDENTIFIERCMD / CAPAPIPASSWORDCMD to a command that prints the secret (e.g. op read op://vault/..., pass ...). The secret is fetched at launch and never written to disk or to your client config.
2. Add the server to your client
Every client uses the same command/args/env shape. Pasting "CAPENVFILE": "" keeps secrets out of the client file; or put CAPAPIKEY/CAPIDENTIFIER/CAPAPI_PASSWORD directly in env.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
claude mcp add capitalcom-mcp-server -- uvx capitalcom-mcp
Capital.com MCP Server: common questions
- Is Capital.com MCP Server safe?
- Mostly: it is graded B (83/100). Read the Capital.com MCP Server safety report
- How do I install Capital.com MCP Server?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Capital.com MCP Server need an API key?
- Yes. The registry entry asks for
CAP_API_KEY,CAP_IDENTIFIER,CAP_API_PASSWORD. - Is Capital.com MCP Server maintained?
- The last commit was 20 days ago (2026-09-07). The latest release is v0.3.4.