StockFlow MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Hosts the StockFlow MCP server code repository, allowing users to clone and access the implementation.
Provides a Python-based interface for retrieving and analyzing stock market data, supporting programmatic access to stock information, historical price data, and options analysis.
StockFlow MCP Server
A Model Context Protocol (MCP) server providing real-time stock data and options analysis through Yahoo Finance. Enables LLMs to access market data, analyze stocks, and evaluate options strategies.
Features
Stock Data
- Real-time stock prices and key metrics
- Historical price data with OHLC values
- Company fundamentals and financial statements
- Market indicators and ratios
Options Analysis
- Complete options chain data
- Greeks (delta, gamma, theta, vega)
- Volume and open interest tracking
- Options strategy analysis
Installation
Usage
- Clone the repository:
- Install dependencies:
- Add to your Claude configuration:
In your
claude-desktop-config.json
, add the following to themcpServers
section:
Replace "path/to/stockflow.py" with the full path to where you saved the stockflow.py file.
Usage Prompt for Claude
When working with Claude, you can use this prompt to help it understand the available tools:
"I've enabled the stockflow tools which give you access to stock market data. You can use these three main functions:
get_stock_data
- Get comprehensive stock info:
get_historical_data
- Get price history and technical indicators:
get_options_chain
- Get options data:
All responses include current price data, error handling, and comprehensive market information."
Running the Server
Using with MCP Client
Available Tools
get-stock-data
- Current price and volume
- Market cap and P/E ratio
- 52-week high/low
get-historical-data
- OHLC prices
- Configurable time periods
- Volume data
get-options-chain
- Calls and puts
- Strike prices
- Greeks and IV
- Volume and open interest
Available Resources
company-info://{symbol}
- Company description
- Sector and industry
- Employee count
- Website
financials://{symbol}
- Income statement
- Balance sheet
- Cash flow statement
Prompts
analyze-options
- Options strategy analysis
- Risk/reward evaluation
- Market condition assessment
Requirements
- Python 3.12+
- mcp
- yfinance
Limitations
- Data is sourced from Yahoo Finance and may have delays
- Options data availability depends on market hours
- Rate limits apply based on Yahoo Finance API restrictions
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Todd Wolven - (https://github.com/twolven)
Acknowledgments
Acknowledgments
- Built with the Model Context Protocol (MCP) by Anthropic
- Data provided by Yahoo Finance
- Developed for use with Anthropic's Claude
This server cannot be installed
A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
- Features
- Installation
- Usage
- Usage Prompt for Claude
- Available Tools
- Available Resources
- Prompts
- Requirements
- Limitations
- Contributing
- License
- Author
- Acknowledgments
- Acknowledgments