A-Simple-MCP-Server
0
A Model Context Protocol (MCP) server designed to provide stock price information through various features such as current price retrieval, historical data access, and stock comparison. It integrates yfinance and FastAPI for a robust toolset accessible via a resource-based interface.
Stock Price MCP Server
This MCP server provides tools to retrieve and compare stock prices.
Overview
- Fetch current stock prices
- Retrieve historical stock data
- Compare prices between stocks
- Expose stock data as resources
Features
Stock Price Retrieval
Retrieve the latest stock price for any valid ticker symbol.
Historical Data Access
Get historical stock data in CSV format.
Stock Comparison
Compare prices between two different stocks.
Resource Exposure
Access stock information using stock://{symbol}
.
Installation
- Clone the repository
- Install dependencies
Usage
Starting the Server
Run the server to start.
Available Tools
- Retrieve current prices and historical data
- Compare stock prices
Error Handling
Robust error handling included. Invalid symbols return error messages. Network issues are managed.