
Tradovate 平台的 MCP 服务器
概览
一个用于 Claude Desktop 中 Tradovate 集成的模型上下文协议(MCP)服务器。该服务器使 AI 助手能够通过自然语言交互管理 Tradovate 交易账户。 - ✅ 完整的Tradovate API集成 - 🔒 安全的身份验证处理 - 📈 实时市场数据访问 - 💼 账户管理 - 📊 风险管理控制 - 🔄 订单下放与管理 - 📝 全面的测试覆盖 通过Smithery自动安装Claude桌面版的Tradovate MCP服务器: 在项目根目录创建一个包含 Tradovate 凭证的 .env 文件: - 认证:连接 Tradovate API - 无需参数 - get_accounts:列出所有交易账户 - 无需参数 - get_positions:查看当前位置 - 无需参数 - get_risk_limits:获取风险管理设置- 所需参数:- account_id:(编号)账户ID,用于获取限额
概述(AI 翻译)
一个用于 Claude Desktop 中 Tradovate 集成的模型上下文协议(MCP)服务器。该服务器使 AI 助手能够通过自然语言交互管理 Tradovate 交易账户。
特色
- ✅ 完整的 Tradovate API 集成
- 🔒 安全认证处理
- 📈 实时市场数据访问
- 💼 账户管理
- 📊 风险管理控制
- 🔄 订单放置与管理
- 📝 全面测试覆盖
安装
通过Smithery安装
通过Smithery自动安装Claude桌面版的Tradovate MCP服务器:
手动安装
-
克隆仓库:
-
安装依赖:
-
建设项目:
-
跑步:
配置
在项目根创建一个包含 Tradovate 凭证的 .env 文件:
可用工具
认证
authenticate:连接 Tradovate API- 无需参数
账户管理
-
get_accounts:列出所有交易账户 -
无需参数
-
get_positions:查看当前位置 -
无需参数
-
get_risk_limits:获取风险管理设置 -
所需参数:
-
account_id:(编号)账户ID,用于获取限制
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Tradovate Server
A Model Context Protocol (MCP) server for Tradovate integration in Claude Desktop. This server enables AI assistants to manage Tradovate trading accounts through natural language interactions.
Features
- ✅ Complete Tradovate API integration
- 🔒 Secure authentication handling
- 📈 Real-time market data access
- 💼 Account management
- 📊 Risk management controls
- 🔄 Order placement and management
- 📝 Comprehensive test coverage
Installation
Installing via Smithery
To install the Tradovate MCP server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @0xjmp/mcp-tradovate --client claude
Manual Installation
- Clone the repository:
git clone https://github.com/0xjmp/mcp-tradovate.git
cd mcp-tradovate
- Install dependencies:
go mod download
- Build the project:
go build ./cmd/mcp-tradovate
- Run:
./mcp-tradovate
Configuration
Create a .env file in the project root with your Tradovate credentials:
TRADOVATE_USERNAME=your_username
TRADOVATE_PASSWORD=your_password
TRADOVATE_APP_ID=your_app_id
TRADOVATE_APP_VERSION=your_app_version
TRADOVATE_CID=your_client_id
TRADOVATE_SEC=your_client_secret
Available Tools
Authentication
authenticate: Connect to Tradovate API- No parameters required
Account Management
-
get_accounts: List all trading accounts- No parameters required
-
get_positions: View current positions- No parameters required
-
get_risk_limits: Get risk management settings- Required parameters:
account_id: (number) Account ID to get limits for
- Required parameters:
-
set_risk_limits: Configure risk management settings- Required parameters:
account_id: (number) Account ID to set limits forday_max_loss: (number) Maximum daily loss limitmax_drawdown: (number) Maximum drawdown limitmax_position_qty: (number) Maximum position quantitytrailing_stop: (number) Trailing stop percentage
- Required parameters:
Trading Operations
place_order: Submit a new order- Required parameters:
account_id: (number) Account ID to place the order forcontract_id: (number) Contract ID to tradeorder_type: (string) Type of order (Market, Limit, etc.)
- Required parameters:
安装
npx -y @smithery/cli install @0xjmp/mcp-tradovate --client claude