SuperAPIAI Directory

tasty-agent

github.com · AI agents

Trade on Tastytrade via the Tastyworks API.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose: tasty-agent is an MCP server for TastyTrade brokerage accounts, enabling LLMs such as Claude to monitor portfolios, analyze positions, and execute trades, with built-in IV analysis prompts and compact tool output. Written in TypeScript, it connects directly to the Tastytrade REST API and DXLink (without using an SDK). The same codebase can run locally via stdio (npx tasty-agent) or be deployed as a remote MCP server on Cloudflare Workers. v7 is a rewrite: the Python package (uvx tasty-agent, 6.x) became an npm package, Modal deployment became Cloudflare Workers, and tool names are unchanged.

Main capabilities: For accounts and portfolios, use account_overview to view balances and positions; market data and research provide get_quotes (including after-hours quotes), get_greeks (up to 100 contracts, timeout up to 30 seconds), get_market_metrics (IV rank, percentile, beta, liquidity), market_status, search_symbols, get_history (trade or order history, paginated); order management provides place_order (multi-leg, derives midpoint from quotes, sizes by target amount, validates tick prices before submission, does a dry run first, rejects the order on any warning; on broker timeout or 5xx, reports the result as unknown and does not retry), replace_order, cancel_order, list_orders; watchlist provides unified create, read, update, and delete management; it also includes an IV rank analysis prompt.

Usage: First create an OAuth application in Tastytrade, check all scopes, save the client ID and client secret, then create a New Personal OAuth Grant (also checking all scopes) and copy the refresh token. Add the MCP server to the client configuration (such as claude_desktop_config.json), and add TASTYTRADE_ACCOUNT_ID only when authorization involves multiple accounts. For the remote method, configure in cloudflare.config.ts and deploy with the cf CLI; the server address is https://tasty-agent.<your subdomain>.workers.dev/mcp (streamable HTTP), and you need to connect with a bearer token. The Rest client, rate-limit gate, tick rules, and DXLink source are exported separately and can be reused.

Limitations: Requires Node.js 22+; all broker requests (including token refresh) share a per-process rate-limit gate of two per second (on Cloudflare, a single Durable Object); get_quotes no longer accepts timeout, and get_greeks is capped at 100 contracts and 30 seconds; GTD time validity and local SSE/HTTP transport have been removed; a blank TASTYTRADE_ACCOUNT_ID is treated as unset. The Worker serves only your own account, and anyone holding the bearer token can trade, so it must be protected like the refresh token.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools