Back to MCP Directory
Yfinance
Model Context Protocol moderate risk

Yfinance

Yfinance MCP server provides tools to fetch stock data, news, and generate financial charts, enabling users to analyze market trends and company information.

Connections & Capabilities

Connects To

GitHubDocker

Capabilities

readwrite

Quickstart

Config

{
  "mcpServers": {
    "yfmcp": {
      "command": "uvx",
      "args": ["yfmcp@latest"]
    }
  }
}

Exposed MCP Tools (5)

safe
yfinance_get_ticker_info

Retrieves comprehensive stock data, including company information and financial metrics.

Read-only operation; no modification of data.

safe
yfinance_get_ticker_news

Fetches recent news articles related to a specific stock symbol.

Read-only operation; no modification of data.

safe
yfinance_search

Searches Yahoo Finance for stock quotes and news articles based on a query.

Read-only operation; no modification of data.

safe
yfinance_get_top

Retrieves top entities (ETFs, mutual funds, companies) in a specified sector.

Read-only operation; no modification of data.

moderate
yfinance_get_price_history

Fetches historical price data and optionally generates financial charts.

Generates charts, which involves some processing, but doesn't modify external data.

Safety Assessment

This server is relatively safe for read-only operations and data retrieval. The risk is moderate due to reliance on external APIs and potential resource consumption during chart generation. It's crucial to monitor resource usage and handle API dependencies gracefully.

  • Primarily read-only operations for fetching financial data.
  • No direct execution of arbitrary code.
  • Limited write operations, mainly related to chart generation.
  • No direct access to system-level resources or sensitive data.
  • Potential for information disclosure if sensitive data is inadvertently exposed.
  • Reliance on external APIs (Yahoo Finance) introduces dependency risks.
  • Chart generation could potentially consume excessive resources if not properly managed.
  • The `yfinance_get_price_history` tool can generate charts, which might lead to unexpected resource consumption if abused.