- Home
- MCP servers
- Yahoo Finance
Yahoo Finance
- python
0
GitHub Stars
python
Language
4 months ago
First Indexed
2 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": {
"peidaqi-yfinance-mcp-server": {
"command": "python",
"args": [
"-m",
"yfinance_mcp_server"
]
}
}
}The MCP server enables your Large Language Model to query Yahoo Finance data through the Python yfinance library. It runs locally or in a container, letting you fetch stock quotes, historical prices, and other market data on demand from your LLM workflows without writing custom integration code.
How to use
Use the MCP client in your LLM interface to access Yahoo Finance data. You can ask natural language questions like a stock’s price, historical values, or metadata, and the MCP server will translate these requests into yfinance calls under the hood. You can run the server either as a local Python process or inside Docker, and your MCP client will connect through the configured command/arguments.
How to install
Prerequisites you’ll need before starting: a working Python environment with pip, and Docker if you prefer the containerized route.
pip install .
docker build -t yfinance-mcp-server .
Additional content
Configuration notes are provided for both install methods so your MCP client can reach the Yahoo Finance server. Choose the method you used to install and add the corresponding MCP server entry to your MCP settings.
Example usage in your LLM interface: you can ask questions like “What is MSFT's stock price on Jan 1, 2025?” and receive the result from Yahoo Finance via the MCP server.
Configuration details
If you installed the server with Python and pip, add this item to your MCP settings:
"mcpServers": {
"YahooFinanceServer": {
"command": "python",
"args": ["-m", "yfinance_mcp_server"]
}
}
Docker configuration
If you installed using Docker, add this item to your MCP settings:
"mcpServers": {
"YahooFinanceServer": {
"command": "docker",
"args": ["run", "-i", "yfinance-mcp-server"]
}
}