Skip to main content
Glama
keisku

yfinance-mcp

by keisku

yfinance-mcp

An MCP server that exposes Yahoo Finance market data to LLM agents.

Tools

history

Returns OHLCV price bars for a given symbol and date range.

Parameter

Type

Required

Description

symbol

string

yes

Ticker symbol (e.g. AAPL, 7203.T)

interval

string

yes

Bar granularity (1m3mo)

start

string

yes

Start date (YYYY-MM-DD)

end

string

yes

End date (YYYY-MM-DD)

adjust

bool

no

Return split/dividend-adjusted prices

Response columns: t (timestamps), o, h, l, c, v, and ac (adjusted close, when adjust=true).

oscillator

Returns daily momentum oscillators for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.

Parameter

Type

Required

Description

symbol

string

yes

Ticker symbol (e.g. AAPL, 7203.T)

start

string

yes

Start date (YYYY-MM-DD)

end

string

yes

End date (YYYY-MM-DD)

Response columns: t, rsi, stoch_k, stoch_d.

trend

Returns daily trend-following indicators for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.

Parameter

Type

Required

Description

symbol

string

yes

Ticker symbol (e.g. AAPL, 7203.T)

start

string

yes

Start date (YYYY-MM-DD)

end

string

yes

End date (YYYY-MM-DD)

Response columns: t, sma_20, sma_50, sma_200, ema_20, ema_50, ema_200, macd, macd_signal, macd_hist, plus_di, minus_di, adx.

volume

Returns daily volume moving averages for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.

Parameter

Type

Required

Description

symbol

string

yes

Ticker symbol (e.g. AAPL, 7203.T)

start

string

yes

Start date (YYYY-MM-DD)

end

string

yes

End date (YYYY-MM-DD)

Response columns: t, volume, vol_sma_5, vol_sma_10, vol_sma_20, vol_sma_50.

Related MCP server: yahoo-finance-mcp

Setup

Requires Python 3.13+.

uv sync

Usage

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "yfinance": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/yfinance-mcp", "python", "server.py"]
    }
  }
}

Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "yfinance": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/yfinance-mcp", "python", "server.py"]
    }
  }
}

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to retrieve real-time stock data, manage watchlists, and perform comprehensive technical analysis using Yahoo Finance API. Provides 18+ tools for stock price tracking, trend analysis, volatility assessment, and financial indicators through MCP integration.
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    Enables retrieval of comprehensive financial data from Yahoo Finance, including stock prices, company info, financial statements, options, and news, for stock analysis and market research.
    9
    338
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides comprehensive financial data and analysis tools using Yahoo Finance, including real-time stock data, historical data with technical indicators, options chains, and financial statements.
    3
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Provides TradingView-style market analysis with OHLCV candles, 19 technical indicators, a screener, and a backtester using public Yahoo Finance data without API keys.
    MIT

View all related MCP servers

Related MCP Connectors

  • Real-time market data, screeners, technical analysis & backtesting for stocks, crypto and forex.

  • Real-time stock quotes and technical signals: RSI, MACD, SMA crossovers via Yahoo Finance.

  • The stock market, in SQL — scan, replay, or subscribe across ~12k US tickers and top 100 cryptos.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keisku/yfinance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server