How to connect Claude to the tastytrade MCP server
✓ Written from official docs · checked 2026-11-30
tastytrade's MCP server is self-hosted and open source under the MIT License (tastytrade/tastytrade-mcp, LICENSE, Copyright (c) 2026 tastytrade). There's no tastytrade-hosted endpoint. These steps come from tastytrade's MCP docs.
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=sandboxfor no real money. The sandbox has no market data and resets every 24 hours. TASTYTRADE_READ_ONLY=1withholds all 14 write and destructive tools.MAX_ORDER_NOTIONAL_USDcaps buying-power impact (default 50,000).- The 5 order-submitting tools need a single-use
confirmation_tokenfrom their owndry_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.
Related
- Best broker for AI agents (2026)
- Alpaca MCP vs IBKR MCP
- Safety controls of broker MCPs
- All broker MCP servers
- How to connect Claude to Alpaca via MCP
- How to connect Claude (or any MCP client) to Interactive Brokers
- How to connect Claude (and other AI agents) to the Robinhood Trading MCP
- How to connect Claude to TradeStation MCP
- How to connect Claude (and other AI apps) to the Public hosted MCP server
- Connect ChatGPT, Cursor or Claude Code to Interactive Brokers (IBKR MCP)
- How to connect Claude, ChatGPT or Cursor to the Tradier MCP server (paper first)
- How to connect Claude or Cursor to the moomoo MCP server (OAuth scopes explained)
- Set up a 3Commas or Bitsgap bot with a safe exchange API key (no withdrawals, IP whitelist)
- Run Freqtrade in dry-run mode (paper trading with a simulated wallet)
- Give an AI agent IBKR paper trading access (TWS API or Web API)