MCP.Market

Trading212 MCP server

by KyuRish·io.github.KyuRish/trading212-mcp-server·v0.1.1·8 stars

MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
Growing

8 stars122 downloads/wk

Reviews

Write one

Nobody 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 posts

Read from the package source without running it. The installed server may list more.

  • cancel_order_by_idwrite action

    Remove a pending order from the book. This cannot be undone once executed.

  • create_piewrite action

    Build a new pie with the given instruments and weights.

  • delete_piewrite action

    Permanently remove a pie. Instruments inside it become standalone positions in your portfolio.

  • duplicate_pie

    Clone an existing pie into a new one with identical instrument allocations.

  • fetch_a_pie

    Get full details for a single pie including every instrument allocation, current settings, and per-instrument results.

  • fetch_account_cash

    Get a detailed breakdown of your account balance, including available cash, invested capital, P/L, and blocked funds.

  • fetch_account_info

    Retrieve account metadata such as the currency and unique account identifier.

  • fetch_all_open_positions

    Retrieve your current holdings with live prices, quantities, cost basis, and unrealised gains for every position.

  • fetch_dividend_summary

    Analyse your dividend income history.

  • fetch_exports_list

    Get a list of all previously generated CSV account exports with their status and download links.

  • fetch_historical_order_datawrite action

    Retrieve past orders (filled, cancelled, rejected) along with their execution details and timestamps.

  • fetch_order_by_idwrite action

    Retrieve a single pending order by ID, showing its current status, fill progress, and price parameters.

  • fetch_orders

    List all active equity orders (limit, stop, stop-limit) that are waiting to be filled.

  • fetch_paid_out_dividends

    Retrieve dividend payouts you have received, including per-share amounts, payment dates, and totals.

  • fetch_pies

    List all your pies with their cash balances, dividend info, goal progress, and investment performance.

  • fetch_portfolio_performance

    Build a performance report across all positions.

  • fetch_portfolio_summary

    Produce a full portfolio snapshot in one call.

  • fetch_recent_activity

    Get a unified timeline of recent trades and account movements.

  • fetch_transaction_list

    Retrieve account movements such as deposits, withdrawals, fees, and internal transfers with pagination support.

  • place_limit_orderwrite action

    Submit a limit order that executes only when the instrument reaches your target price.

  • place_market_orderwrite action

    Execute a market order at the current price for the given instrument.

  • place_stop_limit_orderwrite action

    Submit 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 action

    Submit a stop order that triggers a market execution once the instrument hits the specified stop price.

  • request_csv_export

    Queue a CSV export of your account history. When finished, the download link appears in the exports list.

  • search_exchange

    Look up exchanges, with optional filtering by name or numeric ID.

  • search_instrument

    Look up tradeable instruments, with optional filtering by ticker or name.

  • search_position_by_ticker

    Look up a single position by its ticker symbol to get real-time details on that specific holding.

  • update_piewrite action

    Modify 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

no findings
  • 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
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

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
Add to Cursor

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-server

Or via pip:

pip install trading212-mcp-server

Get 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-server

Then 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.server

Shortened. 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.

All Trading212 alternatives →
  • Polymarket Paper Trader
    Polymarket paper trading for AI agents: $10k paper money, real order books, official fees.
    A
  • Avito
    MCP server for Avito: chats, listings, orders and analytics, with previews and confirmations.
    B
  • Robinhood Crypto
    Robinhood Crypto Trading API for AI agents: quotes, holdings, orders read-only; opt-in trading.
    B
  • TikTok Shop
    Read-only TikTok Shop Partner API: orders, finance, products and analytics across shops.
    A
  • PostHog MCP Server
    Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
    A

More from KyuRish →