Get real-time stock quotes, historical data, and compare stocks via Yahoo Finance
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add yahoo-finance-server-thenextgennexus --env APIFY_TOKEN='<APIFY_TOKEN>' -- npx -y @thenextgennexus/yahoo-finance-mcp-server~/.codex/config.toml
[mcp_servers.yahoo-finance-server-thenextgennexus]
command = "npx"
args = ["-y", "@thenextgennexus/yahoo-finance-mcp-server"]
env = { APIFY_TOKEN = "<APIFY_TOKEN>" }
# codex mcp add yahoo-finance-server-thenextgennexus --env APIFY_TOKEN='<APIFY_TOKEN>' -- npx -y @thenextgennexus/yahoo-finance-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"yahoo-finance-server-thenextgennexus": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"yahoo-finance-server-thenextgennexus": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"yahoo-finance-server-thenextgennexus": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"yahoo-finance-server-thenextgennexus": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"yahoo-finance-server-thenextgennexus": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/yahoo-finance-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}Environment variables
APIFY_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.