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

Acknowledgements

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

no_use_tools-0.0.1.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

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

no_use_tools-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file no_use_tools-0.0.1.tar.gz.

File metadata

  • Download URL: no_use_tools-0.0.1.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for no_use_tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ef346dc288d5dae7c61a5f294b9dce782d38d9abeea0b3e645894a069cc62f8c
MD5 9c9fe43c4c6c16533f4ed7dd74c1c1de
BLAKE2b-256 671fc0b329d7e5f18b1647c1062e964fa1bfef4ff491151134b6f1ba6a457b44

See more details on using hashes here.

File details

Details for the file no_use_tools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: no_use_tools-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for no_use_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d797b6edfb69484c90dc164b4f2cdbfd852f9a88857442d573a2924cd6f631
MD5 6609d2b89c20fbcc1fea1323f6913f03
BLAKE2b-256 607276ec0af118d43ac86c6965d1033f03872a1e4e9ba047854c53ecbef7289e

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