
Capital.com MCP Server
io.github.SimonTarara62Published by GitHub account SimonTarara62v0.3.4Updated Oct 27, 2026
Unofficial community MCP for the Capital.com Open API. Guarded two-phase trades; demo-first.
The publisher's own server: capital.new mandate draft tools
Overview
Unofficial local MCP server for the Capital.com trading API, giving an assistant market data, watchlists and guarded two-phase trade execution.
- What you can do
- Check session and account state, list accounts, switch accounts, read preferences and activity/transaction history, and top up a demo balance
- Search markets, read market details and snapshots, browse navigation nodes, pull historical OHLC candles and client long/short sentiment
- List open positions and working orders, preview a position or working order, then execute, amend, close or cancel with confirmation
- Create, read, update and delete watchlists and their markets
- Stream live prices, candles, price alerts and portfolio P&L over WebSocket when enabled
- Run guided prompts for market scans, trade proposals, position reviews and live monitoring, plus read-only search and fetch adapters
- When to use it
- Useful when you want an assistant to research Capital.com instruments, review positions and orders, or prepare and execute trades under explicit guardrails, starting on a demo account. Not for anyone who needs an official, vendor-supported integration.
- Requirements
- Runs locally as a Python package via uvx or pipx (stdio, or HTTP for remote hosting). Needs a Capital.com API key, API password and account identifier, supplied inline, through a .env file path, or via command-based secret lookups. Trading requires CAP_ALLOW_TRADING and an EPIC allowlist; streaming requires CAP_WS_ENABLED. Network access to the Capital.com API.
Installation
In SourceWeft
- Open Capital.com MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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.
[PyPI version] [Python versions] [CI] [License: Apache-2.0] [MCP Registry] [Glama quality score] [PyPI downloads]
⚠️ 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:
Or install a persistent command with pipx:
Pinning 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:
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:
This writes ~/.config/capital-mcp/.env. Verify any time (no secrets printed):
Inspect the full effective configuration (redacted, offline) or confirm your credentials actually authenticate:
Prefer a secret manager? Set CAP_API_KEY_CMD / CAP_IDENTIFIER_CMD /
CAP_API_PASSWORD_CMD 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
"CAP_ENV_FILE": "<path from init>" keeps secrets out of the client file; or
put CAP_API_KEY/CAP_IDENTIFIER/CAP_API_PASSWORD directly in env.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) /
%APPDATA%\Claude\claude_desktop_config.json (Windows):
Claude Code
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
VS Code (Copilot)
.vscode/mcp.json — note the root key is servers and type: "stdio":
Windsurf
~/.codeium/windsurf/mcp_config.json:
ChatGPT
ChatGPT requires a remote server (stdio is not supported) — see
Remote / VPS hosting. Once your server is reachable over
HTTPS, enable Developer Mode (Settings → Connectors → Advanced) and add the
server URL ending in /mcp. ChatGPT Deep Research connectors call two
read-only tools, search and fetch, which this server implements; full custom
tools require Developer Mode.
Remote / VPS hosting
Run with streamable-HTTP instead of stdio:
Or via env (handy in systemd): CAP_MCP_TRANSPORT=http, CAP_MCP_HOST,
CAP_MCP_PORT. Put it behind a TLS-terminating reverse proxy for any public use.
What's inside — tools, resources & prompts
This server exposes 42 tools, 4 resources, and 7 guided prompts. All
tool names are prefixed cap_ except the two ChatGPT Deep Research adapters
(search, fetch). Mutating tools require confirm=true; trades are two-phase.
The full surface is a stable contract — see API stability.
Session & account
Market data
Trading (read → preview → execute → manage)
Watchlists
Streaming (WebSocket; requires CAP_WS_ENABLED=true)
ChatGPT Deep Research adapters
Resources
Guided prompts
Prompts are reusable workflows your client can launch by name. They emit step-by-step guidance that orchestrates the tools above — they never trade on their own.
Safety model
- Trading off unless
CAP_ALLOW_TRADING=trueand the EPIC is inCAP_ALLOWED_EPICS(orALL). - Two-phase execution;
confirm=truerequired for mutations. - Size, open-position, and daily-order caps;
CAP_DRY_RUN=trueblocks all executions. ATIMEOUTconfirmation is ambiguous — reconcile, don't blindly retry.
Development
End-to-end tests drive every tool through the MCP against the demo API
(read, watchlists, account switch, preview/execute/amend/close/cancel, streaming).
They place real demo orders and clean up after themselves, so use a demo .env
with trading + streaming enabled:
Contributing
Contributions are welcome — this is a community project. Start with CONTRIBUTING.md, browse good first issues, and see the roadmap for where it's heading. The architecture and a worked "add a tool" example are in docs/extending.md.
License
Source: README.md at commit d16c071
Tools
0Version history
1- v0.3.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Capital integrations
capital.new mandate draft tools
new.capitalOfficial publisher
Lets an assistant build and verify Capital Authority Mandate draft files by replaying their SHA-256 digest, while minting stays a human ceremony.
CRE Capital: capital stack calculator
capital.creOfficial publisher
Remote commercial real estate capital stack calculator that lets an assistant model senior, mezzanine, preferred and common equity layers with costs, coverage…
Issuerwire — capital markets news for AI agents
Published by GitHub account allooloo
A remote MCP server that gives an assistant signed capital-markets news rows — filings, releases and coverage — for listed issuers across several markets.
Canli Capital
Published by GitHub account arhancanli
A finance toolbox of 442 tools for quant analysis, SEC filings, macro data, backtests and paper trading, reached through three search-and-run tools.

Evercraft Deck Capital Fit
Published by GitHub account jgaethle10
A remote MCP endpoint for capital-fit research and founder readiness, with a human-confirmed checkout step.