PT

paulaigue/t212-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5 stars 5 forks 품질 74 트렌드 17MIT

MCP Server for Trading212 platform

개요

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. - 📊 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 - Node.js v18 or higher - A Trading 212 API key and secret (get yours here) - Claude Desktop or another MCP-compatible client Add this to your Claude Desktop configuration file: To use paper trading instead of your live account, add T212_ENVIRONMENT: 1. Open Claude Desktop Settings 2. Go to the tab 3. Click 4.

README

원문 README의 일부입니다. 원문 보기.

T212 MCP Server

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

  1. Open Claude Desktop Settings
  2. Go to the Developer tab
  3. Click “Edit Config”
  4. Add your configuration and save
  5. Restart Claude Desktop

For detailed configuration instructions, see the official MCP documentation.

Getting your Trading 212 API Credentials

  1. Log into your Trading 212 account
  2. Navigate to Settings → API
  3. Generate a new API key
  4. Copy both the API Key ID and the Secret Key (the secret is only shown at creation time)
  5. Use both values in your configuration as T212_API_KEY and T212_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
GitHub에서 전체 README 보기

설치

npx t212-mcp-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "t212-mcp": { "command": "npx", "args": ["t212-mcp-server"], "env": { "T212_API_KEY": "your-api-key-id", "T212_API_SECRET": "your-api-secret" } } } }