About yahoo-finance-mcp-server
A local MCP server that retrieves Yahoo Finance quotes and historical prices, and compares stocks. It is for finance clients that need current market data and financial metrics.
Key features
- 01Real-time stock quotes
- 02Quotes for multiple stocks
- 03Historical price data
- 04Financial metric comparisons
Use cases
- 01Check a stock's current quote
- 02Retrieve prices for a past period
- 03Compare several stocks' financial metrics
MCP support
Exposes four finance tools to MCP clients and forwards their requests from a local stdio bridge to the nexgendata Apify MCP endpoint.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @thenextgennexus/yahoo-finance-mcp-serverAPIFY_TOKENSecretYour Apify API token for accessing web scraping actorsLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
4Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticker | string | Yes | Stock ticker symbol |
Details
From the project READMEYahoo Finance MCP Server
Get real-time stock quotes, historical data, and compare stocks via Yahoo Finance — powered by nexgendata on Apify.
Quick Start
Using npx (recommended)
npx @nexgendata/yahoo-finance-mcp-server
Install globally
npm install -g @nexgendata/yahoo-finance-mcp-server
Configure with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"yahoo-finance-mcp-server": {
"command": "npx",
"args": [
"-y",
"@nexgendata/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "your-apify-token-optional"
}
}
}
}
Configure with Cline
Add the same configuration to your Cline MCP settings.
Available Tools
| Tool | Description |
|---|---|
get_stock_quote | Get a real-time stock quote from Yahoo Finance |
get_multiple_quotes | Get quotes for multiple stocks at once |
get_stock_history | Get historical stock price data |
compare_stocks | Compare financial metrics of multiple stocks |
Environment Variables
| Variable | Required | Description |
|---|---|---|
APIFY_TOKEN | No | Your Apify API token for authenticated access. Without it, the server uses the public endpoint (rate-limited). |
How It Works
This MCP server acts as a local stdio bridge to the nexgendata Apify MCP endpoint. When you call a tool, it forwards the request to Apify and returns the results.
Links
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.