OptionContext
OptionContext MCP Server
Official Model Context Protocol (MCP) Server for the OptionContext Stock and Options Data APIs. This premium integration delivers rich analytical and structural data for Indian Stock Markets directly into LLM agents and clients supporting the Model Context Protocol.
Installation
You can install the OptionContext MCP package using pip, or run it on-demand with Node and LLM-centric workflows.
Installation via pip
pip install optioncontext_mcpDirect Run with uvx (Python environment)
uvx optioncontext-mcpRelated MCP server: sahmk-mcp
Configuration
To use the OptionContext MCP Server, you must specify your API key and base endpoint URL. You can configure these options via environment variables:
OPTIONCONTEXT_API_KEY: Your Agent-as-a-Service API key.OPTIONCONTEXT_BASE_URL: The OptionContext endpoint gateway URL (defaults tohttps://mcp.optioncontext.comif omitted).
For local or custom API gateway environments, OPTIONCONTEXT_BASE_URL will fallback automatically to FASTAPI_BASE_URL if defined.
Available Tools
The MCP Server exposes the following powerful market analytical tools to any connected client:
suggest_symbolsDescription: Search and resolve correct ticker symbols (e.g., searching 'Reliance' to get 'RELIANCE').
Arguments:
query(string): The search text or company name.
get_market_contextDescription: Fetch live quote details, last traded price (LTP), volume, and context for Stocks, Indices, and Futures.
Arguments:
symbol(string): Ticker symbol (e.g. 'NIFTY', 'BANKNIFTY', 'RELIANCE').expiry(string, optional): Expiry cycle ('SPOT', 'NEAR', 'FAR', 'NEXT'). Default is 'SPOT'.asset_type(string, optional): Asset category ('stock', 'index', 'future', 'auto'). Default is 'auto'.api_key(string, optional): Override API Key. If omitted, uses environment key.
get_option_chainDescription: Fetch complete option chain matrix including PCR, ATM strike, CE/PE quotes, volume, and Greeks.
Arguments:
symbol(string): Underlying index or stock ticker (e.g. 'NIFTY', 'BANKNIFTY').api_key(string, optional): Override API Key. If omitted, uses environment key.
get_historical_dataDescription: Fetch historical daily/intraday OHLCV candles (Requires Plan B subscription).
Arguments:
symbol(string): Ticker symbol.from_date(string): YYYY-MM-DD.to_date(string): YYYY-MM-DD.interval(string, optional): Candle interval ('ONE_MINUTE', 'FIVE_MINUTE', 'FIFTEEN_MINUTE', 'ONE_DAY'). Default is 'ONE_DAY'.api_key(string, optional): Override API Key.
Disclaimer & Risk Warning:
Data Delay: All market prices, quotes, and option chains provided represent the last completed minute (minimum 1-minute delayed feed) and are not real-time tick feeds.
Accuracy: Data is provided on an 'as-is' basis without warranties of absolute accuracy or timeliness.
No Liability: The service is strictly for analytical/educational purposes. We assume no liability for any trading losses or investment decisions.
Regulatory Risk Disclosure: Trading in derivatives (options and futures) involves high risk. Past performance is not indicative of future results.
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides comprehensive financial insights and analysis by leveraging real-time market data, news, and advanced analytics for stocks, options, financial statements, and economic indicators.Last updated1750PythonMIT
- AlicenseAqualityAmaintenanceOfficial MCP server for interacting with Saudi market data (Sahmk) via natural language queries, enabling stock quotes, company info, and market summaries inside AI agents like Cursor and Claude Desktop.Last updated561511MIT
- AlicenseAqualityCmaintenanceComprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.Last updated2632MIT
- Alicense-qualityCmaintenanceOptions analytics MCP server providing 40+ tools for options chain data, position valuation, Greeks, charts, and volatility analysis.Last updatedMIT
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
Read-only MCP server for live Polymarket, Kalshi, Limitless odds; Manifold sentiment.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/nikhilkatyan/optioncontext-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server