Trading 212 MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Trading 212 MCP Servershow my portfolio value and cash balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Trading 212 MCP Server
An MCP (Model Context Protocol) server that wraps the Trading 212 Public API v0, enabling AI agents to interact with your Trading 212 brokerage account through natural language.
Features
16 tools across 5 categories:
Category | Tools | Description |
Accounts |
| Cash breakdown, investment metrics, total value |
Instruments |
| Tradable instruments and exchange schedules |
Positions |
| All open positions with P&L and wallet impact |
Orders |
| Full order lifecycle management |
History |
| Historical data with pagination and CSV export |
Related MCP server: DhanHQ MCP Server
Prerequisites
A Trading 212 Invest or Stocks ISA account
API key + secret generated from the Trading 212 app (Settings → API)
Node.js ≥ 18
Setup
# Clone and install
cd trading212-mcp
npm install
# Build
npm run buildConfiguration
Set these environment variables before running:
Variable | Required | Description |
| ✅ | Your Trading 212 API key |
| ✅ | Your Trading 212 API secret |
| ❌ |
|
Usage with Claude Desktop / Gemini CLI
Add to your MCP config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"trading212": {
"command": "node",
"args": ["c:/GenAI/trading212-mcp/dist/index.js"],
"env": {
"T212_API_KEY": "your_api_key",
"T212_API_SECRET": "your_api_secret",
"T212_ENV": "demo"
}
}
}
}Usage with VS Code / Copilot
Add to .vscode/mcp.json:
{
"servers": {
"trading212": {
"command": "node",
"args": ["c:/GenAI/trading212-mcp/dist/index.js"],
"env": {
"T212_API_KEY": "your_api_key",
"T212_API_SECRET": "your_api_secret",
"T212_ENV": "demo"
}
}
}
}Development
# Run in development mode (no build step)
npm run dev⚠️ Important Notes
Default environment is
demo(paper trading) — no real money at riskOrder tools are NOT idempotent — duplicate calls create duplicate orders
Sell convention: use a negative quantity (e.g.
-10.5sells 10.5 shares)All rate limits are enforced per-account by Trading 212's servers
API is currently in beta — see Trading 212 API docs
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/senjoyee/trading212-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server