mcpField
Y
yahoo-finance-mcp-server

yahoo-finance-mcp-server

Local
github.com/TheNextGenNexusFinance1Updated 27w ago

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

  1. 01Real-time stock quotes
  2. 02Quotes for multiple stocks
  3. 03Historical price data
  4. 04Financial metric comparisons

Use cases

  1. 01Check a stock's current quote
  2. 02Retrieve prices for a past period
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"thenextgennexus-yahoo-finance": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}
Run commandnpx -y @thenextgennexus/yahoo-finance-mcp-server
Environment variables to set
APIFY_TOKENSecretYour Apify API token for accessing web scraping actors

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@thenextgennexus/yahoo-finance-mcp-server1.0.1

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
tickerstringYesStock ticker symbol

Details

From the project README

Yahoo 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

ToolDescription
get_stock_quoteGet a real-time stock quote from Yahoo Finance
get_multiple_quotesGet quotes for multiple stocks at once
get_stock_historyGet historical stock price data
compare_stocksCompare financial metrics of multiple stocks

Environment Variables

VariableRequiredDescription
APIFY_TOKENNoYour 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

Markdown supported

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.