OptionContext

OptionContext

Official MCP Server for Indian Stock Market (NSE & BSE) equities, futures context, and option chains.

Category
Visit Server

README

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_mcp

Direct Run with uvx (Python environment)

uvx optioncontext-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 to https://mcp.optioncontext.com if 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:

  1. suggest_symbols

    • Description: Search and resolve correct ticker symbols (e.g., searching 'Reliance' to get 'RELIANCE').
    • Arguments:
      • query (string): The search text or company name.
  2. get_market_context

    • Description: 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.
  3. get_option_chain

    • Description: 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.
  4. get_historical_data

    • Description: 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured