Trading 212

v0.1.1Finance & Fintechstable

🐍 ☁️ - Trading 212 API integration with 28 tools for portfolio management

mcpmcp-server
Share:
32
Stars
0
Downloads
0
Weekly
0/5

What is Trading 212?

Trading 212 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🐍 ☁️ - trading 212 api integration with 28 tools for portfolio management

🐍 ☁️ - Trading 212 API integration with 28 tools for portfolio management

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

Manage investment portfolios with 28 specialized tools for Trading 212.
Execute portfolio operations through AI-assisted natural language interface.
KyuRish

Maintainer

LicenseMIT License
Languagepython
Versionv0.1.1
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

PIP

pip install trading212-mcp-server

Manual Installation

pip install trading212-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Trading 212

The Trading 212 MCP Server integrates the Trading 212 brokerage API with AI clients through the Model Context Protocol, providing 32 tools for portfolio management, order execution, account monitoring, and investment pie operations. It supports both live and demo (paper trading) environments, allowing traders to query holdings, place market and limit orders, review dividend history, and manage pies through natural language conversations with Claude.

Prerequisites

  • Python 3.10 or later and uv package manager (or pip) installed
  • A Trading 212 account with API access enabled
  • TRADING212_API_KEY and TRADING212_API_SECRET from the Trading 212 app under Settings → API (Beta)
  • An MCP client such as Claude Desktop
1

Obtain your Trading 212 API credentials

Open the Trading 212 mobile or web app, go to Settings → API (Beta), and generate a new API key and secret. Store these securely — they grant full account access.

2

Install the server package

Install trading212-mcp-server from PyPI using uvx for isolated execution, or pip for a standard installation.

pip install trading212-mcp-server
3

Test the server from the command line

Run the server once with environment variables set to confirm it starts and connects to the Trading 212 API. Use ENVIRONMENT=demo for paper trading until you are confident in your setup.

TRADING212_API_KEY=your_key TRADING212_API_SECRET=your_secret ENVIRONMENT=demo uvx trading212-mcp-server
4

Add to your MCP client configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS to add the server. Use ENVIRONMENT=demo for testing and ENVIRONMENT=live when ready for real trading.

{
  "mcpServers": {
    "trading212": {
      "command": "uvx",
      "args": ["trading212-mcp-server"],
      "env": {
        "TRADING212_API_KEY": "your_api_key",
        "TRADING212_API_SECRET": "your_api_secret",
        "ENVIRONMENT": "demo"
      }
    }
  }
}
5

Restart Claude Desktop and verify

Fully quit and reopen Claude Desktop. Ask it to show your cash balance or portfolio snapshot to confirm the connection is working.

Trading 212 Examples

Client configuration

Claude Desktop configuration using uvx for isolated execution. Switch ENVIRONMENT from demo to live when ready to interact with real funds.

{
  "mcpServers": {
    "trading212": {
      "command": "uvx",
      "args": ["trading212-mcp-server"],
      "env": {
        "TRADING212_API_KEY": "your_api_key",
        "TRADING212_API_SECRET": "your_api_secret",
        "ENVIRONMENT": "live"
      }
    }
  }
}

Prompts to try

Interact with your Trading 212 account using natural language. Always start with the demo environment to verify behavior before switching to live.

- "Show me my current portfolio P&L breakdown by position"
- "What is my available cash balance?"
- "Place a market buy order for 5 shares of AAPL"
- "Show my dividend history for the past 6 months"
- "Create a pie called Tech Growth with AAPL, MSFT, and NVDA in equal proportions"
- "Cancel all open limit orders"

Troubleshooting Trading 212

Authentication errors when starting the server

Verify that TRADING212_API_KEY and TRADING212_API_SECRET match exactly what is shown in the Trading 212 app under Settings → API (Beta). Keys generated for the demo environment will not work against the live environment and vice versa — ensure ENVIRONMENT matches the key type.

Order placement fails with 'instrument not found' or validation errors

Use the market data search tools to find the exact instrument ticker that Trading 212 uses before placing orders. Tickers on Trading 212 sometimes differ from standard exchange symbols. Confirm the instrument is available in your account's market region.

uvx command not found when starting the server

Install uv with 'pip install uv' or 'curl -LsSf https://astral.sh/uv/install.sh | sh'. Alternatively, replace the command with 'python' and args with ['-m', 'trading212_mcp_server.server'] and install the package via pip instead.

Frequently Asked Questions about Trading 212

What is Trading 212?

Trading 212 is a Model Context Protocol (MCP) server that 🐍 ☁️ - trading 212 api integration with 28 tools for portfolio management It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Trading 212?

Install via pip with: pip install trading212-mcp-server. Then configure your AI client to connect to this MCP server.

Which AI clients work with Trading 212?

Trading 212 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Trading 212 free to use?

Yes, Trading 212 is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "trading212": { "command": "pip", "args": ["install", "trading212-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Trading 212?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides