Sign In to OptionContext
Enter your credentials to access your API keys and credits balance.
Create Developer Account
Sign up to generate instant API keys and receive 1,000 free trial credits.
Developer Dashboard
Manage your agent credentials, track credit balances, and integrate MCP tools.
Pre-Paid Credits
Credits power your automated API requests and AI agent telemetry.
Buy Credit Packages
Agent API Keys
Use your API keys to query quotes, option chains, or supply them to your local MCP server.
| API Key | Status | Created | Actions |
|---|---|---|---|
| Loading API keys... | |||
Recent Credit Expenses
Log of the 5 most recent agent and API requests and credits debited.
| Endpoint / Action | Credits Debited | Timestamp (IST) |
|---|---|---|
| Loading recent credit expenses... | ||
Model Context Protocol (MCP) Integration
Configure your AI coding assistants (Claude Desktop, Cursor IDE, Antigravity CLI) to dynamically query real-time Indian stock market telemetry.
🛠️ Active Configuration JSON
🚀 Setup Guides
Expose the OptionContext server to your local Claude Desktop app.
- Locate the configuration file on your system:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- MacOS:
- Open the file in a text editor and merge the JSON configuration on the left under the
"mcpServers"block. - Relaunch Claude Desktop. A new plug icon should appear, allowing you to ask about Indian stock prices.
Add OptionContext as an MCP tool directly within Cursor Settings.
- Open Cursor IDE and navigate to Settings → Features → MCP.
- Click on + Add New MCP Server.
- Enter the following details:
- Name:
optioncontext-mcp - Type:
command - Command:
uvx optioncontext-mcp(oroptioncontext-mcpif installed globally)
- Name:
- Add the following environment variables:
- OPTIONCONTEXT_API_KEY:
(Your API Key) - OPTIONCONTEXT_BASE_URL:
https://optioncontext.com
- OPTIONCONTEXT_API_KEY:
- Click Save. Cursor will automatically initialize and load the available tools.
Run the MCP server directly via terminal or integration frameworks.
You can launch the OptionContext MCP server directly using uvx:
export OPTIONCONTEXT_API_KEY="your_api_key_here" export OPTIONCONTEXT_BASE_URL="https://mcp.optioncontext.com" uvx optioncontext-mcp
Or via standard pip-installed Python packages:
export OPTIONCONTEXT_API_KEY="your_api_key_here" export OPTIONCONTEXT_BASE_URL="https://mcp.optioncontext.com" pip install optioncontext-mcp && optioncontext-mcp
This runs the JSON-RPC interface over standard input/output (stdio), which is compatible with most MCP host runners.
💡 Prompt & Query Examples
Test your MCP configuration by sending these sample prompts to Claude, Cursor, or your AI assistant:
| Query / Intent | Example Prompt |
|---|---|
| NSE Option Chain PCR | "What is the current option chain PCR ratio for NIFTY?" |
| Near Month Futures LTP | "Fetch the near month futures LTP for RELIANCE." |
| Market Alerts & Announcements | "Are there any active stock market alerts or announcements?" |
| ATM Strike Price Search | "Find the ATM strike price for BANKNIFTY options." |
📦 Available MCP Tools
The following native tools are exposed by the OptionContext MCP server and are fully available to your AI assistant:
| Tool Name | Description | Arguments |
|---|---|---|
| suggest_symbols | Interactively lookup and resolve short names or prefixes into proper Indian stock market symbols natively. | query, limit |
| get_market_context | Retrieve active quotes, last traded price (LTP), volume, high/low, and market status for any spot or futures symbol. | symbol, expiry |
| get_batch_market_context | Fetch quote details, last traded price (LTP), volume, and context for a batch of Stocks, Indices, or Futures in a single efficient request. | symbols, expiry |
| get_option_chain | Fetch optimized, token-efficient options chains complete with IV, PCR, delta, gamma, theta, and vega enrichments. | symbol, expiry |
| get_historical_data | Retrieve historical candle data (OHLCV) for deep technical analysis, quantitative modeling, or backtesting. | symbol, from, to, interval |