Skip to main content
Glama
Tastytrade MCP Server

Tastytrade MCP Server

by tnngnc

Tastytrade MCP Server

A server that provides access to Tastytrade historical price data via the Model Context Protocol (MCP).

Prerequisites

  • Tastytrade credentials (Client Secret, Refresh Token)

  • uv (Python package manager)

Related MCP server: Alpha Vantage MCP Server

Installation

This project uses uv to manage dependencies and ensure a consistent environment for all users.

  1. Clone the repository and navigate to the directory.

  2. Install the dependencies:

    uv sync

    This will create a .venv directory with the exact versions specified in uv.lock.

Configuration

It is not recommended to store credentials directly in your MCP client configuration file. Instead, this server is configured to load them automatically from the .env file located in the same directory as the script.

  1. Ensure you have created your .env file with your credentials:

    cp .env.example .env
    # Edit .env with your actual details
  2. Configure your MCP client (e.g., claude_desktop_config.json) with the command to run the server.

{
  "mcpServers": {
    "tastytrade": {
      "command": "/home/username/.pyenv/versions/data/bin/python",
      "args": [
        "/home/username/Desktop/projects/mcp_tasty/tastytrade_server.py"
      ]
    }
  }
}

Note: Since dependencies are now managed by the project, point the command to the .venv python if you want to use the lockfile environment, or just use uv as the command.

Recommended Configuration (using uv):

{
  "mcpServers": {
    "tastytrade": {
      "command": "uv",
      "args": [
        "run",
        "/home/username/Desktop/projects/mcp_tasty/tastytrade_server.py"
      ]
    }
  }
}

Available Tools

  • get_price_history(symbol, days=7, interval='1d'): Get historical candle data for a symbol (e.g., "SPY").

Testing

To run the test client using the project environment:

uv run test_client.py

Available Tools

1 tool
get_price_historyB
Get historical price data (candles) for a symbol.

Args:
    symbol: The symbol to fetch data for (e.g. 'SPY', 'AAPL').
    days: Number of past days to fetch data for (default 7).
    interval: Candle interval (e.g. '1d', '1h', '5m').

Inputs: symbol (required), days, interval. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct and standalone.

    Naming Consistency5/5

    The single tool name follows a clear verb_noun pattern (get_price_history), and with only one tool, consistency is inherently perfect as there are no other tools to compare against.

    Tool Count2/5

    A single tool is too few for a server named 'Tastytrade MCP Server', which implies a broader financial or trading domain. This minimal toolset feels thin and under-scoped for such a purpose.

    Completeness1/5

    The server is severely incomplete for its implied domain. It only provides historical price data, with no tools for account management, order placement, real-time quotes, or other core trading functionalities, leading to significant gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Provides real-time cryptocurrency price data from OKX exchange through a Model Context Protocol interface, allowing access to historical candlestick data and current market prices for any trading instrument.
      2
      16
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Provides market intelligence including asset search, market state, cues, events, and paper trading via the Model Context Protocol.
      MIT