# ferdousbhai/tasty-agent [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ferdousbhai/tasty-agent  
**GitHub Stars:** 90  
**npm Downloads (last month):** 104  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ferdousbhai-tasty-agent

## Description
Tastyworks API integration to handle trading activities on Tastytrade

## Tools
Capabilities this server exposes over MCP:

- **account_overview** — Get balances and/or open positions. Use get_history(type="transactions", transaction_type="Money Movement") for deposits/withdrawals.
- **get_history** — Get paginated transaction or order history.
- **place_order** — Place a new order using live quote-derived mid pricing, rounded to the nearest valid tick. No manual limit price is accepted. Every order is first sent to the broker as a dry run; if the dry run returns any warning, the order is not submitted.

For options, set symbol to the underlying and include option_type, strike_price, expiration_date. Quantity is the actual share/contract count. With target_value, omit quantity for single-leg orders; for multi-leg spreads, use quantity only to express the leg ratio, such as 1:1 or 2:1.
- **replace_order** — Reprice a live order once at the current quote-derived mid.
- **cancel_order** — Cancel a live order by id.
- **list_orders** — List all live orders.
- **get_quotes** — Get live quotes for stocks, options, futures, and indices.
- **get_greeks** — Get option Greeks: delta, gamma, theta, vega, rho.
- **get_market_metrics** — Get IV/HV, beta, liquidity, valuation, dividends, earnings. IV rank/percentile are 0-1.
- **market_status** — Get exchange open/closed status, next open/close, holiday flags, and current NYC time.
- **search_symbols** — Search symbols by ticker or company name.
- **watchlist** — Manage watchlists.

Actions:
  list: no name returns compact watchlists; with name returns symbols. Supports public/private.
  add: add symbols to a private watchlist; creates if missing.
  remove: remove symbols from a private watchlist.
  delete: delete a private watchlist by name.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tasty-agent": {
    "command": "npx",
    "args": ["-y","tasty-agent"],
    "env": {
      "TASTYTRADE_CLIENT_SECRET": "",
      "TASTYTRADE_REFRESH_TOKEN": "",
      "TASTYTRADE_ACCOUNT_ID": ""
    }
  }
}
```

**Requires environment variables:** `TASTYTRADE_CLIENT_SECRET`, `TASTYTRADE_REFRESH_TOKEN`, `TASTYTRADE_ACCOUNT_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ferdousbhai/tasty-agent MCP server does

The ferdousbhai/tasty-agent MCP server exposes TastyTrade brokerage operations through MCP. It can retrieve account balances and open positions, including net liquidating value, and provide market information for stocks, options, futures, and indices. Market tools cover real-time quotes, option Greeks, IV rank, IV percentile, beta, liquidity, market status, holidays, and symbol search.

Trading functions cover multi-leg order placement, repricing, cancellation, and live-order listing. The server also retrieves transaction and order history with date, symbol, transaction-type, and pagination controls. Watchlist operations can list watchlists, inspect symbols, add or remove symbols, and delete watchlists. An IV Rank Analysis prompt helps analyze IV extremes across positions and watchlists.

## How it works

The server authenticates to TastyTrade with an OAuth client secret and refresh token. An account ID can be supplied when the OAuth grant covers multiple brokerage accounts; it may be omitted for a grant containing only one account.

Quote and Greeks requests use DXLink streaming. When placing an order, the server resolves the requested instruments, fetches current quotes, calculates a signed net midpoint, checks the resulting limit price against bid/ask guardrails, and aligns prices to the broker’s valid tick grid. Option orders require TastyTrade tick-size data; missing data causes the request to fail before submission. A dry-run option is available for order placement.

Quantity can be given directly, or a single-leg equity or equity-option order can be sized from a target value. For multi-leg spreads, quantity represents the leg ratio when target-value sizing is used. Supported order actions include the TastyTrade equity and option actions for opening and closing positions, plus Buy and Sell for futures.

## Setup and configuration

The ferdousbhai/tasty-agent MCP server can run locally over stdio with `uvx tasty-agent`. Configure an MCP client with the `tasty-agent` package and these environment variables:

- `TASTYTRADE_CLIENT_SECRET`
- `TASTYTRADE_REFRESH_TOKEN`
- `TASTYTRADE_ACCOUNT_ID` when needed for multiple accounts

Before configuration, create a TastyTrade OAuth application, enable its scopes, create a personal OAuth grant, and copy the resulting refresh token. The project also documents deployment on Modal, where clients authenticate with Modal-Key and Modal-Secret headers.

## Tools and capabilities

- Retrieve account balances, positions, and net liquidating value.
- Query quotes, Greeks, market metrics, market status, and symbols.
- Read paginated transaction and order history.
- Place, reprice, cancel, and list orders.
- Manage private watchlists and their symbols.
- Return compact quote, order, buying-power, fee, warning, error, and sizing summaries.

## Limitations and notes

The server can execute live trades, so credentials and order parameters require careful handling. Quote-derived pricing depends on current market data, and option placement stops if required tick-size information is unavailable. The account ID is optional only for single-account OAuth grants. Remote Modal deployment adds proxy authentication requirements beyond the TastyTrade credentials. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/ferdousbhai-tasty-agent/readme_

