Tradovate Tools
A Model Context Protocol server that enables interaction with the Tradovate API for managing trading contracts, positions, orders, and accounts.
alexanimal
README
Tradovate MCP Server
A Model Context Protocol (MCP) server for interacting with the Tradovate API. This server provides tools for managing contracts, positions, orders, and accounts in Tradovate.
Features
- Authentication with Tradovate API
- Real-time data fetching with caching
- Tools for contract details, position management, order placement, and more
- Fallback to simulated data when API is unavailable
Installation
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file with your Tradovate credentials:
TRADOVATE_API_ENVIRONMENT=demo
TRADOVATE_USERNAME=your_username
TRADOVATE_PASSWORD=your_password
TRADOVATE_APP_ID=Sample App
TRADOVATE_APP_VERSION=1.0
TRADOVATE_CID=your_cid
TRADOVATE_SEC=your_sec
Usage
Start the server:
npm start
Or use with the MCP Inspector:
npm run inspector
Development
Project Structure
src/index.ts
- Main server entry pointsrc/auth.ts
- Authentication functionssrc/data.ts
- Data fetching and cachingsrc/tools.ts
- Tool handlers for MCPsrc/types.ts
- TypeScript type definitionstests/
- Test files
Building
npm run build
Testing
Run tests:
npm test
Run tests with coverage:
npm run test:coverage
Generate coverage badge:
npm run coverage:badge
Available Tools
The server provides the following tools:
get_contract_details
- Get details for a specific contract by symbollist_positions
- List positions for an accountplace_order
- Place a new ordermodify_order
- Modify an existing ordercancel_order
- Cancel an existing orderliquidate_position
- Liquidate a positionget_account_summary
- Get account summary informationget_market_data
- Get market data (quotes, DOM, charts)
API Endpoints
The server interacts with the following Tradovate API endpoints:
Authentication
/auth/accessTokenRequest
- Get access token/auth/renewAccessToken
- Renew access token
Contracts
/contract/list
- List all contracts/contract/find
- Find a specific contract
Positions
/position/list
- List all positions
Orders
/order/list
- List all orders/order/placeOrder
- Place a new order/order/modifyOrder
- Modify an existing order/order/cancelOrder
- Cancel an existing order/order/liquidatePosition
- Liquidate a position
Accounts
/account/list
- List all accounts/account/find
- Find a specific account/cashBalance/getCashBalanceSnapshot
- Get cash balance for an account
Market Data
/md/getQuote
- Get quote data/md/getDOM
- Get depth of market data/md/getChart
- Get chart data
License
MIT License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Hyperbrowser MCP Server
Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to
BigQuery
This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.
Perplexity Chat MCP Server
MCP Server for the Perplexity API.
Web Research Server
A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.
MySQL Server
Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
Aindreyway Codex Keeper
Serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.
Etherscan Tools
Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.
Perplexity Deep Research
A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.