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.

评论

其他 分类下的更多 MCP 服务器