# How to connect Claude to the tastytrade MCP server

> How to connect Claude to the tastytrade MCP server: setup steps and safety settings from the official docs.

Canonical: https://tradingagentstack.com/guides/connect-claude-to-tastytrade-mcp/

1. [Home](https://tradingagentstack.com/)

2. [Guides](https://tradingagentstack.com/guides/)

# How to connect Claude to the tastytrade MCP server

By [Ahsen Rajab (@Satovinci)](https://tradingagentstack.com/about/)

✓ Written from official docs · checked 2026-11-30

## Key facts

Updated Nov 30, 2026 · every fact links its source · [how we check](https://tradingagentstack.com/methodology/)

- **Live vs paper:** live by default (connects to production unless TASTYTRADE_ENV=sandbox); sandbox available (no market data, resets every 24 hours) ([developer.tastytrade.com](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/) · Nov 30, 2026)

- **Orders and safety:** 84 tools (70 read-only, 2 write, 12 destructive; read-only mode withholds all 14 write and destructive tools)… ([developer.tastytrade.com](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/) · Nov 30, 2026)

- **Pricing:** tastytrade: $0 stock/ETF commissions, $1 per contract to open options ($10 max per leg); no subscription ([developer.tastytrade.com](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/) · Nov 30, 2026)

- **Safety score 100%**: You confirm each order. ([how it's scored](https://tradingagentstack.com/safety-score/) · Nov 30, 2026)

- **Rate limits:** tastytrade's per-endpoint limits plus a global cap of 50 requests per second in the server ([developer.tastytrade.com](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/) · Nov 30, 2026)

tastytrade's MCP server is **self-hosted and open source** under the MIT License ([tastytrade/tastytrade-mcp](https://github.com/tastytrade/tastytrade-mcp), [LICENSE](https://github.com/tastytrade/tastytrade-mcp/blob/main/LICENSE), Copyright (c) 2026 tastytrade). There's no tastytrade-hosted endpoint. These steps come from [tastytrade's MCP docs](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/).

## 1. Install (Node.js 22+)

```
git clone https://github.com/tastytrade/tastytrade-mcp.git
cd tastytrade-mcp
npm ci
npm run build
```

## 2. Credentials

Create an OAuth client and refresh token (my.tastytrade.com → Manage → My Profile → API), then supply `TASTYTRADE_CLIENT_ID`, `TASTYTRADE_CLIENT_SECRET` and `TASTYTRADE_REFRESH_TOKEN`. Sandbox and production credentials are separate OAuth apps and are not interchangeable.

## 3. Claude Desktop

In `claude_desktop_config.json`:

```
{
  "mcpServers": {
    "tastytrade": {
      "command": "node",
      "args": ["/absolute/path/to/tastytrade-mcp/dist/index.js"],
      "env": {
        "TASTYTRADE_ENV": "sandbox",
        "TASTYTRADE_CLIENT_ID": "…",
        "TASTYTRADE_CLIENT_SECRET": "…",
        "TASTYTRADE_REFRESH_TOKEN": "…"
      }
    }
  }
}
```

## Claude Code

```
claude mcp add tastytrade \
  -e TASTYTRADE_CLIENT_ID=… \
  -e TASTYTRADE_CLIENT_SECRET=… \
  -e TASTYTRADE_REFRESH_TOKEN=… \
  -- node /absolute/path/to/tastytrade-mcp/dist/index.js
```

The docs warn that `-s project` writes a shareable `.mcp.json`, which is the wrong place for secrets. Cursor, Zed and Continue use their own config files; see each client's docs.

## Safety settings

- **Production is the default.** Set `TASTYTRADE_ENV=sandbox` for no real money. The sandbox has no market data and resets every 24 hours.

- `TASTYTRADE_READ_ONLY=1` withholds all 14 write and destructive tools.

- `MAX_ORDER_NOTIONAL_USD` caps buying-power impact (default 50,000).

- The 5 order-submitting tools need a single-use `confirmation_token` from their own `dry_run_*` tool. It's valid for 60 seconds and bound to the exact arguments. Cancels and watchlist changes act on the first call.

- The API cannot access any money movement actions or endpoints, so the MCP is limited to reading and order placement if trade permissions are granted. Direct email confirmation from tastytrade API support (Connor, api.support@tastytrade.com), Oct 23, 2026.

Source: [https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/](https://developer.tastytrade.com/docs/sdks-and-tools/mcp-server/). Not financial advice.

## Related

- [Best broker for AI agents (2026)](https://tradingagentstack.com/best-broker-for-ai-agents/)

- [Alpaca MCP vs IBKR MCP](https://tradingagentstack.com/compare/alpaca-mcp-vs-ibkr-mcp/)

- [Safety controls of broker MCPs](https://tradingagentstack.com/broker-mcp-safety-controls/)

- [All broker MCP servers](https://tradingagentstack.com/category/broker-mcp/)

- [How to connect Claude to Alpaca via MCP](https://tradingagentstack.com/guides/connect-claude-to-alpaca-mcp/)

- [How to connect Claude (or any MCP client) to Interactive Brokers](https://tradingagentstack.com/guides/connect-claude-to-ibkr-mcp/)

- [How to connect Claude (and other AI agents) to the Robinhood Trading MCP](https://tradingagentstack.com/guides/connect-claude-to-robinhood-mcp/)

- [How to connect Claude to TradeStation MCP](https://tradingagentstack.com/guides/connect-claude-to-tradestation-mcp/)

- [How to connect Claude (and other AI apps) to the Public hosted MCP server](https://tradingagentstack.com/guides/connect-claude-to-public-mcp/)

- [Connect ChatGPT, Cursor or Claude Code to Interactive Brokers (IBKR MCP)](https://tradingagentstack.com/guides/ibkr-mcp-chatgpt-cursor-claude-code/)

- [How to connect Claude, ChatGPT or Cursor to the Tradier MCP server (paper first)](https://tradingagentstack.com/guides/connect-claude-to-tradier-mcp/)

- [How to connect Claude or Cursor to the moomoo MCP server (OAuth scopes explained)](https://tradingagentstack.com/guides/connect-claude-to-moomoo-mcp/)

- [Set up a 3Commas or Bitsgap bot with a safe exchange API key (no withdrawals, IP whitelist)](https://tradingagentstack.com/guides/safe-exchange-api-key-3commas-bitsgap/)

- [Run Freqtrade in dry-run mode (paper trading with a simulated wallet)](https://tradingagentstack.com/guides/freqtrade-dry-run/)

- [Give an AI agent IBKR paper trading access (TWS API or Web API)](https://tradingagentstack.com/guides/ibkr-paper-trading-api-for-ai-agents/)

[Need a custom AI trading agent built? Broker or exchange integration, MCP setup, Polymarket/Kalshi bots, safety guardrails, VPS deployment. →](https://tradingagentstack.com/go/build?from=/guides/connect-claude-to-tastytrade-mcp/&cta=generic-guide)

Building an agent on this? When it trades a public account on Hyperliquid or Polymarket, [get its track record verified](https://tradingagentstack.com/get-your-ai-agent-verified/): we check it from public data on the spot, then list it with a signed record. See [the AI trading bot leaderboard](https://tradingagentstack.com/ai-trading-leaderboard/), and how the agents already out there are doing in the [AI trading bot statistics](https://tradingagentstack.com/ai-trading-bot-statistics/).

## For agents

- [When to use this site, and the page index](https://tradingagentstack.com/llms.txt)
- [Sitemap](https://tradingagentstack.com/sitemap.xml)
- [Contact](https://tradingagentstack.com/contact/)
- [MCP server](https://tradingagentstack.com/mcp/)
- [MCP discovery](https://tradingagentstack.com/.well-known/mcp)
