t212-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| T212_API_KEY | Yes | Required. API key from the Trading 212 app. | |
| T212_BASE_URL | No | Overrides the API host. For testing against a stub. | |
| T212_LOG_LEVEL | No | debug, info, warn, error, silent. | info |
| T212_API_SECRET | No | Secret, if your key was issued as a key/secret pair. Selects HTTP Basic auth. | |
| T212_TIMEOUT_MS | No | Per-request timeout. | 15000 |
| T212_ENVIRONMENT | No | demo (practice money) or live (real money). | demo |
| T212_MAX_RETRIES | No | Retries rate limits, network faults and 5xx. | 3 |
| T212_CACHE_TTL_MS | No | Base cache lifetime, scaled per endpoint. | 300000 |
| T212_ALLOW_EXPORTS | No | Exposes the CSV export tools. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| t212_get_account_cashA | Returns the account's cash breakdown: free cash available to invest, total account value, amount currently invested, unrealised profit or loss, cash held inside pies, and cash blocked by pending orders. Use this for any question about how much money is in the account or how it is performing overall. Figures are in the account's own currency — call t212_get_account_info if you need to know which currency that is. |
| t212_get_account_infoA | Returns the account identifier and the currency every monetary figure from this server is reported in. Call this once when you need to label amounts correctly; the other tools return bare numbers in this currency. |
| t212_list_positionsA | Returns every open position in the account: ticker, quantity, average buy price, current price, and unrealised profit or loss (including the portion caused by currency movement). This is the tool for 'what do I hold', 'how is my portfolio doing', or any question about a specific holding when you do not already know its exact Trading 212 ticker. Returns the whole portfolio in one call, so prefer it over repeated single-position lookups. |
| t212_get_positionA | Returns one open position by its exact Trading 212 ticker (for example AAPL_US_EQ, not AAPL). Only use this when you already know the exact ticker — otherwise call t212_list_positions, which returns everything in a single request, or t212_search_instruments to resolve a name to a ticker. Fails if the account holds no such position. |
| t212_search_instrumentsA | Finds instruments in the Trading 212 catalogue by company name, symbol or ISIN, returning the exact tickers other tools need (for example AAPL_US_EQ). Use this first whenever you have a company name but not a ticker. Results are ranked, with exact symbol and ISIN matches first. Note this searches everything Trading 212 offers, not the account's holdings — use t212_list_positions for what is actually owned. |
| t212_list_exchangesA | Returns the exchanges Trading 212 supports and their working schedules, including the time events that mark when each session opens and closes. Use this to answer whether a market is open, or to explain why an instrument cannot be traded right now. Schedules are verbose, so they are omitted unless explicitly requested. |
| t212_list_pending_ordersA | Returns orders that are placed but not yet executed, with their type, limit or stop price, and how much has filled so far. Use this for 'what orders do I have open'. This server is read-only: it can show pending orders but cannot place, amend or cancel them. |
| t212_list_order_historyA | Returns past, already-executed orders newest first: what was bought or sold, at what price, and any taxes charged. Use this for questions about trading activity or realised results. Results are paginated — pass the returned nextCursor to continue. Optionally filter to a single ticker. |
| t212_list_dividendsA | Returns dividends paid into the account, newest first, with the instrument, amount, and amount per share. Use this for dividend income questions. Results are paginated — pass the returned nextCursor to continue. Note this reports what was actually paid, not forecast yield. |
| t212_list_transactionsA | Returns cash movements — deposits, withdrawals, fees and interest — newest first. Use this for 'how much have I deposited' or to explain a change in cash that positions do not account for. Results are paginated; pass the returned nextCursor to continue. |
| t212_list_piesA | Returns the account's pies — Trading 212's named baskets of instruments with target allocations — including each pie's invested value, current value, result, and progress towards its goal. Use t212_get_pie for the instruments inside a specific pie. This server is read-only and cannot create or change a pie. |
| t212_get_pieA | Returns one pie's contents: every instrument in it with its current share of the pie, its target share, the quantity owned, and its result. Use this to explain how a pie is allocated or which of its holdings are drifting from target. Get the pie's id from t212_list_pies first. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| portfolio_review | Walks through the account's holdings and performance in a sensible order, minimising rate-limited calls. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| connection | Which account environment this server is connected to and how it is configured. Contains no credentials. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/guilyx/t212-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server