eToro Trading MCP

السجل الرسمي المالية والمدفوعات

197 eToro API tools for agents: market data, watchlists, feeds, demo and real trading.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package etoro-trading-mcp
Claude Code
claude mcp add etoro-trading-mcp -e 'ETORO_API_KEY=<your etoro_api_key>' -e 'ETORO_USER_KEY=<your etoro_user_key>' -e 'ETORO_ACCESS_TOKEN=<your etoro_access_token>' -e 'ETORO_ENABLED_TOOLSETS=market-data,trading-demo' -e 'ETORO_ALLOW_REAL_MONEY=false' -- npx -y etoro-trading-mcp@1.0.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "etoro-trading-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "etoro-trading-mcp@1.0.1"
            ],
            "env": {
                "ETORO_API_KEY": "<your etoro_api_key>",
                "ETORO_USER_KEY": "<your etoro_user_key>",
                "ETORO_ACCESS_TOKEN": "<your etoro_access_token>",
                "ETORO_ENABLED_TOOLSETS": "market-data,trading-demo",
                "ETORO_ALLOW_REAL_MONEY": "false"
            }
        }
    }
}

متغيرات البيئة

  • ETORO_API_KEY سري eToro application public key (x-api-key); pair with ETORO_USER_KEY
  • ETORO_USER_KEY سري eToro generated user key (x-user-key); pair with ETORO_API_KEY
  • ETORO_ACCESS_TOKEN سري OAuth bearer token; alternative to the key pair, never both
  • ETORO_ENABLED_TOOLSETS Comma-separated toolsets to enable; every toolset is off by default
  • ETORO_ALLOW_REAL_MONEY Set true to permit real-money mutations in addition to enabling their tools

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. eToro Trading MCP
  2. Install with an AI agent
  3. What you get
  4. Quick look: configure your agent
  5. Documentation
  6. Safety and project status
  7. Contribute

eToro Trading MCP

Local Model Context Protocol server for eToro's public Swagger UI API. Its main purpose is configuration for AI agents: you register it once in an MCP client and enable exactly the toolsets your agent needs. The command line exists only for local inspection (tools list, config validate), not for day-to-day use.

This MCP is scanning the eToro APIs for updates daily: an automated daily job downloads eToro's current OpenAPI documents, detects upstream changes, and opens a pull request with fully regenerated and verified tools—nothing is merged or published automatically.

Install with an AI agent

Give this one instruction to your coding or desktop agent:

Install and configure this MCP server by following https://github.com/n-kostadinov/etoro-trading-mcp/blob/main/INSTALL.md

The agent-facing guide is also available as raw Markdown.

What you get

  • 197 fine-grained MCP tools generated from eToro Swagger UI—one tool per REST operation.
  • 27 toolsets, all disabled by default: listing toolsets or tools in configuration is the only way to enable them. Enabling a toolset enables every tool in it.
  • Demo-safe example configuration: ETORO_ENABLED_TOOLSETS=market-data,trading-demo enables 28 tools (11 market-data tools and 17 current demo-trading tools) without touching real money.
  • Real-money mutations stay hidden unless you enable their tools and set ETORO_ALLOW_REAL_MONEY=true.
  • Legacy operations remain available only through an explicit includeDeprecated opt-in.
  • TypeScript, Node.js 22+, stdio transport, and one npx command—no global install.
  • Automatic request IDs, shared rate-limit tracking, conservative retries, structured HTTP responses, and credential redaction.

Quick look: configure your agent

All toolsets are disabled by default. A typical, demo-safe MCP client entry:

{
  "mcpServers": {
    "etoro": {
      "command": "npx",
      "args": ["-y", "etoro-trading-mcp@1.0.1"],
      "env": {
        "ETORO_API_KEY": "<user-supplied-application-key>",
        "ETORO_USER_KEY": "<user-supplied-user-key>",
        "ETORO_ENABLED_TOOLSETS": "market-data,trading-demo",
        "ETORO_ALLOW_REAL_MONEY": "false"
      }
    }
  }
}

Credentials are environment-only. An API key pair and user key, or an OAuth bearer token, can be used—never both and never a portal password.

Where to find x-api-key and x-user-key

The key pair comes from eToro's API Key Management page—open the annotated screenshot to see exactly which value is which:

  • x-api-key — the Public Key shown at the top of the page. It identifies your application and is supplied to this server as ETORO_API_KEY.
  • x-user-key — one of the keys you create with Create Your API Key; it appears in the Generated Keys list, identifies your eToro user, and is supplied as ETORO_USER_KEY.

Every authenticated request sends both headers together. Start with a Demo key with Read & Write permissions; see INSTALL.md for the full walkthrough.

