LABSCO SUMMARY
Market data with nothing to sign up for.
yfinance already solves the hard part, and this wraps it thinly enough that there is no key, no account and almost no configuration — which is what you want for casual price and history questions inside a conversation. The Docker path is the one to choose if you would rather not add finance dependencies to your system Python.
What it is
A small MCP server built on fastmcp that lets an LLM client interact with Yahoo Finance through the yfinance Python library.
What you get
- Market data questions answered from Yahoo Finance, such as a stock's price on a specific date
- Two install shapes from the same repository: a pip install, or a container image for portability
- A short client configuration either way — a module invocation or a docker run
Requirements
pip install . and then have the client run python -m yfinance_mcp_server; or build the image with docker build -t yfinance-mcp-server . and let the client run the container.
Setup effort
Build from source — git clone https://github.com/peidaqi/yfinance-mcp-server.git
USE CASES
Checking a historical price
Ask what a ticker traded at on a given date and get the answer from Yahoo Finance rather than memory.
Pulling a series into an analysis
Let the assistant fetch the history it needs as part of a longer piece of work.
Keeping your Python clean
Run the container instead of installing the package into your environment.
BEFORE YOU INSTALL
What to know first
Requires
Python with pip (or Docker)
INSTALLATION
Connect your client
This one is built from source rather than installed with a single command.
Server setup
git clone https://github.com/peidaqi/yfinance-mcp-server.git
cd yfinance-mcp-server
pip install .MCP Clients
Any MCP client — Docker
Or build the container from the clone:
docker build -t yfinance-mcp-server .{
"mcpServers": {
"YahooFinanceServer": {
"command": "docker",
"args": [
"run",
"-i",
"yfinance-mcp-server"
]
}
}
}Any MCP client
After pip install . in the clone, add this to your client:
{
"mcpServers": {
"YahooFinanceServer": {
"command": "python",
"args": [
"-m",
"yfinance_mcp_server"
]
}
}
}