Trading212 MCP server
MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics
8 stars122 downloads/wk
Reviews
Write oneNobody has reviewed Trading212 yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Trading212 tools (28, 10 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
cancel_order_by_idwrite actionRemove a pending order from the book. This cannot be undone once executed.
create_piewrite actionBuild a new pie with the given instruments and weights.
delete_piewrite actionPermanently remove a pie. Instruments inside it become standalone positions in your portfolio.
duplicate_pieClone an existing pie into a new one with identical instrument allocations.
fetch_a_pieGet full details for a single pie including every instrument allocation, current settings, and per-instrument results.
fetch_account_cashGet a detailed breakdown of your account balance, including available cash, invested capital, P/L, and blocked funds.
fetch_account_infoRetrieve account metadata such as the currency and unique account identifier.
fetch_all_open_positionsRetrieve your current holdings with live prices, quantities, cost basis, and unrealised gains for every position.
fetch_dividend_summaryAnalyse your dividend income history.
fetch_exports_listGet a list of all previously generated CSV account exports with their status and download links.
fetch_historical_order_datawrite actionRetrieve past orders (filled, cancelled, rejected) along with their execution details and timestamps.
fetch_order_by_idwrite actionRetrieve a single pending order by ID, showing its current status, fill progress, and price parameters.
fetch_ordersList all active equity orders (limit, stop, stop-limit) that are waiting to be filled.
fetch_paid_out_dividendsRetrieve dividend payouts you have received, including per-share amounts, payment dates, and totals.
fetch_piesList all your pies with their cash balances, dividend info, goal progress, and investment performance.
fetch_portfolio_performanceBuild a performance report across all positions.
fetch_portfolio_summaryProduce a full portfolio snapshot in one call.
fetch_recent_activityGet a unified timeline of recent trades and account movements.
fetch_transaction_listRetrieve account movements such as deposits, withdrawals, fees, and internal transfers with pagination support.
place_limit_orderwrite actionSubmit a limit order that executes only when the instrument reaches your target price.
place_market_orderwrite actionExecute a market order at the current price for the given instrument.
place_stop_limit_orderwrite actionSubmit a combined stop-limit order: once the stop price is hit, a limit order is placed at your specified limit price instead of executing at market.
place_stop_orderwrite actionSubmit a stop order that triggers a market execution once the instrument hits the specified stop price.
request_csv_exportQueue a CSV export of your account history. When finished, the download link appears in the exports list.
search_exchangeLook up exchanges, with optional filtering by name or numeric ID.
search_instrumentLook up tradeable instruments, with optional filtering by ticker or name.
search_position_by_tickerLook up a single position by its ticker symbol to get real-time details on that specific holding.
update_piewrite actionModify an existing pie's configuration. You must provide a new name when updating.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan15 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 39 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Trading212 compares
Against every graded E-commerce MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 67% of 2,174 E-commerce servers
- Tools
- 28
- the typical E-commerce server has 6
- Tools that change things
- 36%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 8
- more than 90% of 1,047 E-commerce servers
- Downloads a week
- 122
- more than 71% of 411 E-commerce servers with a package
What its tools let an agent do: 18 read · 1 create · 7 change · 2 delete
Install Trading212 in Claude Code, Cursor or VS Code
claude mcp add trading212-mcp-server -- uvx trading212-mcp-server
What the publisher says
From the Trading212 repository's README, as published. We do not edit it. Read it on GitHub
Trading 212 MCP Server
<!-- mcp-name: io.github.KyuRish/trading212-mcp-server -->
Connect your AI assistant to your Trading 212 brokerage account. Ask questions about your portfolio, place trades, manage pies, and analyze dividends - all through natural language.
Works with Claude Desktop, Claude Code, ChatGPT, Gemini, Cursor, Windsurf, and any client that supports the Model Context Protocol (MCP).
Why this server?
- 32 tools covering the full Trading 212 API, plus 4 analytics tools that combine multiple API calls into actionable insights
- Smart rate limiting - reads T212's rate limit headers, auto-waits, and retries on 429 (up to 3 times). No rate limit errors leak to your AI
- Zero config - install from PyPI, add your API key, done. No Docker, no database, no Redis
- Typed responses - every tool returns structured Pydantic models, not raw JSON
- Paper trading - set ENVIRONMENT=demo to test with virtual money first
What can it do?
Analytics tools
These combine multiple API calls into single high-level responses:
- fetchportfoliosummary - Complete snapshot: total value, P&L, cash, top holdings, allocation
- fetchportfolioperformance - Per-position returns with dividends, best/worst performers
- fetchdividendsummary - Income analysis grouped by ticker and month
- fetchrecentactivity - Combined timeline of trades and transactions
Quick start
Install
uvx trading212-mcp-serverOr via pip:
pip install trading212-mcp-serverGet your API credentials
From the Trading 212 app: Settings > API (Beta). You need both the API Key and Secret - the server uses Basic Auth.
Connect to Claude Desktop
Add to claudedesktopconfig.json (Windows: %APPDATA%\Claude\, Mac: ~/Library/Application Support/Claude/):
{
"mcpServers": {
"trading212": {
"command": "uvx",
"args": ["trading212-mcp-server"],
"env": {
"TRADING212_API_KEY": "<your-api-key>",
"TRADING212_API_SECRET": "<your-api-secret>",
"ENVIRONMENT": "live"
}
}
}
}Connect to Claude Code
claude mcp add trading212 -- uvx trading212-mcp-serverThen set the environment variables in your shell or .env file.
Other clients (Cursor, Windsurf, ChatGPT, etc.)
Same command and env vars - configure per your client's MCP docs. Set ENVIRONMENT to demo for paper trading.
From source
git clone https://github.com/KyuRish/trading212-mcp-server.git
cd trading212-mcp-server
cp .env.example .env # fill in your API keys
uv sync
uv run -m trading212_mcp_server.serverShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Trading212: common questions
- Is Trading212 MCP server safe?
- Mostly: it is graded B (78/100). Read the Trading212 safety report
- How do I install Trading212?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Trading212 need an API key?
- Yes. The registry entry asks for
TRADING212_API_KEY,TRADING212_API_SECRET. - Is Trading212 maintained?
- The last commit was 76 days ago (2026-08-20). The latest release is v0.1.1.
- What can I use instead of Trading212?
- Servers from other publishers that do the same job: Polymarket Paper Trader MCP server, Avito MCP server and Robinhood Crypto MCP server. Compare all Trading212 alternatives.
- How does Trading212 compare with other E-commerce MCP servers?
- safety score 78/100 (higher than 67% of 2,174 E-commerce servers); tools 28 (the typical E-commerce server has 6); tools that change things 36% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Trading212
Same job from other publishers: the closest match first, then the best rated.
- Polymarket Paper TraderPolymarket paper trading for AI agents: $10k paper money, real order books, official fees.not reviewedGrowingA
- AvitoMCP server for Avito: chats, listings, orders and analytics, with previews and confirmations.not reviewedGrowingB
- Robinhood CryptoRobinhood Crypto Trading API for AI agents: quotes, holdings, orders read-only; opt-in trading.not reviewedGrowingB
- TikTok ShopRead-only TikTok Shop Partner API: orders, finance, products and analytics across shops.not reviewedGrowingA
- PostHog MCP ServerOfficial PostHog MCP Server for product analytics, feature flags, experiments, and more.not reviewedEstablishedA