Skip to main content
Glama

eToro MCP Server

Official
by shlomico-tr

eToro MCP 服务器

该服务器提供 MCP(模型上下文协议)工具,用于与 eToro 的公共 API 端点进行交互。它允许您:

  1. 使用用户名获取用户的投资组合
  2. 通过 ID 查找仪器详细信息
  3. 按名称前缀搜索仪器(自动完成)

入门

  1. 安装依赖项:
    npm install
  2. 启动开发服务器:
    npm run dev
  3. 为生产而构建:
    npm run build
  4. 启动生产服务器:
    npm start

可用工具

fetch_etoro_portfolio

使用用户名获取 eToro 用户的投资组合。该工具会自动将用户名内部转换为客户 ID (CID)。

参数:

  • username :eToro 用户名
  • authToken (可选):经过身份验证的请求的授权令牌

获取仪器详情

获取 eToro 工具列表的详细信息。

参数:

  • instrumentIds :用于获取详细信息的仪器 ID 列表
  • fields (可选):响应中包含的字段(默认为displaynamethreeMonthPriceChangeoneYearPriceChangelastYearPriceChange

搜索工具

按名称前缀搜索 eToro 工具(自动完成)。

参数:

  • namePrefix :在仪器名称中搜索的前缀
  • fields (可选):响应中包含的字段(默认为internalInstrumentIddisplaynameinternalClosingPrice

CORS 限制

请注意,部分 eToro API 端点受 CORS 限制,应从服务器端环境调用。本服务器中的工具会在服务器端处理这些请求,以避免 CORS 问题。

使用示例

服务器公开了一个用于访问这些工具的 REST API,可以从任何 HTTP 客户端调用:

GET /tools # List all available tools GET /tools/:name/schema # Get tool schema POST /tools/:name/execute # Execute a tool

使用fetch_etoro_portfolio工具的示例:

curl -X POST http://localhost:3000/tools/fetch_etoro_portfolio/execute \ -H "Content-Type: application/json" \ -d '{"username": "yoniasia"}'
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

提供用于与 eToro 公共 API 端点交互的模型上下文协议工具,允许用户获取投资组合、查找工具详细信息以及搜索工具,同时处理 CORS 限制。

  1. 入门
    1. 可用工具
      1. fetch\_etoro\_portfolio
      2. 获取仪器详情
      3. 搜索工具
    2. CORS 限制
      1. 使用示例

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that provides standardized interfaces for interacting with Ollama API, offering JSON responses, error handling, and intelligent guidance for LLM-based API calls.
          Last updated -
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables querying the Crossref API to search for academic publications by title, author, or DOI, returning structured metadata about scholarly works.
          Last updated -
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server for accessing Confluence API using Personal Access Tokens, enabling users to retrieve space lists, view pages, create new pages, and update existing content.
          Last updated -
          TypeScript
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that interfaces with Alpaca trading API, allowing users to manage portfolios, place trades, and access market data through natural language interactions.
          Last updated -
          Python

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/shlomico-tr/etoroPortfolioMCP'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server