mcp-tastytrade-server
Enables trading and account management on TastyTrade via natural language commands.
README
mcp-tastytrade-server
An MCP server that exposes the TastyTrade brokerage API as tools for Claude and other MCP-compatible clients.
Features
| Tool | Description |
|---|---|
get_accounts |
List all accounts |
get_positions |
Open positions for an account |
get_balances |
Balances and buying power |
get_orders |
Orders (filterable by status) |
dry_run_order |
Validate an order — fees, BP impact, warnings |
place_order |
Place a live order |
cancel_order |
Cancel a live order |
get_option_chain |
Option chain (nested by expiry or compact flat list) |
get_market_metrics |
IV rank, IV percentile, 30-day IV, liquidity |
get_transactions |
Transaction history |
search_equities |
Search equity instruments by symbol |
get_watchlists |
Customer watchlists |
Setup
1. Install dependencies
pip install -e .
# or with uv:
uv pip install -e .
2. Configure credentials
cp .env.example .env
# Edit .env with your TastyTrade username and password
Credentials are read only from environment variables — they are never stored in code:
| Variable | Required | Description |
|---|---|---|
TASTYTRADE_USERNAME |
Yes | Your TastyTrade login username |
TASTYTRADE_PASSWORD |
Yes | Your TastyTrade login password |
TASTYTRADE_SANDBOX |
No | Set to true to use the certification environment (default: false) |
3. Configure Claude Desktop
Add the following to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"tastytrade": {
"command": "mcp-tastytrade",
"env": {
"TASTYTRADE_USERNAME": "your_username",
"TASTYTRADE_PASSWORD": "your_password"
}
}
}
}
Or using uv run without installing:
{
"mcpServers": {
"tastytrade": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/mcp-tastytrade-server", "mcp-tastytrade"],
"env": {
"TASTYTRADE_USERNAME": "your_username",
"TASTYTRADE_PASSWORD": "your_password"
}
}
}
}
Option symbol format
Options use the OCC 21-character format: SYMBOL YYMMDDCPRICE
Examples:
AAPL 241220C00200000— AAPL $200 call expiring 2024-12-20SPY 241220P00580000— SPY $580 put expiring 2024-12-20
The get_option_chain tool returns symbols already formatted correctly.
Development
# Run directly
python -m mcp_tastytrade.server
# Or via the installed script
mcp-tastytrade
Security
- Credentials are passed via environment variables only.
- The
.envfile is in.gitignoreand must never be committed. - Session tokens are held in memory for the lifetime of the server process and are deleted on shutdown.
- Use
TASTYTRADE_SANDBOX=truefor testing — the certification environment uses separate accounts with no real money.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.