
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
tastytrade-mcp
Advanced tools
TastyTrade MCP Server - Production-ready OAuth trading with full instrument support
A Model Context Protocol (MCP) server that connects your TastyTrade trading account to AI assistants like Claude Desktop and ChatGPT for conversational trading and portfolio management.
β οΈ Important: The TastyTrade API has certain limitations. The following features are NOT available:
- Options Greeks - Delta, Gamma, Theta, etc. are not provided by the API
- Historical Price Data - No historical bars/candles endpoint available
- These tools have been removed to avoid misleading functionality
# 1. Install the package
pipx install tastytrade-mcp
# 2. Run interactive setup
tastytrade-mcp setup
# 3. Start MCP server for Claude Desktop
tastytrade-mcp local
The setup wizard will guide you through two authentication modes:
.env fileDatabase mode uses OAuth2 personal grants for secure, encrypted token storage. This is perfect for personal use and self-hosted deployments.
Step 1: Create Your OAuth Application
http://localhost:8000/callback (required but not used for personal grants)read and tradeStep 2: Generate Personal Grant
Step 3: Run Database Setup
tastytrade-mcp setup --mode database
The setup wizard will prompt you for:
Security Features:
Important Security Notes:
# Interactive setup wizard
tastytrade-mcp setup
# Simple mode setup
tastytrade-mcp setup --mode simple
# Database mode setup
tastytrade-mcp setup --mode database
# Check current status
tastytrade-mcp status
# Test your connection
tastytrade-mcp test
# Clean all config/database files
tastytrade-mcp clean
β οΈ Important: Use your real TastyTrade account credentials. This connects to your actual trading account.
tastytrade-mcp local
Then restart Claude Desktop and ask: "Show my TastyTrade positions"
tastytrade-mcp setup # Interactive setup wizard
tastytrade-mcp local # Start MCP server for Claude Desktop
tastytrade-mcp status # Show configuration status
tastytrade-mcp test # Test API connections
tastytrade-mcp clean # Remove all config/database files
tastytrade-mcp --help # Show all available commands
Once you've run tastytrade-mcp local, the MCP server is ready for Claude Desktop:
"Show me my current TastyTrade positions"
"What's my account balance?"
"Get a quote for AAPL"
"Search for AI-related stocks"
"Show me my recent orders"
accounts - List all TastyTrade accountsbalances - Get account balance informationpositions - View current positionssearch_symbols - Search stocks, ETFs, and other instrumentsquote - Get real-time market quotessearch_options - Find options chains with filteringaudit_log - View trading activity audit trailsecurity_status - Check authentication and encryption status# Check current installation status
tastytrade-mcp status
# Test API connection and authentication
tastytrade-mcp test
# Remove all configuration and database files
tastytrade-mcp clean
# Show all available commands
tastytrade-mcp --help
If you prefer manual setup:
git clone <repository-url>
cd Tasty_MCP
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Create .env file with your credentials
echo "TASTYTRADE_USERNAME=your_email@tastytrade.com" > .env
echo "TASTYTRADE_PASSWORD=your_password" >> .env
echo "TASTYTRADE_USE_PRODUCTION=true" >> .env
# Start server
python tastytrade_unified_server.py
.env files"Show me my current positions and account balances"
"What are my open orders?"
"Get real-time quotes for NVDA, TSLA, and AAPL"
"Get live quotes for my stock holdings"
"Stream real-time data for AAPL for 30 seconds"
"Show me the current market price of Bitcoin futures"
# Step 1: Get your current option positions
"Show me all my current option positions"
# Step 2: Get real-time pricing (use exact symbols from positions)
"Get real-time quotes for these symbols: AMD 251121P00165000, NVDA 251121C00240000"
# Step 3: Analyze options strategies
"Analyze my AMD put spread strategy with current market conditions"
For real-time streaming of option quotes, use stream_option_quotes:
Important: This tool takes the underlying symbol and constructs the option symbols for you.
Correct Usage:
{
"symbol": "AAPL",
"strikes": "230,235,240",
"expiration": "2025-10-17",
"option_type": "put"
}
Parameters:
symbol: Underlying stock symbol (e.g., "AAPL")strikes: Comma-separated strike prices (e.g., "230,235,240")expiration: Expiration date in YYYY-MM-DD formatoption_type: Either "call" or "put"duration: How long to stream in seconds (default: 10)Example Questions:
"Stream option quotes for AAPL puts at strikes 230, 235, and 240 expiring 2025-10-17"
"Get real-time quotes for SPY calls at 570, 575, 580 expiring next Friday"
Note: Do NOT pass full option symbols like "AAPL 251017P00230000" - the tool constructs these for you.
"Search for symbols related to artificial intelligence"
"Get the option chain for TSLA expiring in 30 days"
"Find options with delta around 0.30 for SPY"
"Create a buy order for 100 shares of AAPL at market price"
"Set up a stop-loss order for my NVDA position at $200"
"Show me the status of my pending orders"
"Calculate the total value of my portfolio"
"Show me my unrealized P&L by position"
"What's my current buying power?"
If option prices aren't showing:
get_positions to see your actual option symbolsAAPL 251121C00150000 (not "AAPL $150 Call")get_realtime_quotes with the exact symbols from your positionsIf you keep getting "Allow" prompts:
If database mode setup fails:
"Invalid refresh token" errors:
"Invalid client credentials" errors:
Database connection errors:
tastytrade-mcp clean and setup againToken refresh failures:
If real-time quotes aren't working:
Currently, the MCP server uses personal grant OAuth for individual use. We're planning to become a TastyTrade Trusted Partner to enable full OAuth flow:
What this means:
Current Status: Personal grant flow (perfect for open source self-hosted use) Future Goal: Trusted partner approval for public deployments
If you're interested in helping or have feedback on this roadmap, please open a GitHub issue!
| Type | Sandbox | Production | Notes |
|---|---|---|---|
| Equity (Stocks) | β | β | Fully tested |
| Equity Options | β | β | Single & multi-leg |
| Futures | β | β οΈ | Requires special account |
| Future Options | β | β οΈ | Requires special account |
| Cryptocurrency | β | β | Not yet supported by API |
This project is licensed under the MIT License - see the LICENSE file for details.
π¨ Trading Disclaimer: This software connects to real trading accounts with actual money. All trading involves financial risk. Users are responsible for their trading decisions and should understand the risks before using this tool.
FAQs
TastyTrade MCP Server - Production-ready OAuth trading with full instrument support
We found that tastytrade-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.