yahoo-finance-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
yahoo-finance-mcp
MCP server for Thai SET/MAI stock data via Yahoo Finance API.
Tools
Tool | Description |
| Scan all SET/MAI stocks for 3-day uptrend pullback pattern (price > EMA200 & EMA90, 3 consecutive lower closes, today price ≥ yesterday & volume > yesterday) |
| Get current price, EMA200, EMA90, volume, % change for a single stock |
| Get daily close + volume history for N days with EMA200/EMA90 |
| Quarterly or annual income statement (revenue, gross profit, operating income, net income, EBITDA, EPS) |
| Quarterly or annual balance sheet (assets, liabilities, equity, D/E ratio) |
| Quarterly or annual cash flow (operating, investing, financing CF, FCF, capex) |
| List all stocks in local DB (SET/mai) |
Related MCP server: YFinance MCP Server
Requirements
Python 3.10+
mcplibraryyfinancelibrarySQLite DB at
C:/work/AI/SET/set_stocks.db(symbols fromlistedCompanies_th.csv)
Install
pip install -r requirements.txtClaude 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
yfinancelibrarySymbol list: Local SQLite DB (931 symbols, SET + mai)
Notes
Thai stocks use
.BKsuffix 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)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
MCP server for Financial Modeling Prep API with 250+ financial data tools
MCP server for real-time China A-share stock quotes, indices and market data.
MCP server for stocksense-ai documentation, generated by doc2mcp.
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
Related MCP Servers
- AlicenseAqualityBmaintenanceA simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.215211MIT
- AlicenseNot gradedqualityDmaintenanceA 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.26 npmISC
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server for accessing Yahoo Finance data, providing stock prices, history, company information, and financial statements.-
- AlicenseAqualityDmaintenanceMCP server providing fundamental and technical data on Indian-listed companies from Screener.in and Yahoo Finance, including financial statements, ratios, and technical indicators.12MIT