Trading212 MCP Server

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

Local serverstdio

What is the Trading212 MCP server?

If you already use Trading212, the trading212 mcp server is the piece that lets your assistant work with it directly. MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics.

What the server does

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.

  • 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

Installation

The server ships on PyPI as trading212-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Account — The Account tool exposed by this server
  • Trading — The Trading tool exposed by this server
  • Pies — The Pies tool exposed by this server
  • History — The History tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: TRADING212_API_KEY, TRADING212_API_SECRET, ENVIRONMENT. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Trading212's toolset — Account, Trading, Pies and 1 more — is a fair guide to whether it matches your workflow. It is maintained by KyuRish; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Trading212's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
AccountThe Account tool exposed by this server.
TradingThe Trading tool exposed by this server.
PiesThe Pies tool exposed by this server.
HistoryThe History tool exposed by this server.

How to install the Trading212 MCP server

{
  "mcpServers": {
    "trading212": {
      "command": "uvx",
      "args": ["trading212-mcp-server"],
      "env": {
        "TRADING212_API_KEY": "<your-api-key>",
        "TRADING212_API_SECRET": "<your-api-secret>",
        "ENVIRONMENT": "live"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
TRADING212_API_KEYCredential the server authenticates with.Yes
TRADING212_API_SECRETCredential the server authenticates with.Yes
ENVIRONMENTConfiguration value read at startup.Optional

Example prompts to try

  • Use Trading212 to Account.
  • Use Trading212 to Trading.
  • Use Trading212 to Pies.

Frequently asked questions

It connects Trading212 to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Account, Trading, Pies, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Trading212 directly.