Yfinance MCP
MCP server by nrempel Verified · npm:yfinance-mcp
Yfinance MCP gives AI assistants access to Yahoo Finance data, including stock quotes, historical prices, financial statements, company info, symbol search and news. It is aimed at users who want market data inside tools like Claude Desktop or Claude Code.
Install Yfinance MCP
Built from the published package, never by AI.
claude mcp add yfinance-mcp -- npx -y yfinance-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"yfinance-mcp": {
"args": [
"-y",
"yfinance-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"yfinance-mcp": {
"args": [
"-y",
"yfinance-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"yfinance-mcp": {
"args": [
"-y",
"yfinance-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add yfinance-mcp -- npx -y yfinance-mcp{
"mcpServers": {
"yfinance-mcp": {
"args": [
"-y",
"yfinance-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add yfinance-mcp npx -y yfinance-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 yfinance-mcp block.
About
Yfinance MCP is a Model Context Protocol server that gives AI assistants access to Yahoo Finance data. It provides stock quotes, historical OHLCV price data, income, balance sheet and cash flow statements, company profiles, symbol search, and news for a ticker. The server is built with TypeScript, the MCP SDK, the yahoo-finance2 library and Zod for input validation.
The project is installed with npx and added to Claude Code or Claude Desktop, as the README shows. It is aimed at users who want financial data available inside an AI assistant. The repository also includes scripts for development, tests, linting, formatting and builds using pnpm. It is released under the MIT license.
Written from the project's README and checked against it.
Tools it gives your assistant
get_quoteReturns real-time stock quote data such as price, change, volume and market cap.get_historicalReturns historical OHLCV price data for a symbol over a chosen period and interval.get_financialsReturns income statement, balance sheet or cash flow data, annual or quarterly.get_company_infoReturns a company profile including sector, industry, description and key statistics.search_symbolsSearches for stock symbols by company name or keywords.get_newsReturns the latest news for a stock symbol.
What you need
- npx to run the yfinance-mcp npm package
- Claude Code or Claude Desktop as the MCP client
Try asking
- Get the current quote and volume for AAPL
- Show quarterly income statements for GOOGL
- Find the latest news about Apple stock
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Yfinance 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
Yfinance MCP: common questions
What data does Yfinance MCP provide?
It provides stock quotes, historical prices, income, balance sheet and cash flow statements, company info, symbol search and news, all sourced from Yahoo Finance.
Which AI assistants can use it?
The README shows setup for Claude Code and Claude Desktop.
What license is Yfinance MCP released under?
The project is released under the MIT license.
How do I install Yfinance MCP?
In Claude Code run claude mcp add yfinance-mcp -- npx -y yfinance-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Yfinance MCP the official server?
Yfinance MCP is published by npm:yfinance-mcp from its verified domain in the official MCP Registry.
Is Yfinance MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Yfinance MCP safe to use?
It scores 51 of 100. Grades: maintenance D, licence A, quality C. 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 Yfinance MCP?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does Yfinance 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.
