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
コメント