Skip to main content
Glama
alexanimal

Tradovate MCP Server

by alexanimal

Tradovate MCP Server

codecov License: MIT

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

Related MCP server: Alpaca Trading MCP Server

Installation

  1. Clone the repository

  2. Install dependencies:

npm install
  1. 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 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

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:

  1. get_contract_details - Get details for a specific contract by symbol

  2. list_positions - List positions for an account

  3. place_order - Place a new order

  4. modify_order - Modify an existing order

  5. cancel_order - Cancel an existing order

  6. liquidate_position - Liquidate a position

  7. get_account_summary - Get account summary information

  8. get_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.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that interfaces with Alpaca trading API, allowing users to manage portfolios, place trades, and access market data through natural language interactions.
    Last updated
    8
    36
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Implements a Model Context Protocol server that connects with Zerodha Kite API, allowing users to buy/sell stocks and retrieve holdings and positions information.
    Last updated
    1
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables users to interact with Polygon.io API for retrieving financial market data including ticker details, quotes, aggregates, market status and news.
    Last updated
    8
    1

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexanimal/tradovate-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server