Provides advanced options chain analysis, Greeks calculation, strategy evaluation, and risk management metrics via Model Context Protocol, leveraging Yahoo Finance data for informed options trading decisions.
Unlock the full potential of OptionsFlow MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
A Model Context Protocol (MCP) server providing advanced options analysis and strategy evaluation through Yahoo Finance. Enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies with comprehensive risk metrics.
# Install dependencies pip install -r requirements.txt # Clone the repository git clone https://github.com/twolven/mcp-optionsflow.git cd mcp-optionsflow
Add to your Claude configuration:
In your claude-desktop-config.json
, add the following to the mcpServers
section:
{ "mcpServers": { "optionsflow": { "command": "python", "args": ["path/to/optionsflow.py"] } } }
Replace "path/to/optionsflow.py" with the full path to where you saved the optionsflow.py file.
analyze_basic_strategies
{ "symbol": str, # Required: Stock symbol "strategy": str, # Required: "ccs", "pcs", "csp", or "cc" "expiration_date": str, # Required: "YYYY-MM-DD" "delta_target": float, # Optional: Target delta for CSP/CC (default: 0.3) "width_pct": float # Optional: Width for spreads (default: 0.05) }
{ "symbol": str, "strategy": str, "current_price": float, "expiration": str, "days_to_expiration": int, "analysis": { # Credit Call Spread / Put Credit Spread "strikes": { "short_strike": float, "long_strike": float }, "metrics": { "credit": float, "max_loss": float, "max_profit": float, "probability_of_profit": float, "risk_reward_ratio": float }, "greeks": { "net_delta": float, "net_theta": float, "net_gamma": float } # Cash Secured Put "strike": float, "metrics": { "premium": float, "max_loss": float, "assigned_cost_basis": float, "return_if_otm": float, "downside_protection": float }, "greeks": { "delta": float, "theta": float, "gamma": float } # Covered Call "strike": float, "metrics": { "premium": float, "max_profit": float, "max_profit_percent": float, "upside_cap": float, "premium_yield": float }, "greeks": { "position_delta": float, "theta": float, "gamma": float } } }
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Todd Wolven - (https://github.com/twolven)
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!