Skip to main content
Glama
barvhaim

YFinance MCP Server

by barvhaim

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_stock_infoA

Get basic stock information including current price, market cap, and key metrics.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL')

Returns: Dictionary containing stock information

get_historical_dataA

Get historical stock price data.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL') period: Time period (1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max) interval: Data interval (1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo)

Returns: Dictionary containing historical price data

get_dividendsB

Get dividend history for a stock.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL')

Returns: Dictionary containing dividend history

get_splitsA

Get stock split history for a stock.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL')

Returns: Dictionary containing split history

get_financialsA

Get financial statements for a stock.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL') quarterly: If True, get quarterly data; if False, get annual data

Returns: Dictionary containing financial statements

get_earningsA

Get earnings data for a stock. Note: Uses income statement data as 'earnings' property is deprecated.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL')

Returns: Dictionary containing earnings data extracted from financial statements

get_newsA

Get recent news for a stock.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL') count: Number of news articles to return (default: 10)

Returns: Dictionary containing news articles

get_recommendationsA

Get analyst recommendations for a stock.

Args: symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOGL')

Returns: Dictionary containing analyst recommendations

search_stocksA

Search for stocks by company name or ticker symbol.

This tool searches Yahoo Finance's database for stocks matching your query. Works best with specific company names or partial ticker symbols.

Examples of effective queries:

  • "Microsoft" (company name)

  • "AAPL" (ticker symbol)

  • "Tesla" (company name)

  • "JPM" (partial ticker)

Note: Complex multi-word queries may return fewer results. For best results, search for one company at a time.

Args: query: Search query - company name or ticker symbol (e.g., 'Microsoft', 'AAPL') limit: Maximum number of results to return (default: 10, max recommended: 25)

Returns: Dictionary containing search results with symbol, name, type, exchange, sector, industry, relevance score, and other metadata

get_multiple_quotesA

Get current quotes for multiple stocks at once.

Args: symbols: List of stock ticker symbols (e.g., ['AAPL', 'GOOGL', 'MSFT'])

Returns: Dictionary containing quotes for all requested symbols

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 10 tools

Disambiguation4/5

Most tools target distinct data types, but get_stock_info and get_multiple_quotes both provide current quote data, and get_earnings overlaps with get_financials by design. The descriptions help clarify the intended usage, making confusion unlikely in practice.

Naming Consistency5/5

All tools follow a consistent snake_case verb_noun pattern, with get_ as the dominant prefix for data retrieval and search_stocks as a logical exception for the search action. This is a predictable and uniform naming convention.

Tool Count5/5

10 tools is well within the ideal 3-15 range for a specialized data provider, and each tool covers a distinct aspect of stock market data without unnecessary duplication.

Completeness5/5

The server covers the core financial data needs: current quotes, historical prices, dividends, splits, financials, earnings, news, recommendations, search, and batch quotes. As a read-only stock data API, it has no significant gaps.

Maintenance

ActivityInactive
ResponsivenessNo issues