Servers
Stock Price MCP Server
@ekadetov
A Simple MCP Server
Overview
What is Stock Price MCP Server?
A Model Context Protocol server that provides stock price information using the yfinance library, enabling tools to fetch prices, historical data, and compare stocks.
How to use Stock Price MCP Server?
Clone the repository, install dependencies with pip install -r requirements.txt, then run python stock_price_server.py. Use tools like get_stock_price(symbol) or resources at stock://{symbol}.
Key features of Stock Price MCP Server
- Fetch current stock prices for any ticker
- Retrieve historical stock data in CSV format
- Compare prices between two stocks
- Expose stock data via resource interface
Use cases of Stock Price MCP Server
- Get latest price for a specific stock symbol
- Compare two stocks for investment decisions
- Retrieve historical data for analysis
- Integrate stock data into AI assistants via MCP
FAQ from Stock Price MCP Server
What are the runtime dependencies?
Python 3.7+, mcp-server, yfinance, FastAPI, and Uvicorn.
How does it handle invalid ticker symbols?
Returns appropriate error messages instead of crashing.
Where does the stock data come from?
It uses the yfinance library to fetch data from Yahoo Finance.
How are market closures handled?
The server manages market closures and provides fallback price information.