Skip to main content
Glama
Trading 212 MCP

Trading 212 MCP

by moeinxyz

Trading 212 MCP

CI

I built this for my own portfolio. It lets an assistant read Trading 212 Invest and Stocks ISA accounts locally and explain the numbers. Use it at your own risk. Figures and AI analysis can be wrong. I don’t provide investment advice through this project. You make your own investment decisions. Check figures and orders in Trading 212 before acting.

Get started

In each account, open Menu → Settings → API (Beta) → Generate API key. Select Account data and Portfolio for holdings and cash. With Git and uv installed, set up the first account. Keys are entered privately and orders are disabled by default.

uv tool install git+https://github.com/moeinxyz/trading212-mcp@v0.3.0
trading212-mcp setup

Have a second account? Switch to it in Trading 212, generate its own key, and run trading212-mcp setup --account isa. For Codex, register the server with codex mcp add trading212 -- trading212-mcp. Restart the client and ask for Invest, ISA or both. Client setup and account labels

Related MCP server: tinkoff-wealth-mcp

Ask about your portfolio

Ask

Workflow

“How am I doing across Invest and ISA? Give me one simple table.”

Portfolio report card · Worked example

“What does diluted EPS tell me? Are earnings turning into cash?”

Company metrics · Stock fundamentals

“Which opportunities am I overlooking, and what would they cost?”

Opportunity review · Allocation drift

“Did analysts change their estimates? What news affects my holdings?”

Published signals · Portfolio news

All ten workflows ship as MCP prompts and Agent Skills, including portfolio risk, performance and upcoming events. Market research uses your assistant’s web access or dated sources you supply. Using the skills

An independent project by Moein under the MIT licence. Your MCP client can share results with its model provider. Broker access is subject to Trading 212’s API terms.

Available Tools

8 tools
calculate_stock_metricsB
Read-onlyIdempotent

Calculate a local scorecard from supplied filing inputs. Currency and scale apply to both periods. EPS and price always use major currency units per share. An optional P/E requires explicitly supplied trailing-year diluted EPS and a dated close. Returns decimal strings and nulls for unavailable measures.

Inputs: current (required), currency (required), amount_scale (required), prior, +1 more. Returns: object

get_account_summaryB
Read-only

Get the account's cash, investments and portfolio value in its primary currency.

Inputs: account. Returns: object

get_portfolio_overviewA
Read-only

Read selected account summaries, or all configured accounts. Group totals by environment and currency.

Inputs: accounts. Returns: object

list_pending_ordersB
Read-only

List orders that are still open for the selected account.

Inputs: account. Returns: object

list_positionsA
Read-only

Get current holdings, optionally by exact Trading 212 ticker. walletImpact has its own currency.

Inputs: ticker, account. Returns: object

search_instrumentsC
Read-only

Search the broker's instrument catalogue by name, ticker or ISIN.

Inputs: query (required), limit, account. Returns: object

trading_historyA
Read-only

Get one history page. Reuse its next_page_path with the same account and kind until null.

Inputs: kind (required), limit, account, next_page_path. Returns: object

trading_statusA
Read-only

Show account labels, environments and credential presence without contacting the broker.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools target clearly distinct resources: positions, pending orders, history, instrument search, account status, and local metrics. The only notable overlap is get_account_summary versus get_portfolio_overview, which both report account value summaries, though the descriptions distinguish single-account from multi-account grouping.

    Naming Consistency4/5

    Six of eight tools follow a predictable verb_noun pattern (calculate_stock_metrics, get_account_summary, get_portfolio_overview, list_positions, list_pending_orders, search_instruments). The noun-only trading_status and trading_history are minor deviations that remain readable.

    Tool Count5/5

    Eight tools is well within the ideal range and each appears to serve a distinct read-oriented purpose. No obvious padding or redundant tools inflate the surface.

    Completeness2/5

    For a Trading 212 server, the surface is entirely read-only: there is no order placement, cancellation, or modification capability, and no single-order detail lookup. It covers portfolio monitoring well but leaves a major lifecycle gap for anything involving actual trading actions.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with OKX trading accounts through read-only access to retrieve portfolio information, trading positions, order history, and account analytics. Provides secure, local processing of trading data without storing sensitive information or enabling trade execution.
      5
      4
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      Enables personal AI-driven portfolio analysis and management for Tinkoff Investments through natural language chat, providing risk assessment, goal tracking, and market-aware recommendations in read-only mode.
      19
      1
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to access Saxo Bank portfolio data, account balances, positions, orders, transactions, and market data such as instruments, quotes, and charts. It is read-only by default, with trading tools available only when explicitly enabled.
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read Midas Atlas portfolio, positions, transaction history, and technical analysis, with order tools disabled by default and every order requiring desktop approval.
      10
      4
      MIT