T212 Server
БесплатноНе проверенProvides read-only access to Trading 212 accounts, enabling AI assistants to retrieve portfolio positions, account summaries, instrument data, and transaction h
Описание
Provides read-only access to Trading 212 accounts, enabling AI assistants to retrieve portfolio positions, account summaries, instrument data, and transaction history.
README
A Model Context Protocol (MCP) server for interacting with the Trading 212 API. Gives AI assistants read-only access to your Trading 212 account — positions, account summary, instruments, order history, dividends, and more.
Features
- 📊 Portfolio positions with P/L and wallet impact
- 💰 Account summary (cash, investments, realized/unrealized P/L)
- 🔍 Instrument search (16,000+ stocks, ETFs, and more)
- 🏛️ Exchange schedules and working hours
- 📜 Order history, dividend history, and transaction history
- 📁 CSV export reports
- 🔒 Read-only — no trading operations
- 🧪 Demo mode for paper trading
- 🤖 Compatible with Claude, and other MCP clients
Quick Start
Prerequisites
- Node.js v18 or higher
- A Trading 212 API key and secret (get yours here)
- Claude Desktop or another MCP-compatible client
Configuration for Claude Desktop
Add this to your Claude Desktop configuration file:
Option 1: No installation required (recommended)
{
"mcpServers": {
"t212-mcp": {
"command": "npx",
"args": ["t212-mcp-server"],
"env": {
"T212_API_KEY": "your-api-key-id",
"T212_API_SECRET": "your-api-secret"
}
}
}
}
Option 2: Global installation
npm install -g t212-mcp-server
{
"mcpServers": {
"t212-mcp": {
"command": "t212-mcp-server",
"env": {
"T212_API_KEY": "your-api-key-id",
"T212_API_SECRET": "your-api-secret"
}
}
}
}
Demo Mode
To use paper trading instead of your live account, add T212_ENVIRONMENT:
{
"env": {
"T212_API_KEY": "your-demo-api-key-id",
"T212_API_SECRET": "your-demo-api-secret",
"T212_ENVIRONMENT": "demo"
}
}
How to access the Claude Desktop config file
- Open Claude Desktop Settings
- Go to the Developer tab
- Click "Edit Config"
- Add your configuration and save
- Restart Claude Desktop
For detailed configuration instructions, see the official MCP documentation.
Getting your Trading 212 API Credentials
- Log into your Trading 212 account
- Navigate to Settings → API
- Generate a new API key
- Copy both the API Key ID and the Secret Key (the secret is only shown at creation time)
- Use both values in your configuration as
T212_API_KEYandT212_API_SECRET
For more details, see the Trading 212 Help Centre.
Available Tools
| Tool | Description |
|---|---|
fetch-open-positions |
All open positions with current price, P/L, and wallet impact |
fetch-position |
A specific position by ticker |
fetch-account-summary |
Account cash balance, investment value, and P/L |
search-instruments |
Search 16,000+ instruments by name, ticker, or ISIN |
fetch-exchanges |
All exchanges with next open/close times |
fetch-order-history |
Historical filled orders (paginated) |
fetch-dividend-history |
Dividend payments (paginated) |
fetch-transaction-history |
Deposits and withdrawals (paginated) |
fetch-exports |
CSV export reports with download links |
fetch-all-pies |
Investment pies (deprecated by Trading 212) |
Environment Variables
| Variable | Required | Description |
|---|---|---|
T212_API_KEY |
Yes | Your Trading 212 API Key ID |
T212_API_SECRET |
Yes | Your Trading 212 API Secret |
T212_ENVIRONMENT |
No | live (default) or demo for paper trading |
Security Notes
- ⚠️ Never commit your API credentials to version control
- 🔒 Keep your MCP configuration file secure
- 🔄 Regularly rotate your API keys
- 📝 This server provides read-only access only
License
This project is licensed under the MIT License — see the LICENSE file for details.
Support
If you encounter any issues or have questions:
- Check the issues page
- Create a new issue if your problem isn't already reported
- Provide as much detail as possible, including error messages and your configuration
Установка T212 Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/paulaigue/t212-mcpFAQ
T212 Server MCP бесплатный?
Да, T212 Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для T212 Server?
Нет, T212 Server работает без API-ключей и переменных окружения.
T212 Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить T212 Server в Claude Desktop, Claude Code или Cursor?
Открой T212 Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare T212 Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
