traders-edge-mcp
Provides integration with Robinhood for live position holdings, option fills, and realized P&L reconstruction.
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., "@traders-edge-mcpShow me the 0DTE gamma exposure for SPX"
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.
Traders Edge MCP
A consolidated 0DTE-focused options cockpit for SPX / SPXW, exposed as a Model Context Protocol server. It pulls free, key-less market data and turns it into the dealer-positioning, volatility, and event signals an index-options scalper actually watches — chain & Greeks, gamma exposure (GEX), the zero-gamma flip, call/put walls, max-pain, 0DTE expected move, dealer DEX / vanna / charm, the full VIX term structure, and an economic-event clock.
Greeks are recomputed analytically (vectorized Black–Scholes via numpy) from open interest and implied vol, with proper Eastern-time time-to-expiry so 0DTE gamma stays realistic into the bell.
Data is ~15 minutes delayed (CBOE delayed quotes). That is fine for positioning and regime. Overlay a live broker quote (e.g. Robinhood/E*TRADE/Alpaca MCP) for execution pricing.
Tools (70)
Chain & Greeks
Tool | What it does |
| SPX/SPXW chain near the money with IV + recomputed delta/gamma. Defaults to the nearest SPXW expiry; |
| Full detail for one OCC symbol (e.g. |
| Available SPX/SPXW expirations and days-to-expiry. |
Dealer positioning
Tool | What it does |
| Total dealer GEX ($ per 1% move) + the zero-gamma flip level and long/short-gamma regime. |
| Call wall / put wall (largest gamma strikes), net-gamma strikes, and max-pain for an expiration. |
| One-shot 0DTE dashboard: GEX, flip, walls, max-pain pin, expected move (ATM straddle), gamma concentration. |
| Dealer DEX (dollar delta), vanna (per 1% vol), and charm (per day) exposure. |
Vol complex
Tool | What it does |
| VIX1D / VIX9D / VIX / VIX3M / VVIX / SKEW with a regime read. |
| Front-to-back VIX curve + contango/backwardation regime. |
Event clock
Tool | What it does |
| Upcoming high-impact US macro events + live Treasury auctions over N days. |
| The single next macro event with an ET countdown. |
Plus traders_edge_status (health check / current spot).
0DTE decision support
Tool | What it does |
| ATM-straddle implied range (~1-sigma) for the session, plus +/-1 & +/-2 sigma levels and the IV-based move. |
| Per-strike risk-neutral prob-ITM and prob-of-touch (Black-Scholes from each strike's IV). |
| One call for today's 0DTE map: expected-move bands + gamma flip/walls + max-pain + high-OI pins, assembled into support/resistance. |
Tier 2 — Macro context (FRED, key-less)
Tool | What it does |
| Current Fed Funds rate + recent monthly path. |
| Treasury curve (3M–30Y), 2s10s / 3m10s spreads, inversion flags. |
| CPI / core CPI / PCE / core PCE (YoY) + 5Y/10Y breakevens. |
| Unemployment, payroll change, participation, wages, claims. |
| Real GDP, industrial production, retail sales. |
| NFCI, HY & IG credit spreads, dollar index, VIX. |
| Sahm Rule, curve spreads, composite read. |
| Any FRED series ID over a window, or latest values for a list. |
| Catalog keyword search (needs free |
| FRED health check. |
Macro data is pulled key-less from the FRED fredgraph CSV endpoint.
Cross-broker risk / Greeks aggregator
Tool | What it does |
| Net dollar delta / gamma / theta / vega across Alpaca + your positions file; delta also in SPX points. |
| Beta-weighted SPX exposure, gross/long/short notional, by-broker & by-underlying breakdowns, top contributors. |
| Exposure % by underlying; flags names above the threshold (default 25%, |
| Portfolio P&L across a set of SPX % moves (delta + gamma convexity). |
| Today's realized P&L vs your daily target ( |
| Live Robinhood holdings (stocks + option legs with broker-provided Greeks). |
| Live E*TRADE holdings (stocks + options; SPX/SPXW priced via CBOE). |
| Raw position views from each source. |
| Which position sources are configured / reachable. |
Positions are pulled automatically from your Alpaca, Robinhood, and E*TRADE accounts, and can be supplemented with a broker-agnostic positions file for anything held elsewhere:
Alpaca — live
/v2/positions(creds viaALPACA_ENV_FILE, default the alpaca-mcp.env).Robinhood — stock holdings plus option legs (with broker-provided delta/gamma/theta/vega/IV) via the cached
robin_stockssession shared with the robinhood-local server. Creds fromRH_USERNAME/RH_PASSWORD(orRH_ENV_FILE, default the robinhood-local.env); the session pickle lives in~/.robinhood/and refreshes every 7 days (a one-time device-approval prompt may appear in the Robinhood app on first use after expiry).E*TRADE — stock + option positions via the cached
pyetradeOAuth session shared with the etrade MCP (~/.etrade/tokens.pickle; idle tokens auto-renew). Creds fromETRADE_CONSUMER_KEY/SECRET(orET_ENV_FILE). E*TRADE access tokens expire nightly — if expired, re-authorize via the etrade MCP (setup_etrade_auth.py). SPX/SPXW E*TRADE options are priced from CBOE; equity-option Greeks from E*TRADE aren't fetched yet.Positions file — default
~/.trading/positions.json(overridePOSITIONS_FILE).
Each source can be toggled per call via include_alpaca / include_robinhood / include_etrade /
include_file. SPX/SPXW options are auto-priced from CBOE; broker-supplied option Greeks are used
directly; equities are beta-weighted for SPX-equivalent exposure via a built-in beta map (editable
with BETA_OVERRIDES="ICE:1.05,NVDA:1.7" or BETA_MAP_FILE=<json>; unmapped symbols default to 1.0).
Example positions file:
{"positions": [
{"broker": "robinhood", "symbol": "ICE", "qty": 500, "type": "equity", "beta": 1.05},
{"broker": "robinhood", "symbol": "SPXW260620P07400000", "qty": -2, "type": "option"}
]}Discipline / behavioral (Robinhood fills)
Tool | What it does |
| Realized-P&L curve from your option fills (net of fees), with the target-cross marked and the give-back-after-target quantified. |
| End-of-day scorecard: win rate, expectancy, profit factor, P&L by hour, and the before-vs-after-target split. |
| Real-time GO / CAUTION / STOP gate from past-target status, give-back from peak, consecutive losses, churning, and time-of-session. |
Realized P&L is reconstructed from Robinhood option fills (net_amount, fees included) with round trips
matched open->close FIFO. These tools target the logged pattern of giving back gains after hitting target;
a recon note flags any day where positions expired or remain open (net cash flow != round-trip realized).
Position management & macro regime
Tool | What it does |
| Scans your Robinhood short calls: DTE, assignment prob (delta), premium captured vs extrinsic left, annualized yield, share-coverage check, earnings-before-expiry flag, and roll signals. |
| Next single-name earnings for your holdings (or a symbol list): date, BMO/AMC session, days away, within-window flag; ETFs/funds listed separately. |
| Folds VIX + VIX term structure + NFCI + HY credit spreads + 2s10s curve + Sahm rule into one risk-on/neutral/risk-off score with a 0DTE posture. |
Performance, tax & snapshot history
Tool | What it does |
| Replays your fills through the stop-at-target rule: actual vs stop-at-target P&L, the after-target leak (losing days), win rate, expectancy, profit factor, an equity curve, and by-day-of-week / by-hour breakdowns. |
| Year-to-date realized options P&L (short vs long term, by month, gross gains/losses) plus identical-contract wash-sale candidates. CPA hand-off; not tax advice. |
| Logs the current 0DTE state (spot, GEX, gamma flip, call/put walls, max-pain, expected move, VIX/VIX1D, regime) to local SQLite. |
| Reads back the day's snapshots and summarizes intraday drift — GEX migration and where the key levels moved. |
| Roll-up-and-out targets for a covered call: candidate strikes/expiries with mark, delta, net credit vs closing the current call, and annualized yield. |
Configuration
Tool | What it does |
| View or change your goals/discipline settings (daily target, give-back %, roll thresholds…) in |
Goals and discipline thresholds live in config.json next to the server (or point TE_CONFIG_FILE
elsewhere). Precedence is env var > config.json > built-in default, and edits are picked up live
(no restart). Change them by editing the file or via the tool — e.g. trading_config(action="set", key="daily_target", value="550"). Editable keys: daily_target, weekly_target, giveback_frac,
rapid_reentry_secs, late_session_et, max_trades_per_day, roll_delta, roll_dte. See
config.example.json.
Daily workflow (v0.8.0)
Tool | What it does |
| Pre-open command center: regime + posture, key 0DTE levels (spot, expected move, gamma flip, call/put walls, max-pain), the vol complex, high-impact econ events, holdings reporting earnings within ~7 days, your last session result, and the discipline reset. |
| End-of-day wrap: realized vs target, discipline adherence (stopped at target vs gave back), where the key levels closed, and a snapshot logged to history. |
| This week realized P&L vs your weekly target: Mon-Fri daily breakdown, best/worst day, win rate, progress to goal. |
| Scans a session trade sequence for tilt: revenge sizing, rushing (shrinking entry gaps), intraday win-rate decay, and trading after a give-back from peak. |
Wheel & income (v0.8.0)
Tool | What it does |
| Lifetime wheel scorecard for a symbol: net option premium (calls + puts), contracts sold to open, buy-to-close cost, cycles, share position, and effective cost basis after premium. |
| Fresh covered calls to write on a holding: OTM strikes near a target delta across expiries, ranked by annualized yield, with contracts covered and an earnings/ex-dividend-before-expiry flag. |
| Cash-secured puts to sell: OTM strikes near a target delta ranked by annualized yield on the cash secured, with cash required per contract and an earnings flag. |
| Projected next ex-dividend dates for your holdings (last ex-date + frequency), with payout cadence, dividend/share, and yield -- drives early-assignment risk on short calls. |
Risk analytics (v0.8.0)
Tool | What it does |
| Daily-return correlation across holdings: pairwise matrix, each name average correlation, most/least correlated pairs, and portfolio-wide average -- a true-diversification check. |
| Risk/return profile of your current holdings over a period (total return, CAGR, annualized vol, max drawdown, rough Sharpe), valuing today positions back through price history. Synthetic, not actual past account equity. |
0DTE execution & tax (v0.8.0)
Tool | What it does |
| De-stales the gamma map: compares the delayed CBOE chain spot to a live SPY-implied SPX and flags whether spot has likely crossed the gamma flip or a wall since the snapshot. When no |
| Sizes an SPX put credit spread (ASD 0DTE PCS): short put nearest a target delta, long put a given width below, with net credit, max loss, breakeven, return-on-risk, and an approximate POP. |
| What can gap your book in the next N days: high-impact econ events plus holdings reporting earnings, merged into one timeline flagged by what you hold. |
| Estimated tax set-aside on realized trading gains: YTD short/long-term options P&L x marginal federal + Georgia rates, with a quarterly figure. Trading gains only; not tax advice. |
Robinhood-native (v0.9.0)
Tool | What it does |
| Authoritative realized-P&L check: reconciles the FIFO reconstruction ( |
| Live SPX / VIX / NDX index levels from Robinhood marketdata -- a real-time print to de-stale the ~15-min CBOE chain and calibrate the SPY->SPX basis. Endpoint pinnable via |
| Catalyst radar across a named Robinhood watchlist: next earnings (BMO/AMC) and projected next ex-dividend per name, flagged within a window, plus P/E and yield, ranked by nearest event. Also folds in per-symbol technicals (trend/momentum scores + exhaustion/rebound/death-cross flags) from a shared 1y history batch. |
| Per-symbol trailing earnings: EPS actual vs estimate, surprise ($ and %), report date and timing, ~8 quarters. |
| Per-symbol snapshot: P/E, P/B, market cap, shares, dividend yield, 52-week range, sector/industry, and a short profile; up to 10 symbols. |
Technical engine (v0.10.0)
Tool | What it does |
| Local, deterministic per-stock trend/momentum read: ~1y daily closes -> EMA(20/50/200)+slopes, RSI-14 (Wilder), MACD(12/26/9), TRIX(15/9), Bollinger(20,2)+%B, a Trend score and Momentum score (each -2..+2), and flags (exhaustion, bearish, rebound, death cross, stretch-vs-EMA20). Descriptive only -- no buy/sell call. |
| Cross-asset regime read from 8 ETFs (SPY, RSP, IWM, HYG, LQD, TLT, XLY, XLP) with the 2s10s spread auto-filled from FRED ( |
Related MCP server: Quant Companion MCP
Data sources
Most live, historical, and fundamental data is pulled from the authenticated Robinhood session
(robin_stocks). CBOE delayed quotes are the keyless chain & volatility backbone, FRED supplies
macro series, and a handful of sources are optional. Yahoo Finance is used in exactly one place -- see
the table.
Data | Provider | Endpoint / API | Auth | Notes |
Option chain & Greeks inputs | CBOE delayed quotes |
| none | ~15-min delayed; AM SPX + PM SPXW, ~32k contracts (OI, IV, Greeks) |
Vol indices (VIX1D...SKEW) | CBOE delayed quotes |
| none | ~15-min delayed |
Live SPY -> SPX overlay | Robinhood |
| session | live; de-stales the chain spot |
Live-er 0DTE chain (optional path) | Robinhood |
| session | via |
Historical daily closes | Robinhood |
| session | correlation / account-growth |
Earnings dates | Robinhood |
| session | covered-call earnings-before-expiry flag |
Dividends / ex-dividend | Robinhood |
| session | next ex-date is projected |
Non-SPX equity-leg pricing | Yahoo Finance |
| none | the only Yahoo use -- prices non-SPX equity legs in the risk rollup ( |
Macro series (NFCI, spreads, ...) | FRED (St. Louis Fed) |
| none | key only for series search ( |
Treasury auctions / events | TreasuryDirect |
| none | |
Economic calendar (tick-precise) | FMP or Finnhub |
| key | optional; without a key the calendar is curated/approx |
Positions & account | Robinhood / Alpaca / E*TRADE | respective APIs | session/key | cross-broker aggregator ( |
Provider note: Robinhood is already the authenticated backbone for live/historical/fundamental pulls, so the lone Yahoo dependency could be folded into
robin_stocksget_latest_priceto consolidate on a single provider. Yahoo's unauthenticated endpoint is the most rate-limit-prone source in the stack, but it sits off the hot 0DTE path.
Optional: set FMP_API_KEY or FINNHUB_API_KEY for a fully live economic calendar (tick-precise
CPI / PCE / PPI release dates). Without a key, the calendar is built from rule-based releases
(jobless claims, NFP, ISM), the 2026 FOMC schedule, a curated macro table, and live Treasury auctions —
every event is source-tagged so you know its provenance.
Methodology & conventions
Greeks: vectorized Black–Scholes,
q=0(index options),r=TE_RISK_FREE(default 4.3%; gamma is ~insensitive to it). Normal CDF via an Abramowitz–Stegun approximation (max error ~7e-8); no scipy.Time to expiry: years from now (ET) to 16:00 ET on the expiration date, floored at ~30 minutes so 0DTE gamma stays finite at the close.
GEX convention: dealers assumed long calls / short puts → call gamma adds, put gamma subtracts. Dollar gamma per 1% move per option =
gamma × OI × 100 × spot² × 0.01. Positive total GEX ⇒ dealers long gamma (vol-dampening / mean-reverting); negative ⇒ short gamma (moves amplified).Zero-gamma flip: net signed dollar gamma is recomputed across 81 spot levels (±10%); the flip is the zero-crossing nearest spot.
Max-pain: the strike minimizing total option-holder intrinsic payout for that expiration.
Expected move (0DTE): the ATM straddle mid (~1-sigma for the session).
DEX / vanna / charm: same dealer (long-calls / short-puts) sign convention as GEX.
These are standard market-positioning heuristics computed from delayed open interest, not a guarantee of dealer books or future price. Use as one input alongside your own read.
Install
cd traders-edge-mcp
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m venv .venv
.venv/bin/pip install -r requirements.txtConfigure (Claude Desktop)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"traders-edge": {
"command": "/Users/<you>/Claude/mcp/traders-edge-mcp/.venv/bin/python",
"args": ["/Users/<you>/Claude/mcp/traders-edge-mcp/traders_edge_mcp.py"]
}
}
}(See claude_desktop_config.example.json.) Restart Claude Desktop after editing.
Test
.venv/bin/python test_traders_edge.py # offline math/parsing testsDisclaimer
For research and educational use only. Not investment advice. Market data is delayed; positioning metrics are modeled heuristics. You are responsible for your own trading decisions.
License
MIT — see LICENSE.
This server cannot be installed
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jsconiers/traders-edge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server