t212-mcp
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., "@t212-mcpShow me my portfolio summary and cash available."
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.
t212-mcp
An MCP server exposing your Trading212 account (summary, portfolio, cash, order history, dividends) as tools, meant to be connected directly to claude.ai as a custom remote connector.
Because claude.ai reaches this server over the public internet and your T212
account is live, the server requires OAuth login (a single password you set)
before it will serve any tool calls — see auth.py.
0. Get the code onto the VPS, and install prerequisites
git clone <this-repo-url> t212-mcp && cd t212-mcpYou'll need on the VPS: git, rsync, and uv installed system-wide (not just under your own $HOME, since the app later runs as its own dedicated system user with no home directory):
curl -LsSf https://astral.sh/uv/install.sh | sh
sudo cp "$HOME/.local/bin/uv" /usr/local/bin/uvRelated MCP server: Trading212 MCP Server
1. Configure
python3 setup_wizard.pyWalks you through it interactively: your T212 API key/secret, a domain (offers a free <ip>.sslip.io one if you don't have your own), and the login password — then writes .env with chmod 600. Re-run it any time to regenerate .env from scratch (it'll ask before overwriting).
Prefer to edit by hand instead? cp .env.example .env and fill in:
T212_API_KEY/T212_API_SECRET— from Trading212 → Settings → API (Key/Secret pair, Basic auth).T212_ENV—liveordemo.MCP_PUBLIC_URL— the HTTPS URL this server will be reachable at, e.g.https://mcp.example.com(no trailing slash). Must match your DNS + reverse proxy setup.MCP_DOMAIN— same host as above, without the scheme (Caddy uses this to request a TLS cert).MCP_AUTH_PASSWORD— a password only you know; you'll type it once in the browser when connecting Claude.
2. Point DNS at your VPS
Create an A/AAAA record for the domain in MCP_DOMAIN pointing at your VPS's IP. Ports 80 and 443 must be reachable from the internet.
Before installing a TLS reverse proxy below, check whether something is already bound to 80/443 on this machine (an existing nginx/Caddy serving other sites):
sudo ss -tlnp | grep -E ':80|:443'3. Run it
sudo useradd --system --no-create-home --shell /usr/sbin/nologin t212mcp
sudo mkdir -p /opt/t212-mcp
sudo rsync -a --exclude .venv --exclude __pycache__ --exclude .git ./ /opt/t212-mcp/
sudo chown -R t212mcp:t212mcp /opt/t212-mcp
cd /opt/t212-mcp
# t212mcp has no home dir, so point uv's cache somewhere it can write:
sudo -u t212mcp env HOME=/opt/t212-mcp UV_CACHE_DIR=/opt/t212-mcp/.cache/uv \
uv sync --frozen --no-dev
sudo cp deploy/t212-mcp.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now t212-mcpThen get TLS in front of it on port 8000, depending on what ss -tlnp showed above:
Nothing running on 80/443 — install Caddy (single static binary, ~10-20MB RAM idle) and point it at deploy/Caddyfile:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list sudo apt update && sudo apt install -y caddy set -a; source .env; set +a sudo bash -c "sed 's/{\$MCP_DOMAIN}/'\"$MCP_DOMAIN\"'/' deploy/Caddyfile > /etc/caddy/Caddyfile" sudo systemctl reload caddynginx already running for other sites — copy deploy/nginx.conf.example into
/etc/nginx/sites-available/t212-mcp, replacemcp.example.comin it with your real$MCP_DOMAIN, symlink it intosites-enabled,nginx -t && systemctl reload nginx, thensudo certbot --nginx -d $MCP_DOMAIN(doesn't touch your existing server blocks).
Check it's up:
curl https://$MCP_DOMAIN/.well-known/oauth-authorization-server4. Connect it to Claude
In claude.ai: Settings → Connectors → Add custom connector, paste https://<MCP_DOMAIN>/mcp as the URL. Claude will open a browser tab to this server's login page — enter MCP_AUTH_PASSWORD — and you'll be redirected back, connected.
Local development
uv run python server.py runs the same streamable-HTTP + OAuth server locally on HOST:PORT (default 0.0.0.0:8000) — MCP_PUBLIC_URL and MCP_AUTH_PASSWORD are required env vars even for local runs, since the OAuth provider is wired in unconditionally. Point MCP_PUBLIC_URL at http://127.0.0.1:8000 for local-only testing (no TLS, no Claude connector, just for exercising the tool code and the OAuth flow with curl).
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.
Related MCP Connectors
Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
MCP server exposing the Backtest360 engine API as tools for AI agents.
SmartMoney77 MCP v0.6.0 — 14 public tools that turn financial questions into exact numbers and citable links. New: historical_investment_return and compare_investments, which compute "what if I had invested" results from real yearly price data. Also compound interest, FIRE number, credit-card payoff, emergency fund, inflation, latte factor, investment fees, cost of waiting, plus discovery/deep-link/share-pack tools for a catalog of calculators in 6 languages (he/en/ar/es/pt/in). Public, no login. Endpoint: https://smartmoney77.com/mcp
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides secure access to Trading 212 Public API through MCP, enabling Claude Desktop users to manage portfolios, execute trades, and analyze market data using natural language commands.
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Trading212 brokerage accounts, including portfolio analysis, order placement (demo mode), and investment pie management.5MIT
- FlicenseAqualityDmaintenanceAn MCP server that wraps the Trading 212 Public API, enabling AI agents to interact with your Trading 212 brokerage account through natural language.16
- AlicenseNot gradedqualityBmaintenanceExposes Trading 212 trading account, instruments, orders, history, and pies as MCP tools. Allows placing and canceling real orders (defaults to demo/paper environment).Apache 2.0
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/joshua-repo/t212-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server