Trading212 MCP Server

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

Local serverstdio

What is the Trading212 MCP Server?

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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

MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.