Trading212 Community Server
@RohanAnandPandit
About Trading212 Community Server
The Trading212 MCP server is a Model Context Protocol server implementation that provides seamless data connectivity to the Trading212 trading platform enabling advanced interaction capabilities via the public API.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"trading212": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"TRADING212_API_KEY",
"mcp/trading212"
],
"env": {
"TRADING212_API_KEY": "<YOUR_API_KEY>"
}
}
}
}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 Community Server?
The Trading212 Community Server is a Model Context Protocol (MCP) server that connects to the Trading212 trading platform API. It enables AI assistants to manage accounts, place orders, access market data, and analyse trading activity for Trading212 users.
How to use Trading212 Community Server?
Clone the repository, copy .env.example to .env, and set your API key and environment (demo or live). Install dependencies with uv install or pip install -r requirements.txt, then run uv run src/server.py. Configure your MCP client (e.g., Claude Desktop) with the provided Docker or uv configuration, replacing placeholders with your API key and paths.
Key features of Trading212 Community Server
- Account metadata, cash balance, and portfolio monitoring
- Market, limit, stop, and stop-limit order placement
- Pie (portfolio bucket) creation, duplication, update, and deletion
- Order history with pagination and cancellation
- Historical trading data and dividend exports
- Instrument and exchange search with working schedules
- Currency-aware financial analysis via MCP prompts
Use cases of Trading212 Community Server
- Automate portfolio rebalancing by managing pies programmatically
- Place and cancel equity orders through a conversational AI interface
- Retrieve real-time account cash and open positions for reporting
- Analyse historical trading data with currency-context awareness
- Fetch export CSVs of orders, dividends, and transactions for tax purposes
FAQ from Trading212 Community Server
How do I generate a Trading212 API key?
Generate an API key from your Trading212 account settings. See the Trading212 help centre. For a demo account, set ENVIRONMENT=demo in .env; for a live account, set ENVIRONMENT=live.
What are the runtime requirements?
Python 3.11 or later, plus Pydantic ≥ 2.11.4 and the Hishel library. Dependencies are listed in requirements.txt.
How do I run the server using Docker?
Build the image with docker build -t mcp/trading212-mcp-server . and configure your MCP client to run the container with the -e TRADING212_API_KEY environment variable.
Can I use this with a Trading212 demo account?
Yes. Set ENVIRONMENT=demo in your .env file and use the API key generated from the demo account.
Is this an official Trading212 tool?
No. This is an unofficial implementation of the Trading212 MCP protocol. Always consult official Trading212 documentation and terms of service before use.
More Other MCP servers

EverArt
modelcontextprotocolModel Context Protocol Servers
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
Comments