Trading212 Community Server
About
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.
Details
- Author
- RohanAnandPandit
- Downloads
- 293
- Categories
- Other
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Trading212 Community ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"trading212 community server": {
"trading212": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"TRADING212_API_KEY",
"mcp/trading212"
],
"env": {
"TRADING212_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
}
McpServers
{
"trading212": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"TRADING212_API_KEY",
"mcp/trading212"
],
"env": {
"TRADING212_API_KEY": "<YOUR_API_KEY>"
}
}
}
Trading212 MCP Server
Overview
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.
Core Features
Trading212 API Integration
- Comprehensive account management: - Account metadata retrieval - Cash balance monitoring - Portfolio management with positions tracking - Advanced order handling: - Market orders - Limit orders - Stop-limit orders - Order history and management - Portfolio management: - Pies (portfolio buckets) management - Position tracking and search - Historical order data with paginationMarket Data Access
- Tradeable instruments information - Exchange data with working schedules - Historical trading data access - Real-time market connectivityFinancial Analysis Tools
- Professional financial analysis capabilities - Currency-aware data processing - Comprehensive trading data analysis - Risk management toolsMCP Protocol Support
- Full MCP protocol implementation - Resource-based API endpoints - Tool-based functionality - Prompt-based analysis capabilitiesTechnical Requirements
- Python >= 3.11 (as specified in .python-version)
- Pydantic >= 2.11.4
- Hishel
Tools
Instruments Metadata
-search_exchange: Fetch exchanges, optionally filtered by name or ID
- search_instrument: Fetch instruments, optionally filtered by ticker or name
Pies
-fetch_pies: Fetch all pies
- duplicate_pie: Duplicate a pie
- create_pie: Create a new pie
- update_pie: Update a specific pie by ID
- delete_pie: Delete a pie
Equity Orders
-fetch_all_orders: Fetch all equity orders
- place_limit_order: Place a limit order
- place_market_order: Place a market order
- place_stop_order: Place a stop order
- place_stop_limit_order: Place a stop-limit order
- cancel_order: Cancel an existing order by ID
- fetch_order: Fetch a specific order by ID
Account Data
-fetch_account_cash: Fetch account cash balance
- fetch_account_metadata: Fetch account id and currency
Personal Portfolio
-fetch_open_positions: Fetch all open positions
- search_specific_position_by_ticker: Search for a position by ticker using POST endpoint
- fetch_open_position_by_ticker: Fetch a position by ticker (deprecated)
Historical items
-fetch_historical_order_data: Fetch historical order data with pagination
- fetch_paid_out_dividends: Fetch historical dividend data with pagination
- fetch_exports_list: Lists detailed information about all csv account exports
- request_export_csv: Request a CSV export of the account's orders, dividends and transactions history
- fetch_transaction_list: Fetch superficial information about movements to and from your account
Resources
Account Resources
-trading212://account/metadata
- trading212://account/cash
- trading212://account/portfolio
- trading212://account/portfolio/{ticker}
Order Resources
-trading212://orders
- trading212://orders/{order_id}
Portfolio Resources
-trading212://pies
- trading212://pies/{pie_id}
Market Resources
-trading212://instruments
- trading212://exchanges
Reports Resources
-trading212://history/exports
Prompts
Data Analysis
-analyse_trading212_data: Analyse trading212 data with currency context
The prompt includes:
- Professional financial expertise
- Currency-aware analysis
- Cautious financial advice
- Dynamic currency information from account data
Installation
Clone repository
git clone https://github.com/RohanAnandPandit/trading212-mcp-server.git
Environment Configuration
Copy.env.example to .env and configure:
```bash
cp .env.example .envSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



