A Model Context Protol (MCP) server providing tools to interact with Yahoo Finance for LLMs
Project description
MCP Yahoo Finance
A Model Context Protocol (MCP) server for Yahoo Finance interaction. This server provides tools to get pricing, company information and more.
Please note that
mcp-yahoo-financeis currently in early development. The functionality and available tools are subject to change and expansion as I continue to develop and improve the server.
Installation
You don't need to manually install mcp-yahoo-finance if you use uv. We'll use uvx to directly run mcp-yahoo-finance.
I would recommend using this method if you simply want to use the MCP server.
Using pip
Using pip.
pip install mcp-yahoo-finance
Using Git
You can also install the package after cloning the repository to your machine.
git clone git@github.com:maxscheijen/mcp-yahoo-finance.git
cd mcp-yahoo-finance
uv sync
Configuration
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"yahoo-finance": {
"command": "uvx",
"args": ["mcp-yahoo-finance"]
}
}
}
You can also use docker:
{
"mcpServers": {
"yahoo-finance": {
"command": "docker",
"args": ["run", "-i", "--rm", "IMAGE"]
}
}
}
VSCode
Add this to your .vscode/mcp.json:
{
"servers": {
"yahoo-finance": {
"command": "uvx",
"args": ["mcp-yahoo-finance"]
}
}
}
Examples of Questions
- "What is the stock price of Apple?"
- "What is the difference in stock price between Apple and Google?"
- "How much did the stock price of Apple change between 2024-01-01 and 2025-01-01?"
Build
Docker:
docker build -t [IMAGE] .
Test with MCP Inspector
npx @modelcontextprotocol/inspector uv run mcp-yahoo-finance
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_yahoo_finance-0.1.3.tar.gz.
File metadata
- Download URL: mcp_yahoo_finance-0.1.3.tar.gz
- Upload date:
- Size: 51.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a435b07f6763f00e263244b3fbe0f4d99f24046dfe3f8c37c8d07c3dd9cabfd
|
|
| MD5 |
a6644efa3ce5cd2898e4c8d1b307dcac
|
|
| BLAKE2b-256 |
07ddbf98cd94b79880d4cc71d35d1d09f440e0e4bcb974e480df68732407a176
|
File details
Details for the file mcp_yahoo_finance-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mcp_yahoo_finance-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd7e12dbfa6b2dae42e31e470aabb22b3c031a6d03f969c2e683c7df5a90793b
|
|
| MD5 |
4905f9ca47a60fad7eec00e4226c592e
|
|
| BLAKE2b-256 |
3febdbafe4d19bd39f9c3f2e17693ea375313e0a286af34e1c3aac8e7c00e708
|