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 💡
alphavantage
An MCP server providing real-time and historical stock market data by integrating with the Alpha Vantage API.
tatumio
Tatum provides a unified API and framework for over 40 blockchain protocols, simplifying blockchain development for various applications including financial services, crypto apps, and gaming.
@kukapay/uniswap-trader-mcp
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
MardiantoS/alpaca-mcp-server
An MCP server for Alpaca trading to enable LLMs like Claude to interact with Alpaca's API
algorand-mcp
Algorand Model Context Protocol (MCP) implementation for blockchain interactions, providing LLMs with tools and resources to manage accounts, assets, and transactions on the Algorand network, including integrations with DeFi and NFT services.
ant-intl-alipayplus-mcp
A Model Context Protocol (MCP) compatible server that integrates Ant International's AlipayPlus payment APIs, enabling AI assistants to handle payment and refund operations seamlessly.