Skip to main content
Glama
yfinance MCP Server

yfinance MCP Server

by Otman404

yfinance MCP Server

Model Context Protocol server that allows LLMs to get accurate and up-to-date prices and news about stock/cryptocurrencies tickers.

Available Tools

  • get_price_tool: Get the price of a stock/cryptocurrency ticker

    • Arguments:

      • ticker (string): Required - Ticker name or alias (e.g., "BTC-USD", "AAPL")

      • period (string): Optional - Time period (e.g., "1d", "5d", "1mo"). Defaults to "1d"

  • get_news_tool: Get the news of a stock/cryptocurrency ticker.

    • Required arguments:

      • ticker (string): Required

      • count (string): Optional - Number of articles to retrieve (default: 5)

Related MCP server: Yahoo Finance MCP Server

Installation

Installing via Smithery

To install yfinance-mcp-server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Otman404/finance-mcp-server --client claude

Using uv

Install the package locally

uv pip install -e .

Run the server

finance-mcp-server

Using docker

# build the container
docker build -t finance-server .

# run the container
docker run -it finance-server

Configuration

Usage for Claude Desktop

Add the following to claude_desktop_config.json

uvx

"mcpServers": {
  "finance": {
    "command": "uvx",
    "args": ["finance-mcp-server"]
  }
}

docker

{
  "mcpServers": {
    "finance": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "finance-server"]
    }
  }
}

Usage for 5ire

uvx

{
  "key": "finance",
  "command": "uvx",
  "args": ["finance-mcp-server"]
}

docker

{
  "key": "finance-server",
  "command": "docker",
  "args": ["run", "-i", "--rm", "finance-server"]
}

Example Interactions

example

Available Tools

2 tools
get_newsC

Get the news of a stock/crypto ticker.

Inputs: ticker (required), count.

get_priceC

Get the price of a stock/crypto ticker.

Inputs: ticker (required), period.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 2 tools

    Disambiguation5/5

    get_news and get_price target distinct aspects (news vs. price) with no overlap. An agent can easily choose the correct tool for the intended action.

    Naming Consistency5/5

    Both tools follow the consistent pattern of get_<resource>, using snake_case and a clear verb-noun structure. No deviations.

    Tool Count2/5

    With only 2 tools for a domain as rich as stock/crypto data, the set is far too sparse. Most financial APIs offer dozens of endpoints; this limited set feels incomplete.

    Completeness1/5

    Crucial operations are missing: no historical price data, no financial statements, no market statistics, no search. An agent cannot perform basic financial analysis with just news and current price.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Yahoo Finance data including stock prices, historical data, financial statements, dividends, news, analyst recommendations, and company information through the yfinance library.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to retrieve stock market data and financial information from Yahoo Finance using the yfinance Python library. Supports querying stock prices, historical data, and other financial metrics through natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fetching real-time financial market data, including price, key metrics, and news headlines, for stock tickers using the yfinance API.
      86 npm
      MIT