Yahoo Finance MCP serverand Python AI tasks
qbash hosts a Yahoo Finance MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Yahoo Finance with models such as Claude and GPT.
Add the qbash MCP
Use Yahoo Finance from Claude Code, Codex, Cursor and other MCP clients. Connect Yahoo Finance in qbash, and your agent can work with its data and build Tasks that call it.
claude mcp add --transport http qbash https://mcp.qbash.com/mcp
Then run /mcp in Claude Code and sign in with qbash.
- Read the latest price, change, volume, market cap and 52-week range for a list of tickers
- Read open, high, low, close and volume bars from one minute to one month
- List a ticker's dividend payments and stock splits over a date range
- Read a company's sector, industry, employee count, website, business summary and officers
- Read valuation and trading statistics such as P/E, EPS, beta, shares outstanding and short interest
- Read annual or quarterly revenue, margins, operating income, net income and EPS
Write a Yahoo Finance task in Python
A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.
Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.
Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.
Explain the big movers in a watchlist each morning
get_quotes reads the latest price, change and volume for every ticker on your watchlist. An inline prompt names the tickers that moved more than 3 percent or traded at twice their average volume, and writes one line on each.
result = qbash.integrations.yahoo_finance.get_quotes(
symbols=["NVDA", "KO", "AAPL", "MSFT", "JPM", "XOM"],
fields=["shortName", "regularMarketPrice", "regularMarketChange", "regularMarketChangePercent", "regularMarketVolume", "averageDailyVolume3Month", "fiftyTwoWeekLow", "fiftyTwoWeekHigh", "marketCap", "currency"],
)
quotes = result["quotes"]
if quotes:
movers = qbash.ai.run_prompt(
slug="yahoo-finance-movers",
variables={"quotes": json.dumps(quotes)},
)
qbash.output(movers)
else:
qbash.output("Yahoo Finance returned no quotes for this watchlist.")
Sample get_quotes response
{
"status": "success",
"quotes": [
{
"symbol": "NVDA",
"shortName": "NVIDIA Corporation",
"regularMarketPrice": 187.42,
"regularMarketChange": 7.91,
"regularMarketChangePercent": 4.41,
"regularMarketVolume": 318204500,
"averageDailyVolume3Month": 196430100,
"fiftyTwoWeekLow": 86.62,
"fiftyTwoWeekHigh": 195.11,
"marketCap": 4566000000000,
"currency": "USD"
},
{
"symbol": "KO",
"shortName": "Coca-Cola Company (The)",
"regularMarketPrice": 69.18,
"regularMarketChange": -0.24,
"regularMarketChangePercent": -0.35,
"regularMarketVolume": 11872300,
"averageDailyVolume3Month": 14105600,
"fiftyTwoWeekLow": 60.62,
"fiftyTwoWeekHigh": 74.38,
"marketCap": 297700000000,
"currency": "USD"
}
]
}
Custom MCP server
Build a custom MCP server with Yahoo Finance
Create a hosted MCP server that combines Yahoo Finance tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Yahoo Finance reads with write tools left off.
Share the server with your team, and each person adds it to the client they already use.
Yahoo Finance MCP questions
Does Yahoo Finance have an official MCP server?
Yahoo does not publish a Yahoo Finance MCP server as of November 2026. The community servers wrap yfinance, an open-source Python library that Yahoo does not endorse.
Is there an official Yahoo Finance API?
Yahoo closed its public finance API in 2017 and has not published a replacement as of November 2026. Libraries such as yfinance read the endpoints the Yahoo Finance website uses, and Yahoo's terms govern what you may do with that data.
What does the Yahoo Finance connector need to connect?
Yahoo Finance data needs no sign-in, so the connector would take no API key. For market data from an official, keyed API, the Massive connector uses your Massive API key.
Related finance connectors
Build a Yahoo Finance task
Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.