MCP.so
Sign In

Trading212 MCP Server

@lukeplausin

About Trading212 MCP Server

A Model Context Protocol (MCP) connector tool for interfacing agentic AI with the Trading212 broker

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-server-trading212": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/project",
        "run",
        "--api-key",
        "<KEEP_THIS_SECRET>",
        "--environment",
        "demo",
        "mcp-server-trading212",
        "--host",
        "127.0.0.1",
        "--port",
        "6677",
        "--sse"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Trading212 MCP Server?

This server connects agentic AI to a Trading212 brokerage account, allowing the AI to analyse portfolios, suggest stocks, manage investment pies, and perform account queries. It is designed for users who want to give an AI controlled access to their Trading212 account while respecting aggressive API rate limits through caching.

How to use Trading212 MCP Server?

Install via uv or Docker and configure it in claude_desktop_config.json by specifying the Trading212 API key and environment (demo or live). For remote hosting, the server can run in SSE mode behind a reverse proxy. Example configuration uses uv run with --api-key and --environment flags, or the Docker image can be built and run.

Key features of Trading212 MCP Server

  • Caches API results in‑memory (default 5‑minute TTL) or optionally via Redis.
  • Resources to view portfolio, account info, cash, and instrument data.
  • Tools to place orders (practice mode only), update investment pies, and search instruments.
  • Supports STDIO and SSE transport modes.
  • Can run locally or as a remote HTTP service.

Use cases of Trading212 MCP Server

  • AI analyses current portfolio holdings and provides critique or insights.
  • AI suggests stocks and places orders (practice‑mode only due to API limits).
  • AI updates an existing Trading212 investment pie based on strategy changes.
  • AI searches for instruments by company name using fuzzy matching.

FAQ from Trading212 MCP Server

Can the AI place real trades?

No – due to a Trading212 API restriction, orders can only be created in practice (demo) mode. The live environment is supported for all other operations.

How does caching work and how can I use Redis?

The server caches API responses in‑memory for 5 minutes by default. If a local Redis server is running on port 6379, the server will automatically use it instead of the in‑memory cache.

What security precautions should I take?

Always test on the demo account first. If hosting remotely, use a reverse proxy with HTTPS and ideally Mutual TLS. Avoid storing the API key in plaintext; consider a secret manager.

What transports are available?

The server supports the standard STDIO transport (used with Claude Desktop) and SSE (Server‑Sent Events) mode for running as an HTTP service.

What license covers this server?

It is released under the MIT License. By using it you agree to the license terms, which include indemnity from any financial losses resulting from its use.

Frequently asked questions

Can the AI place real trades?

No – due to a Trading212 API restriction, orders can only be created in practice (demo) mode. The live environment is supported for all other operations.

How does caching work and how can I use Redis?

The server caches API responses in‑memory for 5 minutes by default. If a local Redis server is running on port 6379, the server will automatically use it instead of the in‑memory cache.

What security precautions should I take?

Always test on the demo account first. If hosting remotely, use a reverse proxy with HTTPS and ideally Mutual TLS. Avoid storing the API key in plaintext; consider a secret manager.

What transports are available?

The server supports the standard STDIO transport (used with Claude Desktop) and SSE (Server‑Sent Events) mode for running as an HTTP service.

What license covers this server?

It is released under the MIT License. By using it you agree to the license terms, which include indemnity from any financial losses resulting from its use.

Comments

Basic information

Category

Other

License

MIT license

Transports

stdio

Author

lukeplausin

More Other MCP servers