Sponsored by Deepsite.site

MCP Tradovate Server

Created By
0xjmp9 months ago
MCP server for the Tradovate platform
Content

MCP Tradovate Server

smithery badge Go Report Card codecov Go Reference License: MIT

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

  1. Clone the repository:
git clone https://github.com/0xjmp/mcp-tradovate.git
cd mcp-tradovate
  1. Install dependencies:
go mod download
  1. Build the project:
go build ./cmd/mcp-tradovate
  1. 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
  • set_risk_limits: Configure risk management settings

    • Required parameters:
      • account_id: (number) Account ID to set limits for
      • day_max_loss: (number) Maximum daily loss limit
      • max_drawdown: (number) Maximum drawdown limit
      • max_position_qty: (number) Maximum position quantity
      • trailing_stop: (number) Trailing stop percentage

Trading Operations

  • place_order: Submit a new order

    • Required parameters:
      • account_id: (number) Account ID to place the order for
      • contract_id: (number) Contract ID to trade
      • order_type: (string) Type of order (Market, Limit, etc.)
      • quantity: (number) Number of contracts to trade
      • time_in_force: (string) Time in force (Day, GTC, IOC, etc.)
    • Optional parameters:
      • price: (number) Order price (required for Limit orders)
  • cancel_order: Cancel an existing order

    • Required parameters:
      • order_id: (number) Order ID to cancel
  • get_fills: Get fills for a specific order

    • Required parameters:
      • order_id: (number) Order ID to get fills for

Market Data

  • get_contracts: List available contracts

    • No parameters required
  • get_market_data: Get real-time market data

    • Required parameters:
      • contract_id: (number) Contract ID to get market data for
  • get_historical_data: Get historical price data

    • Required parameters:
      • contract_id: (number) Contract ID to get data for
      • start_time: (string) Start time in ISO 8601 format
      • end_time: (string) End time in ISO 8601 format
      • interval: (string) Time interval (1m, 5m, 15m, 1h, 1d)

Development

Running Tests

Run all tests with coverage:

go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

Code Style

Follow Go best practices and conventions:

go fmt ./...
go vet ./...

Troubleshooting

Common Issues

  1. Authentication Failures

    • Verify your Tradovate credentials in the .env file
    • Ensure your API access is enabled in Tradovate
  2. Connection Issues

    • Check your internet connection
    • Verify Tradovate API status
    • Ensure firewall isn't blocking connections
  3. Rate Limiting

    • Implement appropriate delays between requests
    • Monitor API usage limits

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.

Author

Jake Peterson (@0xjmp)

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors