Updated April 2026

Install Trading 212

Pick your client, copy the command, done.

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "TRADING212_API_KEY=${TRADING212_API_KEY}" trading212-mcp -- node "<FULL_PATH_TO_TRADING212_MCP>/dist/index.js"

Replace <FULL_PATH_TO_TRADING212_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:TRADING212_API_KEY+ 3 optional

Environment Variables

Set these before running Trading 212.

VariableDescriptionRequired
TRADING212_API_KEYYour Trading 212 API key generated from the app settings.Yes
TRADING212_ENVIRONMENTThe environment to connect to: demo or live.No
LOG_LEVELLogging verbosity (trace, debug, info, warn, error, fatal).No
NODE_ENVNode environment (development or production).No

Available Tools (5)

Once configured, Trading 212 gives your AI agent access to:

get_account_infoRetrieve account information including currency, ID, and cash balances.
list_positionsList all open investment positions with real-time profit/loss tracking.
place_orderPlace market, limit, stop, or stop-limit orders for tradeable instruments.
instrumentquantitytypeorderType
list_piesList all investment pies and their current allocations.
get_historyRetrieve order, dividend, or transaction history for specified periods.
typestartDateendDate

Try It Out

After setup, try these prompts with your AI agent:

What is the current total value of my Trading 212 portfolio and how much cash is available?
List all my open positions and identify which ones have the highest profit percentage.
Place a market order to buy 5 shares of AAPL.
Show me my dividend payment history for the last 6 months.
What are the current allocations in my 'Tech Growth' investment pie?
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • Docker installed and running
  • TRADING212_API_KEY — Your Trading 212 API key generated from the app settings.
Alternative installation methods

Local Installation

npm install && npm run build

Keep this setup from going cold

Save the docs, env vars, and workflow around Trading 212 in Conare so Claude Code, Codex, and Cursor remember it next time.

Need the legacy visual installer? Open Conare IDE.
Remember this setup