Open Interest Analysis MCP Server
This is an MCP (Message Control Protocol) server that retrieves options open interest data from Alpha Vantage and calculates the put/call ratio to determine market sentiment for a given stock symbol.
You can use the prompts.
Calculate the max pain for symbol NVDA
Calculate put call ratio for symbol NVDA
Screenshots


Claude Desktop Setup
- Install the required dependencies:
pip install -r requirements.txt
-
Set up your Alpha Vantage API key:
- Get an API key from Alpha Vantage
- Create a
.envfile in the root directory
-
Add to your Claude Desktop config file (
claude_desktop_config.json): Add the following configuration to yourclaude_desktop_config.jsonfile under the root JSON object:
"mcpServers": {
"openinterest_stdio": {
"command": "/dir/to/python",
"args": ["/dir/mcp_open_interest/main.py"],
"env": {
"ALPHAVANTAGE_KEY": "your_api_key_here"
}
},
}
}
Sentiment Interpretation
- Bullish: Put/Call ratio < 1.0
- Bearish: Put/Call ratio > 1.0
Recommend MCP Servers 💡
payup
A personal MCP server designed to replace Splitwise for managing trip expenses.
Octagon
Real-Time Market Intelligence for AI. Instant access to public & private market data through one simple API
crypto-whitepapers-mcp
An MCP server serving as a structured knowledge base of crypto whitepapers.
tasty-agent
Let Claude manage your tastytrade portfolio.
ramp-mcp
A Model Context Protocol server for Ramp, integrating with their Developer API to fetch, process, and analyze financial data using an ephemeral SQLite database.
alpaca-mcp-server
Alpaca's official MCP server enables LLMs to interact with Alpaca's Trading API for stock and options trading, portfolio management, and real-time market data access using natural language.