Skip to main content

No project description provided

Project description

Yahoo Finance MCP Server

A simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.

Tools

  • get_ticker_info

    • Retrieve stock data including company info, financials, trading metrics and governance data.
    • Inputs:
      • symbol (string): The stock symbol.
  • get_ticker_news

    • Fetches recent news articles related to a specific stock symbol with title, content, and source details.
    • Inputs:
      • symbol (string): The stock symbol.
  • search

    • Fetches and organizes search results from Yahoo Finance, including stock quotes and news articles.
    • Inputs:
      • query (string): The search query (ticker symbol or company name).
      • search_type (string): Type of search results to retrieve (options: "all", "quotes", "news").
  • get_top

    • Get top entities (ETFs, mutual funds, companies, growth companies, or performing companies) in a sector.
    • Inputs:
      • sector (string): The sector to get.
      • top_type (string): Type of top companies to retrieve (options: "top_etfs", "top_mutual_funds", "top_companies", "top_growth_companies", "top_performing_companies").
      • top_n (number, optional): Number of top entities to retrieve (default 10).
  • get_price_history

    • Fetch historical price data for a given stock symbol over a specified period and interval.
    • Inputs:
      • symbol (string): The stock symbol.
      • period (string, optional): Time period to retrieve data for (e.g. '1d', '1mo', '1y'). Default is '1mo'.
      • interval (string, optional): Data interval frequency (e.g. '1d', '1h', '1m'). Default is '1d'.

Usage

You can use this MCP server either via uv (Python package installer) or Docker.

Via uv

  1. Install uv
  2. Add the following configuration to your MCP server configuration file:
{
  "mcpServers": {
    "yfmcp": {
      "command": "uvx",
      "args": ["yfmcp@latest"]
    }
  }
}

Via Docker

Add the following configuration to your MCP server configuration file:

{
  "mcpServers": {
    "yfmcp": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "narumi/yfinance-mcp"]
    }
  }
}

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

iflow_mcp_yfmcp-0.4.8.tar.gz (68.9 kB view details)

Uploaded Source

Built Distribution

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

iflow_mcp_yfmcp-0.4.8-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_yfmcp-0.4.8.tar.gz.

File metadata

  • Download URL: iflow_mcp_yfmcp-0.4.8.tar.gz
  • Upload date:
  • Size: 68.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for iflow_mcp_yfmcp-0.4.8.tar.gz
Algorithm Hash digest
SHA256 9a1449efeadef5da32e5cff91558f833a7590a963722b8276db6ed8e19fdc4ac
MD5 d3657bcb8fb6e5cfef08e84ee563edbc
BLAKE2b-256 23438ed475fb3d592f0a032946bae8b29283abfbd4c61327d3d4848f95ed4c6c

See more details on using hashes here.

File details

Details for the file iflow_mcp_yfmcp-0.4.8-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_yfmcp-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1c06d9826c3d246bf959ff54a9e7fc3da7d3914ff0172baea0220e3d7d9c133f
MD5 26c8ca5b8cb02e3bfd900e135e4be89d
BLAKE2b-256 9477f51f30ff281bb9e932e41a627cae35ff6e7edd9acfe3caee9ada93d78726

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