Trading 212
🐍 ☁️ - Trading 212 API integration with 28 tools for portfolio management
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
Maintainer
Works with
Installation
PIP
pip install trading212-mcp-serverManual Installation
pip install trading212-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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-serverTest 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-serverAdd 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"
}
}
}
}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.
Trading 212 Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to Trading 212? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
TradingView
★ 2.8kReal-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
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.
Set Up Trading 212 in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.