tastytrade-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tastytrade-mcpShow me my account summary and open positions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tastytrade-mcp
An MCP server that lets an autonomous AI agent (Claude, etc.) connect to Tastytrade — scan markets, build option strategies, inspect accounts/positions/orders, and (optionally) place and manage trades.
OAuth2 authentication via the official
tastytradePython SDK (session tokens auto-refresh; refresh tokens are long-lived).Credentials stored in the OS keyring (Windows Credential Manager / DPAPI, macOS Keychain, Linux Secret Service) — never in files, never in env vars, never logged. This mirrors the meic-trader pattern.
Tool surface modeled on TastyScanner-MCP-Server.
Live trading is gated behind
ENABLE_LIVE_TRADING— disabled by default so an agent cannot place real orders without an explicit opt-in.stdio transport by default; optional HTTP transport hardened with CORS and per-IP rate limiting.
Install
pip install -e . # or: pip install -e .[dev] for testsRelated MCP server: FinClaw
1. Create a Tastytrade OAuth application
In the Tastytrade web app, open Manage → My Profile → API → OAuth Applications.
Create an application, select the scopes you need (read + trading), and add
http://localhost:8000as a valid redirect/callback URI.Save the client secret (shown once).
Create a grant to obtain a long-lived refresh token. For sandbox you can instead run
from tastytrade.oauth import login; login(is_test=True).
Never paste secrets into code,
.env, or version control.
2. Store credentials in the keyring
tastytrade-mcp secrets set --sandbox # or --production
tastytrade-mcp secrets status --sandboxYou'll be prompted (hidden input) for the client secret, refresh token, and an optional default account number.
3. Configure
Copy .env.example to .env and adjust. Key flags:
Variable | Default | Meaning |
|
| Use the sandbox/cert environment |
|
| Register order-placing tools |
|
| Force all orders to dry-run (propose-only mode) |
|
| Percent of buying power always kept in reserve (per order) |
|
| Account-wide cap on deployed buying power (from live positions) |
|
| Allowed CORS origin (HTTP transport) |
|
| Per-IP rate limit (HTTP transport) |
|
| HTTP bind address |
4. Run
tastytrade-mcp # stdio (default)
tastytrade-mcp --transport http # HTTP, CORS + rate limitedConnect an agent (stdio)
Claude Desktop / Claude Code MCP config:
{
"mcpServers": {
"tastytrade": {
"command": "tastytrade-mcp",
"env": { "TASTYTRADE_SANDBOX": "true" }
}
}
}Tools
Always available (read-only):
get_connection_status, get_market_overview, get_option_chain,
get_strategies, get_account_info, get_positions, list_accounts,
get_working_orders, get_watchlists.
Only when ENABLE_LIVE_TRADING=true:
execute_trade, adjust_order, close_position, manage_watchlist.
Order tools default to dry_run=true (validate without submitting).
Order safety layers
A live order requires all of the following, so it cannot happen by accident:
ENABLE_LIVE_TRADING=true— otherwise the order tools are not registered at all.FORCE_DRY_RUN=false— when set totrue, every order is forced to dry-run regardless of what the agent requests ("propose-only" mode).The agent explicitly passes
dry_run=falseon the call.
Before any submission, execute_trade / adjust_order run a pre-flight
dry-run and validate buying power: the order is rejected if it would leave
projected buying power below the required reserve (BUYING_POWER_BUFFER_PCT of
current buying power; with the default 0 it only blocks orders that would go
negative), or if the API returns errors. Rejections return
{"ok": false, "error": "pre-flight validation failed", "problems": [...]} and
nothing is submitted. The projected buying-power effect — including
required_reserve and buffer_pct when a buffer is set — is returned on every
call under "buying_power".
Account-wide deployment cap. ACCOUNT_DEPLOY_LIMIT_PCT adds a ceiling on
total deployed buying power (vs. the per-order BUYING_POWER_BUFFER_PCT). It is
derived from live account state — used_derivative_buying_power vs.
derivative_buying_power — not an in-memory counter. Capacity = used + available;
the limit is that percent of capacity, and an order is rejected if it would push
deployed buying power past it. Because it reads the account each time, it counts
buying power consumed by existing positions (even ones this server didn't
place) and stays correct across restarts and multiple server instances. The
figures (account_deployed_current, account_deployed_after,
account_deploy_limit, account_buying_power_capacity) appear in the
"buying_power" block.
Safety
Defaults to sandbox + live-trading-off.
Account numbers are masked in logs to the last 4 digits (
****1234); secrets are never logged.HTTP transport restricts CORS to a single origin and rate-limits to 120 requests/minute per IP (HTTP 429 when exceeded).
Development
pip install -e .[dev]
pytestDisclaimer
This software can place real orders against a live brokerage account. It is
provided "as is", with no warranty, and is not financial advice. You are
solely responsible for any trades it places and any resulting losses. Test in the
sandbox (TASTYTRADE_SANDBOX=true) before enabling live trading, and review the
order-safety controls above. The built-in risk checks reduce — but do not
eliminate — the risk of an unintended or oversized order.
This is an independent project and is not affiliated with, endorsed by, or
sponsored by tastytrade. It uses the unofficial third-party
tastytrade SDK.
License
MIT © 2026 Jon Covington
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/joncovington/tastytrade-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server