eToro MCP 服务器
该服务器提供 MCP(模型上下文协议)工具,用于与 eToro 的公共 API 端点进行交互。它允许您:
使用用户名获取用户的投资组合
通过 ID 查找仪器详细信息
按名称前缀搜索仪器(自动完成)
入门
安装依赖项:
npm install启动开发服务器:
npm run dev为生产而构建:
npm run build启动生产服务器:
npm start
可用工具
fetch_etoro_portfolio
使用用户名获取 eToro 用户的投资组合。该工具会自动将用户名内部转换为客户 ID (CID)。
参数:
username:eToro 用户名authToken(可选):经过身份验证的请求的授权令牌
获取仪器详情
获取 eToro 工具列表的详细信息。
参数:
instrumentIds:用于获取详细信息的仪器 ID 列表fields(可选):响应中包含的字段(默认为displayname、threeMonthPriceChange、oneYearPriceChange、lastYearPriceChange)
搜索工具
按名称前缀搜索 eToro 工具(自动完成)。
参数:
namePrefix:在仪器名称中搜索的前缀fields(可选):响应中包含的字段(默认为internalInstrumentId、displayname、internalClosingPrice)
CORS 限制
请注意,部分 eToro API 端点受 CORS 限制,应从服务器端环境调用。本服务器中的工具会在服务器端处理这些请求,以避免 CORS 问题。
使用示例
服务器公开了一个用于访问这些工具的 REST API,可以从任何 HTTP 客户端调用:
使用fetch_etoro_portfolio工具的示例:
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
提供用于与 eToro 公共 API 端点交互的模型上下文协议工具,允许用户获取投资组合、查找工具详细信息以及搜索工具,同时处理 CORS 限制。
Related MCP Servers
- Asecurity-licenseAqualityEnables interaction with esa.io's API through the Model Context Protocol, supporting article search and retrieval with a compliant MCP interface.Last updated -7537MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.Last updated -45138MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -282,620321MIT License
- -security-license-qualityComprehensive Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, supporting token transfers, smart contract interactions, and ENS name resolution through a unified interface.Last updated -1MIT License