Trading 212 MCP Server
Connect your AI assistant to your Trading 212 brokerage account. Ask questions about your portfolio, place trades, manage pies, and analyze dividends - all through natural language.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
uvx trading212-mcp-server==0.1.1Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
TRADING212_API_KEY=<secret> TRADING212_API_SECRET=<secret> ENVIRONMENT=<value> claude mcp add io.github.kyurish-trading212-mcp-server -- uvx trading212-mcp-server==0.1.1รันในเทอร์มินัล
{ "mcpServers": { "io.github.kyurish-trading212-mcp-server": { "command": "uvx", "args": [ "trading212-mcp-server==0.1.1" ], "env": { "TRADING212_API_KEY": "<secret>", "TRADING212_API_SECRET": "<secret>", "ENVIRONMENT": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดจากผู้เผยแพร่
Works with Claude Desktop, Claude Code, ChatGPT, Gemini, Cursor, Windsurf, and any client that supports the Model Context Protocol (MCP).
ENVIRONMENT=demo to test with virtual money firstThese combine multiple API calls into single high-level responses:
fetch_portfolio_summary - Complete snapshot: total value, P&L, cash, top holdings, allocationfetch_portfolio_performance - Per-position returns with dividends, best/worst performersfetch_dividend_summary - Income analysis grouped by ticker and monthfetch_recent_activity - Combined timeline of trades and transactionsuvx trading212-mcp-server
Or via pip:
pip install trading212-mcp-server
From the Trading 212 app: Settings > API (Beta). You need both the API Key and Secret - the server uses Basic Auth.
Add to claude_desktop_config.json (Windows: %APPDATA%\Claude\, Mac: ~/Library/Application Support/Claude/):
{
"mcpServers": {
"trading212": {
"command": "uvx",
"args": ["trading212-mcp-server"],
"env": {
"TRADING212_API_KEY": "<your-api-key>",
"TRADING212_API_SECRET": "<your-api-secret>",
"ENVIRONMENT": "live"
}
}
}
}
claude mcp add trading212 -- uvx trading212-mcp-server
Then set the environment variables in your shell or .env file.
Same command and env vars - configure per your client's MCP docs. Set ENVIRONMENT to demo for paper trading.
git clone https://github.com/KyuRish/trading212-mcp-server.git
cd trading212-mcp-server
cp .env.example .env # fill in your API keys
uv sync
uv run -m trading212_mcp_server.server
{
"mcpServers": {
"trading212": {
"command": "uv",
"args": ["run", "--directory", "<path-to-repo>", "-m", "trading212_mcp_server.server"],
"env": {
"TRADING212_API_KEY": "<your-api-key>",
"TRADING212_API_SECRET": "<your-api-secret>",
"ENVIRONMENT": "live"
}
}
}
}
Tested with these MCP clients:
Built by Rishabh Dogra.
If this server saves you time, a coffee would mean a lot.
MIT
MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics
{ "mcpServers": { "io.github.kyurish-trading212-mcp-server": { "command": "uvx", "args": [ "trading212-mcp-server==0.1.1" ], "env": { "TRADING212_API_KEY": "<secret>", "TRADING212_API_SECRET": "<secret>", "ENVIRONMENT": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: TRADING212_API_KEY, TRADING212_API_SECRET, ENVIRONMENT
Trading212 ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-09 MCP server for Trading 212 API - portfolio, orders, pies, dividends, and analytics