trading-212-mcp
Click on "Deploy 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 show me my account balance and open positions"
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
A small, read-only Model Context Protocol server for the Trading 212 Public API. It lets an AI agent (Claude, Cursor, etc.) look at your Trading 212 account: balances, positions, orders, dividends and transactions.
It cannot place, change or cancel orders.
Unofficial project, not affiliated with Trading 212. The Trading 212 API is in beta and only supports Invest and Stocks ISA accounts.
Tools
Tool | Description |
| Cash, invested capital, P&L and total account value |
| Open positions (optional |
| Find instruments by ticker, name or ISIN (cached for 10 min) |
| Exchanges and their opening hours |
| Active orders that are not yet filled |
| A single pending order by ID |
| Past orders, paginated ( |
| Dividends received, paginated ( |
| Deposits and withdrawals, paginated ( |
Paginated tools return { items, nextCursor }. To get the next page, pass nextCursor back as cursor.
Related MCP server: Trading212 MCP Server
Setup
1. Get API credentials
In the Trading 212 app, go to Settings → API (Beta) and generate an API key. You get a key and a secret. This server only reads data, so give the key read permissions only.
Keys are tied to either your demo (practice) or live account. Set T212_ENV=demo if you are using a practice-account key.
2. Add to your MCP client
The server runs over stdio and can be launched with npx straight from GitHub. npx builds it on
first install, so you don't need to clone anything.
Grok (Connectors → Add a custom connector)
Field | Value |
Type | Command |
Command |
|
Arguments |
|
| |
Environment |
|
Claude Code
claude mcp add trading-212 \
-e T212_API_KEY=your-key \
-e T212_API_SECRET=your-secret \
-e T212_ENV=live \
-- npx -y github:joeyeomans/trading-212-mcpClaude Desktop / Cursor / other clients (mcpServers JSON config)
{
"mcpServers": {
"trading-212": {
"command": "npx",
"args": ["-y", "github:joeyeomans/trading-212-mcp"],
"env": {
"T212_API_KEY": "your-key",
"T212_API_SECRET": "your-secret",
"T212_ENV": "live"
}
}
}
}If your client has no environment variable field, keep the credentials in a .env-style file
(see .env.example) and add the arguments --config /absolute/path/to/.env.
Configuration
Variable | Required | Default | Description |
| yes | API key | |
| yes | API secret | |
| no |
|
|
Priority, highest first: flags (--api-key, --api-secret, --env), then environment
variables, then the --config file.
Rate limits
Trading 212 sets rate limits per account, for example 1 request every 5s for the account summary and 1 request every 50s for the instrument list. If you hit a limit, the tool returns an error that says when the limit resets.
Development
git clone https://github.com/joeyeomans/trading-212-mcp.git
cd trading-212-mcp
npm install # also builds dist/
npm run dev # tsc --watchTo run your local build, point your client at node /absolute/path/to/trading-212-mcp/dist/index.js.
License
MIT
Available Tools
9 toolsget_account_summaryAccount summaryBRead-only
Cash, invested capital, unrealised P&L and total value of the Trading 212 account.
Inputs: no named parameters.
get_dividend_historyDividend historyBRead-only
Dividends paid out to the account, newest first. Paginated via nextCursor.
Inputs: limit, cursor, ticker.
get_exchangesExchangesBRead-only
Exchanges available on Trading 212 and their working schedules (opening hours).
Inputs: no named parameters.
get_order_historyOrder historyARead-only
Historical (filled, cancelled, rejected) orders, newest first. Paginated via nextCursor.
Inputs: limit, cursor, ticker.
get_pending_orderPending orderCRead-only
A single pending order by its ID.
Inputs: id (required).
get_pending_ordersPending ordersBRead-only
Orders that are currently active (not yet filled, cancelled or expired).
Inputs: no named parameters.
get_positionsOpen positionsARead-only
All open positions with quantity, average price, current price and P&L. Optionally filter by ticker.
Inputs: ticker.
get_transaction_historyTransaction historyARead-only
Deposits, withdrawals and other cash movements, newest first. Paginated via nextCursor.
Inputs: time, limit, cursor.
search_instrumentsSearch instrumentsARead-only
Search tradable instruments by ticker, name or ISIN. Use this to find the Trading 212 ticker (e.g. AAPL_US_EQ) for a company.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target clearly distinct resources (account, positions, instruments, exchanges, dividends, transactions). The main risk is get_pending_orders vs get_pending_order, which differ only by plurality, though the descriptions make the list-vs-single distinction clear. get_pending_orders vs get_order_history is also well-differentiated by 'active' vs 'historical'.
Every tool follows a consistent get_*/search_* verb_noun pattern with snake_case throughout. The get_pending_orders / get_pending_order pair is a predictable singular/plural convention rather than an inconsistency.
Nine tools is well-scoped for a read-focused trading account API. Each tool earns its place covering a distinct data domain without redundancy.
Read coverage is strong across account, positions, instruments, exchanges, orders, dividends, and cash transactions. However, the surface is read-only: there are no tools to place or cancel orders, so an agent can inspect pending orders but cannot act on them, a notable gap for a trading server.
Maintenance
Related MCP Connectors
Read-only access to your MetaTrader 4 and 5 accounts for AI agents: balances, open positions, trade history with win rate, live quotes, symbol specs and candles. It cannot place, modify or close orders.
Read-only MetaTrader 5 for AI agents: balances, positions, history and prices. Sign in with OAuth.
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Trading 212 investment accounts for portfolio tracking, account management, and real-time order execution. It supports managing investment pies, analyzing historical data, and monitoring market performance across multiple instrument types.232MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Trading212 brokerage accounts, including portfolio analysis, order placement (demo mode), and investment pie management.5MIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Trading 212 accounts, enabling AI assistants to retrieve portfolio positions, account summaries, instrument data, and transaction history.29 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read a Trading 212 portfolio (balances, positions, orders, history) and place trades via the public API, supporting both demo and live environments.MIT