Yahoo finance MCP
MCP server by Alex2Yang97 Verified · gh:alex2yang97
Yahoo Finance MCP is a Model Context Protocol server that gives AI assistants stock data from Yahoo Finance. It is aimed at users who want historical prices, company details, financial statements, options data and market news through Claude.
Install Yahoo finance MCP
Built from the published package, never by AI.
claude mcp add yahoo-finance-mcp -- uvx yahoo-finance-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"yahoo-finance-mcp": {
"args": [
"yahoo-finance-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"yahoo-finance-mcp": {
"args": [
"yahoo-finance-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"yahoo-finance-mcp": {
"args": [
"yahoo-finance-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add yahoo-finance-mcp -- uvx yahoo-finance-mcp{
"mcpServers": {
"yahoo-finance-mcp": {
"args": [
"yahoo-finance-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add yahoo-finance-mcp uvx yahoo-finance-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the yahoo-finance-mcp block.
About
Yahoo Finance MCP is a Model Context Protocol server that retrieves financial data from Yahoo Finance. It covers stocks, including historical prices, company information, financial statements, holder information, options data, analyst recommendations, dividends, splits and market news. Its tools let an AI assistant such as Claude query these data types on request.
The server is written in Python and depends on packages including mcp, yfinance and pandas. It can be run with uvx directly from the GitHub repository, or from a local clone using uv run server.py. The README lists example uses for stock analysis, market research and investment research, such as comparing financial statements or reviewing insider transactions.
Written from the project's README and checked against it.
Tools it gives your assistant
get_historical_stock_pricesGets historical OHLCV data for a stock with a customizable period and interval.get_stock_infoGets stock data including price, metrics and company details.get_yahoo_finance_newsGets the latest news articles for a stock.get_stock_actionsGets a stock's dividends and splits history.get_financial_statementGets the income statement, balance sheet or cash flow statement, annual or quarterly.get_holder_infoGets major holders, institutional holders, mutual funds or insider transactions.get_option_expiration_datesGets the available options expiration dates.get_option_chainGets the options chain for an expiration date and type (calls or puts).get_recommendationsGets analyst recommendations or the upgrades and downgrades history.
What you need
- Python 3.14.6 or higher
- uv, to run the server with uvx or uv sync
- Claude for Desktop, for the setup described in the README
Try asking
- Show me the historical stock prices for NOW over the last 6 months.
- Get the quarterly balance sheet for Intuit.
- What are the recent insider transactions for ServiceNow?
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Yahoo finance MCP
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
Yahoo finance MCP: common questions
Where does the financial data come from?
The server provides data from Yahoo Finance, and the repository uses the yfinance package to retrieve it.
Which AI assistant is the setup example for?
The README gives configuration steps for Claude for Desktop, using a claude_desktop_config.json file.
Which data types can it retrieve?
It can retrieve historical prices, company information, financial statements, options data, analyst recommendations, dividends, splits, holder information and news.
How do I install Yahoo finance MCP?
In Claude Code run claude mcp add yahoo-finance-mcp -- uvx yahoo-finance-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Yahoo finance MCP the official server?
Yahoo finance MCP is published by gh:alex2yang97 from its verified domain in the official MCP Registry.
Is Yahoo finance MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Yahoo finance MCP safe to use?
It scores 78 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Yahoo finance MCP?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does Yahoo finance MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
