yfinance-market-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.
yfinance-market-mcp
MCP server that exposes Yahoo Finance market data to AI assistants (Claude Code, Claude Desktop, or any MCP-compatible client).
30 tools covering: price history, options chains, news, financials, analyst estimates, holders, screener, sector/industry data, and more.
Quick Start
Install
pip install yfinance-market-mcpOr run directly without installing (requires uv):
uvx yfinance-market-mcpFor local development (editable install):
git clone https://github.com/hachecito/yfinance-market-mcp.git
cd yfinance-market-mcp
pip install -e .Verify Installation
yfinance-mcp --helpIf the command is found, the server is ready.
Related MCP server: Financial Modeling Prep MCP Server
Usage
With Claude Code
Create a .mcp.json file in your project root:
Using pip:
{
"mcpServers": {
"yfinance": {
"command": "yfinance-mcp"
}
}
}Using uvx (no install needed):
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": ["yfinance-market-mcp"]
}
}
}Then restart Claude Code. The 30 tools will be available automatically — just ask Claude about any stock, options chain, or market news.
With Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Using pip:
{
"mcpServers": {
"yfinance": {
"command": "yfinance-mcp"
}
}
}Using uvx:
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": ["yfinance-market-mcp"]
}
}
}Restart Claude Desktop. Done.
With Any MCP Client
The server uses stdio transport. Launch it with:
yfinance-mcp
# or
uvx yfinance-market-mcpConnect your MCP client to stdin/stdout of that process.
Available Tools (30)
Price
Tool | Description |
| OHLCV data (configurable period, interval, date range) |
| Dividend history |
| Stock split history |
Info
Tool | Description |
| Full company info (sector, industry, description, financials) |
| Quick snapshot (price, volume, market cap, 52w range) |
| Composite: price + fundamentals + news + analyst targets |
News
Tool | Description |
| Recent news articles for a ticker |
| General market news search by keyword |
Options
Tool | Description |
| Available expiration dates |
| Calls/puts with strike, bid, ask, volume, OI, IV |
Financial Statements
Tool | Description |
| Income statement (yearly/quarterly/trailing) |
| Balance sheet (yearly/quarterly) |
| Cash flow statement (yearly/quarterly) |
Analysis & Estimates
Tool | Description |
| Price targets (low, high, mean, median, current) |
| Buy/sell/hold ratings over time |
| Analyst rating changes |
| EPS estimates by period |
| Revenue estimates by period |
| Growth rate estimates |
| EPS trend / estimate revisions |
Holders
Tool | Description |
| Top institutional holders |
| Recent insider buys/sells |
| Major holder breakdown |
Events & Search
Tool | Description |
| Upcoming/past earnings dates |
| Upcoming events (dividends, earnings) |
| Search tickers by company name or keyword |
Sector & Industry
Tool | Description |
| Sector overview, top companies, and industry breakdown |
| Industry overview, top companies, and top growth companies |
Screener
Tool | Description |
| Predefined screeners (most actives, day gainers/losers, undervalued, etc.) |
Batch
Tool | Description |
| Download OHLCV data for multiple tickers at once |
Example Prompts
Once connected, just ask Claude naturally:
"Show me AAPL's options chain for the nearest expiration"
"What's the latest news on TSLA?"
"Compare MSFT and GOOGL fundamentals"
"Get analyst price targets for NVDA"
"Show me AMZN's quarterly income statement"
"What are the most active stocks today?"
"Show me the top companies in the semiconductor industry"
Publishing to PyPI
1. Prerequisites
Create a PyPI account at pypi.org and generate an API token:
Go to pypi.org/manage/account
Scroll to API tokens > Add API token
Name:
yfinance-market-mcp, Scope: Entire account (first time) or project-scoped laterCopy the token (starts with
pypi-)
2. Install Build Tools
pip install build twine3. Build the Package
cd yfinance_mcp
python -m build4. Publish to PyPI
twine upload dist/*Credentials:
Username:
__token__Password: your PyPI API token (the
pypi-one from step 1)
Updating Versions
Bump version in
pyproject.tomlandsrc/yfinance_mcp/__init__.pyRebuild:
python -m buildUpload:
twine upload dist/*
Project Structure
yfinance_mcp/
├── pyproject.toml # Package metadata + entry points
├── LICENSE
├── README.md
├── src/
│ └── yfinance_mcp/
│ ├── __init__.py # Package version
│ ├── server.py # FastMCP server + 30 tools
│ └── utils.py # DataFrame/Series serialization
└── tests/
└── test_server.py # Unit testsLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Research US-listed companies and funds with the StockPortfolio.pro MCP server. Tools cover SEC filing-grounded financials, filing timelines, company comparisons, watchlist screens, fund profiles, and cited filing questions. Filed figures include their fiscal period and EDGAR source URL; missing filing data is returned as null. Public tools work without authentication; optional API-key or OAuth access is supported. US-listed, USD-reporting companies only. Keyless access includes 3 free AI questions per rolling 30-day window. To get more now, choose the Dev plan ($19.99/month, 200 credits) at https://www.stockportfolio.pro/register?plan=dev, then follow https://www.stockportfolio.pro/docs/api-mcp to connect with OAuth or an API key. Or wait for the free allowance to renew.
Your agent needs markets — prices and fundamentals for listed companies, the filings behind them, crypto, and what the prediction markets put the odds at. **What you can ask for** • "Pull this company's income statement, cash flow and balance sheet for the last 8 quarters." • "What did insiders buy or sell, and when?" • "Snapshot prices for these 50 tickers, then the OHLC history for the three that moved." • "What are the current odds on this event across Kalshi and Polymarket?" • "Screen for companies matching these financial criteria." **How to use it** Point any MCP client at https://mcp.aisa.one/finance/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: prices and snapshots, income statements, balance sheets and cash flows, metrics and ratios, earnings and analyst estimates, filings and line-item search, insider trades, macro interest rates, news, a screener; CoinGecko spot prices, market tables, OHLC, per-venue tickers and trending; Kalshi and Polymarket markets and trades; plus EDINET filings for Japan. **Why this rather than the source** Equities, crypto and event markets behind one account, so a cross-asset question is one conversation. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Read the number here, then ask the same agent what X is saying about the ticker today — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/marketpulse/mcp · /crypto-market-data/mcp · /prediction-market-data/mcp · /stock-pulse/mcp for one slice each.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables MCP clients to retrieve stock market and company financial data, including quotes, overviews, ratios, historical prices, income statements, and stock comparisons, via a set of tools.7-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and analyze financial data, stock information, company fundamentals, and market insights through a standardized MCP interface. It provides 250+ tools across categories such as financial statements, quotes, technical indicators, ETFs, crypto, forex, commodities, economics, and SEC filings.360 npmApache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and analyze financial data, stock information, company fundamentals, and market insights through 250+ tools covering equities, ETFs, crypto, forex, commodities, economics, and more. Supports dynamic or static toolsets over HTTP/SSE for integration with MCP clients.360 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query US stock market and financial data across SEC filings, fundamentals, institutional holdings, insider and congressional trades, earnings transcripts, options, live quotes, IPOs, short interest, macro indicators, and portfolio tracking through MCP tools.7MIT