ferdousbhai/tasty-agent
FreeNot checkedTastyworks API integration to handle trading activities on Tastytrade
About
Tastyworks API integration to handle trading activities on Tastytrade
README
A Model Context Protocol server for TastyTrade brokerage accounts. Enables LLMs to monitor portfolios, analyze positions, and execute trades. Features automated IV analysis prompts and compact tool output.
Authentication
OAuth Setup:
- Create an OAuth app at https://my.tastytrade.com/app.html#/manage/api-access/oauth-applications
- Check all scopes, save your client ID and client secret
- Create a "New Personal OAuth Grant" in your OAuth app settings (check all scopes)
- Copy the generated refresh token
- Configure the MCP server with your credentials (see Usage section below)
MCP Tools
Account & Portfolio
account_overview(include=["balances","positions"])- Account balances (including net liquidating value) and open positions.
Market Data & Research
get_quotes(instruments, timeout=10.0)- Real-time quotes for stocks, options, futures, and indices via DXLink streamingget_greeks(options, timeout=10.0)- Greeks (delta, gamma, theta, vega, rho) for equity and futures options via DXLink streamingget_market_metrics(symbols)- IV rank, percentile, beta, liquidity for multiple symbolsmarket_status(exchanges=['Equity'])- Market hours, status, holidays, and current NYC time ('Equity', 'CME', 'CFE', 'Smalls')search_symbols(symbol, limit=10)- Search for symbols by name/ticker
History
get_history(type, days=None, underlying_symbol=None, transaction_type=None, page_offset=0, limit=25)- Transaction history (type="transactions", default 90 days) or order history (type="orders", default 7 days). Paginated — usepage_offsetandlimitfor large result sets. Filter transactions by"Trade"or"Money Movement".
Order Management
place_order(legs, target_value=None, time_in_force="Day", dry_run=false)- Place multi-leg orders with quote-derived mid pricing only. The tool fetches live quotes for the exact resolved instruments, computes the signed net mid, validates the final limit against bid/ask guardrails, and optionally sizes quantity fromtarget_value.quantityis the actual share/contract count.target_value=50000sizes an equity or equity-option order from quote-derived pricing; omitquantityfor single-leg target-value orders. For multi-leg spreads withtarget_value, usequantityonly to express the leg ratio, such as 1:1 or 2:1.- Order prices are aligned to the broker's valid tick grid before submission. Option orders require tastytrade option tick-size data; if it is unavailable, the tool fails before placement instead of submitting an invalid price increment.
- Order actions follow the tastytrade Python SDK contract: equities and options use
Buy to Open,Buy to Close,Sell to Open, orSell to Close; futures useBuyorSell.
replace_order(order_id)- Reprice an existing live order at the current quote-derived mid.cancel_order(order_id)- Cancel an order.list_orders()- Get all live orders.- Tool outputs are compact: quote tables include actionable bid/ask/mid/size fields; order results include compact order, buying-power, fee, warning/error, and sizing summaries.
Watchlist Management
watchlist(action, ...)- Unified watchlist management:action="list"- Nonamereturns compact watchlist metadata (name,group,symbol_count); withname, returns compact symbol entries.action="add"- Add symbols to a watchlist (creates if doesn't exist)action="remove"- Remove symbols from a watchlistaction="delete"- Delete a watchlist
MCP Prompts
- IV Rank Analysis - Automated prompt to analyze IV rank extremes across positions and watchlists for entry/exit opportunities
Usage
Local (stdio)
Add to your MCP client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"tastytrade": {
"command": "uvx",
"args": ["tasty-agent"],
"env": {
"TASTYTRADE_CLIENT_SECRET": "your_client_secret",
"TASTYTRADE_REFRESH_TOKEN": "your_refresh_token",
"TASTYTRADE_ACCOUNT_ID": "your_account_id"
}
}
}
}
TASTYTRADE_ACCOUNT_ID may be omitted only when the OAuth grant exposes one
brokerage account. Set it explicitly when the grant exposes multiple accounts.
Remote (Modal)
Deploy as a remote MCP server on Modal with proxy auth:
uvx modal setup
# Create secrets
uvx modal secret create tasty-agent-secrets \
TASTYTRADE_CLIENT_SECRET=your_secret \
TASTYTRADE_REFRESH_TOKEN=your_token \
TASTYTRADE_ACCOUNT_ID=your_account_id # optional for single-account grants
# Create a proxy auth token at https://modal.com/settings/proxy-auth-tokens
# Export your workspace host
export MODAL_HOST=<workspace>--tasty-agent-mcp-server.modal.run
# Deploy
uvx modal deploy examples/modal_deploy.py
Clients authenticate with Modal-Key and Modal-Secret headers. See examples/modal_deploy.py.
Programmatic (Python client)
Connect to a remote tasty-agent and call tools directly:
# List all tools
uv run examples/mcp_client.py
# Call a tool
uv run examples/mcp_client.py market_status
uv run examples/mcp_client.py get_market_metrics '{"symbols": ["AAPL", "SPY"]}'
See examples/mcp_client.py for the full client code.
Examples
"Get my account balances and current positions"
"What's my net liquidating value?"
"Get real-time quotes for SPY and AAPL"
"Get quotes for a TQQQ call at strike 100 expiring YYYY-MM-DD" (use a concrete listed expiration)
"Get Greeks for an AAPL put at strike 150 expiring YYYY-MM-DD" (use a concrete listed expiration)
"Get Greeks for an /ES call at strike 5800 expiring YYYY-MM-DD" (use a concrete listed expiration)
"Buy to open 100 AAPL shares at mid"
"Buy to open 17 TQQQ calls at strike 100 expiring YYYY-MM-DD" (use a concrete listed expiration)
"Buy $50K of TSLA calls at strike 300 expiring YYYY-MM-DD" (use a concrete listed expiration)
"Place an AAPL 150/155 call spread expiring YYYY-MM-DD" (use a concrete listed expiration)
"Buy one /ES-CONTRACT future at mid" (use a concrete active contract symbol)
"Reprice order 12345 at mid"
"Cancel order 12345"
"Show my live orders"
"Get my trading history from January"
"Get my order history for SPY"
"Get my private watchlists"
"Add TSLA and NVDA to my tech watchlist"
Development
# Run tests
uv run pytest
# Interactive chat client (requires .env with credentials + OPENAI_API_KEY)
uv run examples/chat.py
# Debug with MCP inspector
npx @modelcontextprotocol/inspector uvx tasty-agent
License
MIT
Installing ferdousbhai/tasty-agent
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ferdousbhai/tasty-agentFAQ
Is ferdousbhai/tasty-agent MCP free?
Yes, ferdousbhai/tasty-agent MCP is free — one-click install via Unyly at no cost.
Does ferdousbhai/tasty-agent need an API key?
No, ferdousbhai/tasty-agent runs without API keys or environment variables.
Is ferdousbhai/tasty-agent hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install ferdousbhai/tasty-agent in Claude Desktop, Claude Code or Cursor?
Open ferdousbhai/tasty-agent on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Stripe
Payments, customers, subscriptions
by Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
by malamutemayhemwhiteknightonhorse/APIbase
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
by whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
embeddedlayers/mcp-analytics
Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources
by embeddedlayerscarrierone/verilexdata-mcp
20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit
by carrieronetipdotmd/tip-md-x402-mcp-server
MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.
by tipdotmdlaundromatic/shopgraph
Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev
by laundromaticmrslbt/xendit-mcp
Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal
by mrslbt@arbitova/mcp-server
Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create
by jiayuanliang0716-maxCompare ferdousbhai/tasty-agent with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All finance MCPs
