Let Claude manage your tastytrade portfolio.
A Model Context Protocol server for interacting with TastyTrade brokerage accounts. This server enables Large Language Models to monitor portfolios, analyze positions, and execute trades through the TastyTrade platform.
Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
We will use uvx
to directly run tasty-agent:
uvx tasty-agent
The server requires TastyTrade credentials. For security, these are set up via command line and stored in your system's keyring (Keychain on macOS, Windows Credential Manager on Windows, or similar secure storage on other platforms):
uvx tasty-agent setup
plot_nlv_history
time_back
(string): Time period to plot ('1d', '1m', '3m', '6m', '1y', 'all')get_account_balances
"Cash: $5,000.00, Buying Power: $10,000.00, NLV: $15,000.00"
get_open_positions
get_transaction_history
start_date
(string, optional): Start date in YYYY-MM-DD format. Defaults to last 90 days if not provided.schedule_trade
action
(string): "Buy to Open" or "Sell to Close"quantity
(integer): Number of shares/contractsunderlying_symbol
(string): The underlying stock symbol (e.g., "SPY", "AAPL")strike
(float, optional): For options only - strike priceoption_type
(string, optional): For options only - "C" for calls, "P" for putsexpiration_date
(string, optional): For options only - expiration date in YYYY-MM-DD formatdry_run
(boolean): Simulate without executing (default: False)list_scheduled_trades
remove_scheduled_trade
task_id
(string): ID of task to removeget_metrics
symbols
(string[]): List of stock symbolsget_prices
symbol
(string): Stock or option symbolAdd this to your claude_desktop_config.json
:
{
"mcpServers": {
"tastytrade": {
"command": "path/to/uvx/command/uvx",
"args": ["tasty-agent"]
}
}
}
Important: Scheduled trades will only execute while Claude Desktop is running. When Claude Desktop is closed, the server shuts down and trades are not executed.
You can use the MCP inspector to debug the server:
npx @modelcontextprotocol/inspector uvx tasty-agent
For logs, check:
~/Library/Logs/Claude/mcp*.log
%APPDATA%\Claude\logs\mcp*.log
For local development testing:
{
"mcpServers": {
"tastytrade": {
"command": "path/to/uv/command/uv",
"args": [
"--directory",
"path/to/tasty-agent",
"run",
"tasty-agent"
]
}
}
}
This MCP server is licensed under the MIT License. See the LICENSE file for details.