MCP.so
ログイン

Trading212 MCP Server

@lukeplausin

基本情報

カテゴリ

その他

ライセンス

MIT license

トランスポート

stdio

作者

lukeplausin

Trading212 MCP Server について

A Model Context Protocol (MCP) connector tool for interfacing agentic AI with the Trading212 broker

Trading212 MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-trading212": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/project",
        "run",
        "--api-key",
        "<KEEP_THIS_SECRET>",
        "--environment",
        "demo",
        "mcp-server-trading212",
        "--host",
        "127.0.0.1",
        "--port",
        "6677",
        "--sse"
      ]
    }
  }
}

Trading212 MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Trading212 MCP Server?

This server connects agentic AI to a Trading212 brokerage account, allowing the AI to analyse portfolios, suggest stocks, manage investment pies, and perform account queries. It is designed for users who want to give an AI controlled access to their Trading212 account while respecting aggressive API rate limits through caching.

How to use Trading212 MCP Server?

Install via uv or Docker and configure it in claude_desktop_config.json by specifying the Trading212 API key and environment (demo or live). For remote hosting, the server can run in SSE mode behind a reverse proxy. Example configuration uses uv run with --api-key and --environment flags, or the Docker image can be built and run.

Key features of Trading212 MCP Server

  • Caches API results in‑memory (default 5‑minute TTL) or optionally via Redis.
  • Resources to view portfolio, account info, cash, and instrument data.
  • Tools to place orders (practice mode only), update investment pies, and search instruments.
  • Supports STDIO and SSE transport modes.
  • Can run locally or as a remote HTTP service.

Use cases of Trading212 MCP Server

  • AI analyses current portfolio holdings and provides critique or insights.
  • AI suggests stocks and places orders (practice‑mode only due to API limits).
  • AI updates an existing Trading212 investment pie based on strategy changes.
  • AI searches for instruments by company name using fuzzy matching.

よくある質問

1

Can the AI place real trades?

No – due to a Trading212 API restriction, orders can only be created in practice (demo) mode. The live environment is supported for all other operations.

2

How does caching work and how can I use Redis?

The server caches API responses in‑memory for 5 minutes by default. If a local Redis server is running on port 6379, the server will automatically use it instead of the in‑memory cache.

3

What security precautions should I take?

Always test on the demo account first. If hosting remotely, use a reverse proxy with HTTPS and ideally Mutual TLS. Avoid storing the API key in plaintext; consider a secret manager.

4

What transports are available?

The server supports the standard STDIO transport (used with Claude Desktop) and SSE (Server‑Sent Events) mode for running as an HTTP service.

5

What license covers this server?

It is released under the MIT License. By using it you agree to the license terms, which include indemnity from any financial losses resulting from its use.

コメント

「その他」の他のコンテンツ