Trading212 MCP Server
by lukeplausin
This MCP server allows you to connect agentic AI to your Trading212 brokerage account, enabling AI-driven analysis, suggestions, and management of your portfolio and investment pies. It supports actions like analyzing your portfolio, suggesting stocks, and managing investment pies, but users should be aware of the inherent risks of AI-driven trading and test the connector in demo mode first.
Last updated: N/A
What is Trading212 MCP Server?
The Trading212 MCP Server is a tool that allows you to connect an AI agent to your Trading212 brokerage account. It exposes resources and tools to allow the AI to interact with your account, such as analyzing your portfolio, suggesting stocks, and managing investment pies.
How to use Trading212 MCP Server?
The server can be used with Claude Desktop, either via uv or Docker. You need to configure the claude_desktop_config.json
file to point to the server. The server can be run in SSE mode for remote access, but it is recommended to use a reverse proxy with HTTPS and Mutual TLS for security. You will need to provide your Trading212 API key.
Key features of Trading212 MCP Server
Connects AI agents to Trading212 brokerage accounts
Provides tools for order management (place_order, cancel_order, create_pie, update_pie)
Offers access to account data (get_account_info, get_portfolio, get_account_cash)
Provides market data retrieval (get_all_instruments, get_instrument_list, get_instrument, search_instruments)
Supports SSE mode for remote access
Caches API results to mitigate rate limits
Use cases of Trading212 MCP Server
Allow an AI to analyze and critique your portfolio
Get the AI to suggest stocks and order them on your behalf (in practice mode)
Allow the AI to manage/update a Trading212 investment pie on your behalf
Allow the AI to create a Trading212 investment pie on your behalf
FAQ from Trading212 MCP Server
Is this safe to use with my real Trading212 account?
Is this safe to use with my real Trading212 account?
Using an AI to manage your stock broker is inherently risky. Test in demo mode first and implement appropriate risk controls.
How do I secure my API key?
How do I secure my API key?
Avoid storing your API key in plaintext. Use a secret manager like keyring or 1password.
What is SSE mode?
What is SSE mode?
SSE (server-side events) mode allows you to run the tool as an HTTP service, potentially on a different server than the AI client.
How can I secure the server if I'm accessing it over the internet?
How can I secure the server if I'm accessing it over the internet?
Host the tool server behind a reverse proxy that implements HTTPS encryption. Mutual TLS is also recommended.
What are the API rate limits?
What are the API rate limits?
The Trading212 API has aggressive rate limits. The tool attempts to cache API results in-memory or using Redis to mitigate this.