Skip to main content

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-finance is 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

  1. "What is the stock price of Apple?"
  2. "What is the difference in stock price between Apple and Google?"
  3. "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

mcp_yahoo_finance-0.1.3.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_yahoo_finance-0.1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for mcp_yahoo_finance-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5a435b07f6763f00e263244b3fbe0f4d99f24046dfe3f8c37c8d07c3dd9cabfd
MD5 a6644efa3ce5cd2898e4c8d1b307dcac
BLAKE2b-256 07ddbf98cd94b79880d4cc71d35d1d09f440e0e4bcb974e480df68732407a176

See more details on using hashes here.

File details

Details for the file mcp_yahoo_finance-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_yahoo_finance-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd7e12dbfa6b2dae42e31e470aabb22b3c031a6d03f969c2e683c7df5a90793b
MD5 4905f9ca47a60fad7eec00e4226c592e
BLAKE2b-256 3febdbafe4d19bd39f9c3f2e17693ea375313e0a286af34e1c3aac8e7c00e708

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page