How to enable tools
PurposeEnvironment variableJSON file property
Enable toolsets (every tool in each toolset)ETORO_ENABLED_TOOLSETS=market-data,trading-demo"enabledToolsets": ["market-data", "trading-demo"]
Enable individual toolsETORO_ENABLED_TOOLS=getRates,getMe"enabledTools": ["getRates", "getMe"]
Permit legacy toolsETORO_INCLUDE_DEPRECATED=true"includeDeprecated": true
Permit real-money mutationsETORO_ALLOW_REAL_MONEY=true"allowRealMoney": true

Environment lists are comma-separated; JSON properties take arrays. Precedence is built-in defaults < JSON file (ETORO_CONFIG) < environment < CLI flags, with higher layers replacing (not merging) lists. The same example as an explicit JSON file (ETORO_CONFIG=/absolute/path/to/etoro-mcp.config.json):

{
  "$schema": "https://raw.githubusercontent.com/n-kostadinov/etoro-trading-mcp/main/schemas/config.schema.json",
  "enabledToolsets": ["market-data", "trading-demo"],
  "includeDeprecated": false,
  "allowRealMoney": false
}

See Configuration for every setting.

Two safety gates stay separate from selection: legacy tools additionally require includeDeprecated, and real-money mutations additionally require allowRealMoney. Real-money mutations live in four toolsets—trading-real, copy-trading, transfer, and sub-accounts-etoro-trading—so enabling those toolsets exposes live-funds operations only when the second gate is also set.

Available toolsets (27)
ToolsetCurrentLegacyToolsetCurrentLegacy
agent-portfolios73rankings70
app-data10social-feeds374
balances60sso-applications50
cash-accounts10sso-scopes10
clubs10sub-accounts20
copy-trading ⚠️50sub-accounts-etoro-trading ⚠️60
copy-trading-demo50top-assets10
data40trading-demo176
identity10trading-real ⚠️176
market-data110transfer ⚠️70
notifications20user-stats40
pi-data10users-info60
portfolio-search10watchlists180
price-alerts40

⚠️ marks toolsets containing real-money mutations (gated by allowRealMoney regardless of selection). "Current" tools are enabled with the toolset; "legacy" tools additionally need includeDeprecated. Every operation ID is listed in the tool reference; the toolset breakdown is in toolsets.

Local inspection (secondary)

The CLI never contacts eToro for these commands and works without credentials:

npx -y etoro-trading-mcp@1.0.1 tools list --all    # every operation and its state
npx -y etoro-trading-mcp@1.0.1 config validate     # effective settings and warnings

Documentation

  • INSTALL — complete agent and manual setup guide
  • Configuration — file/environment/CLI precedence and every setting
  • Toolsets — all 27 toolsets with counts
  • Tool reference — every generated tool, request, scope alternative, and replacement
  • Trading — demo versus real money, scopes, asynchronous orders, and safety
  • Security — credentials, local files, diagnostics, and untrusted content
  • Troubleshooting — startup, authentication, limits, and configuration issues

Safety and project status

This is an independent, unofficial project. It is not affiliated with, endorsed by, or sponsored by eToro. eToro names and trademarks belong to eToro. Nothing in this repository is investment advice. Demo trading uses virtual funds; real trading can lose real money and requires two explicit opt-ins.

Current release: 1.0.1, generated from eToro Swagger UI v1.400.0. Daily automation opens a review pull request when eToro's published API changes; it never automatically merges, tags, or publishes.

Contribute

MIT licensed. See CONTRIBUTING.md, CHANGELOG.md, and SECURITY.md for development, release history, and reporting guidance.

الأسئلة الشائعة

ما هو eToro Trading MCP؟

197 eToro API tools for agents: market data, watchlists, feeds, demo and real trading.

كيف أثبّت eToro Trading MCP؟

يعمل على جهازك. في Claude Code: claude mcp add etoro-trading-mcp -e 'ETORO_API_KEY=<your etoro_api_key>' -e 'ETORO_USER_KEY=<your etoro_user_key>' -e 'ETORO_ACCESS_TOKEN=<your etoro_access_token>' -e 'ETORO_ENABLED_TOOLSETS=market-data,trading-demo' -e 'ETORO_ALLOW_REAL_MONEY=false' -- npx -y etoro-trading-mcp@1.0.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج eToro Trading MCP إلى مفتاح API؟

نعم. يتطلب ETORO_API_KEY, ETORO_USER_KEY, ETORO_ACCESS_TOKEN، وتضبطها في إعداداته.

هل eToro Trading MCP مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون eToro Trading MCP؟

ينشره n-kostadinov. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.