- Home
- MCP servers
- Stock Data
Stock Data
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"joaovitor2763-mcptrial-stockfinder": {
"command": "python",
"args": [
"stock_mcp.py",
"--transport",
"stdio"
],
"env": {
"PORT": "YOUR_PORT"
}
}
}
}You can run a live MCP server that serves stock market data from Yahoo Finance without an API key. It exposes real-time quotes, historical data, company information, financial statements, and ticker search, making it easy to build tools and assistants that respond with up-to-date financial insights.
How to use
You interact with the server through an MCP client by sending requests to the stock data endpoints. You can fetch a current quote, retrieve historical OHLCV data, obtain company information, pull financial statements, and search for tickers by company name. When you run the server in local mode, use the provided command to start it and keep the connection open to receive continuous data or to reply to requests from your MCP client.
How to install
Prerequisites you need before starting are Python 3.11 or higher and the pip package manager.
How to install
Install dependencies and run the server locally in stdio mode to test with an MCP client.
Available tools
get_stock_quote
Fetches the current stock price and trading data for a given symbol.
get_stock_info
Returns comprehensive company information and metrics for a symbol.
get_stock_history
Retrieves historical price and volume data for a symbol with selectable period and interval.
get_stock_financials
Provides company financial statements such as income, balance sheet, and cash flow.
search_ticker
Searches for ticker symbols by company name or partial name.