Skip to main content
Glama
itjung-source

yahoo-finance-mcp

yahoo-finance-mcp

MCP server for Thai SET/MAI stock data via Yahoo Finance API.

Tools

Tool

Description

scan_uptrend_pullback

Scan all SET/MAI stocks for 3-day uptrend pullback pattern (price > EMA200 & EMA90, 3 consecutive lower closes, today price ≥ yesterday & volume > yesterday)

get_stock_quote

Get current price, EMA200, EMA90, volume, % change for a single stock

get_stock_history

Get daily close + volume history for N days with EMA200/EMA90

get_income_statement

Quarterly or annual income statement (revenue, gross profit, operating income, net income, EBITDA, EPS)

get_balance_sheet

Quarterly or annual balance sheet (assets, liabilities, equity, D/E ratio)

get_cash_flow

Quarterly or annual cash flow (operating, investing, financing CF, FCF, capex)

list_stocks

List all stocks in local DB (SET/mai)

Related MCP server: YFinance MCP Server

Requirements

  • Python 3.10+

  • mcp library

  • yfinance library

  • SQLite DB at C:/work/AI/SET/set_stocks.db (symbols from listedCompanies_th.csv)

Install

pip install -r requirements.txt

Claude Desktop / Claude Code Config

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "yahoo-finance": {
      "command": "python",
      "args": ["C:/work/AI/MCP/yahoo-finance-mcp/src/server.py"]
    }
  }
}

Claude Code:

claude mcp add yahoo-finance python "C:/work/AI/MCP/yahoo-finance-mcp/src/server.py"

Data Sources

  • Price / EMA / Volume: Yahoo Finance chart API (query2.finance.yahoo.com/v8/finance/chart)

  • Financials: Yahoo Finance via yfinance library

  • Symbol list: Local SQLite DB (931 symbols, SET + mai)

Notes

  • Thai stocks use .BK suffix on Yahoo Finance (e.g. PTT.BK, AOT.BK)

  • Quarterly financials: up to ~7 quarters history

  • Annual financials: up to ~5 years history

  • EMA is calculated from raw 2-year daily data (not from TradingView)

F
license - not found
-
quality - not tested
B
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
    A
    quality
    A
    maintenance
    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.
    Last updated
    11
    173
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A comprehensive MCP server that provides seamless access to Yahoo Finance stock market data, enabling retrieval of real-time quotes, historical data, charts, financial summaries, and market searches.
    Last updated
    68
    ISC

View all related MCP servers

Related MCP Connectors

  • Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • Twelve Data MCP: real-time & historical market data (stocks, crypto, forex, etc).

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/itjung-source/yahoo-finance-mcp'

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