Database · MODEL CONTEXT PROTOCOL
alexanimal tradovate mcp server
Tradovate MCP Server
WHAT IT CONNECTS
What alexanimal tradovate mcp server gives an AI Agent
- 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
- Clone the repository
- Install dependencies:
- Create a `.env` file with your Tradovate credentials:
- `src/index.ts` - Main server entry point
- `src/auth.ts` - Authentication functions
- `src/data.ts` - Data fetching and caching
- `src/tools.ts` - Tool handlers for MCP
- `src/types.ts` - TypeScript type definitions
- `tests/` - Test files
- `get_contract_details` - Get details for a specific contract by symbol
- `list_positions` - List positions for an account
- `place_order` - Place a new order
- `modify_order` - Modify an existing order
- `cancel_order` - Cancel an existing order
- `liquidate_position` - Liquidate a position
- `get_account_summary` - Get account summary information
- `get_market_data` - Get market data (quotes, DOM, charts)
- `/auth/accessTokenRequest` - Get access token
- `/auth/renewAccessToken` - Renew access token
- `/contract/list` - List all contracts
- `/contract/find` - Find a specific contract
- `/position/list` - List all positions
- `/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
- `/account/list` - List all accounts
- `/account/find` - Find a specific account
- `/cashBalance/getCashBalanceSnapshot` - Get cash balance for an account
- `/md/getQuote` - Get quote data
- `/md/getDOM` - Get depth of market data
- `/md/getChart` - Get chart data
SECURITY
An MCP listing is not a security review
An MCP server may receive model context, credentials, local files, or permission to call external systems. Review its code, requested environment variables, network behavior, package provenance, and maintenance status before connecting it to an agent.
README
Repository documentation
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.
- 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
- Clone the repository
- Install dependencies:
npm install- Create a
.envfile 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_secStart the server:
npm startOr use with the MCP Inspector:
npm run inspectorsrc/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
npm run buildRun tests:
npm testRun tests with coverage:
npm run test:coverageGenerate coverage badge:
npm run coverage:badgeThe 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)
The server interacts with the following Tradovate API endpoints:
/auth/accessTokenRequest- Get access token/auth/renewAccessToken- Renew access token
/contract/list- List all contracts/contract/find- Find a specific contract
/position/list- List all positions
/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
/account/list- List all accounts/account/find- Find a specific account/cashBalance/getCashBalanceSnapshot- Get cash balance for an account
/md/getQuote- Get quote data/md/getDOM- Get depth of market data/md/getChart- Get chart data
MIT License
This project is licensed under the MIT License - see the LICENSE file for details.
COMMUNITY