yahoo-finance-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yahoo-finance-mcpscan for uptrend pullback stocks today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for stocksense-ai documentation, generated by doc2mcp.
Taiwan Stock Exchange (TWSE) open data as MCP tools: stock quotes, ETF data, 140+ public datasets.
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
MCP server giving AI agents one-connection access to China A-share market intelligence: financials,
Related MCP Servers
- AlicenseAqualityAmaintenanceA simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.15191MIT
- 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.26ISC
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server for accessing Yahoo Finance data, providing stock prices, history, company information, and financial statements.-
- AlicenseAqualityCmaintenanceMCP server providing fundamental and technical data on Indian-listed companies from Screener.in and Yahoo Finance, including financial statements, ratios, and technical indicators.12MIT