Is the Yahoo Finance MCP server safe? What it can reach
What the Yahoo Finance MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Yahoo has no official MCP server, so this covers Alex2Yang97/yahoo-finance-mcp, a widely used community server built on the yfinance library. It runs locally, needs no sign-in, and has nine read-only tools for prices, financial statements, holders and options. It changes nothing on any account.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Alex2Yang97/yahoo-finance-mcp (community) | Community | active |
| narumiruna/yfinance-mcp (community) | Community | active |
It runs as a local process on your machine.
How it signs in
No account or key. The server fetches public Yahoo Finance data through yfinance as an anonymous client.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_historical_stock_prices, get_stock_info, get_yahoo_finance_news, get_stock_actions, get_financial_statement, get_holder_info, get_option_expiration_dates, get_option_chain, get_recommendations |
| Write | none documented |
| Can’t be undone | none documented |
Every tool is a lookup. The server doesn’t place trades or touch a brokerage account.
Built-in limits
| Option | What it does |
|---|---|
Tool rules in your client | The README documents no flags or toolsets. All tools are read-only, so there is little to narrow. |
The risks
- The server runs from a git URL through uvx, so you run whatever is on the repository’s default branch at launch time unless you pin a commit.
- It relies on the community yfinance library rather than an official Yahoo API, so data can break or change without notice.
- get_yahoo_finance_news pulls text from outside sources into the conversation, which can carry injected instructions.
- Tickers you ask about leave your machine and reveal what you are researching.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add yahoo-finance -- uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcpClaude Code names MCP tools mcp__yahoo-finance__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.
Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.yahoo-finance]
command = "uvx"
args = ["--from", "git+https://github.com/Alex2Yang97/yahoo-finance-mcp", "yahoo-finance-mcp"]Checklist
- Pin the git reference in the uvx command to a commit you have read.
- Treat the figures as unverified and check key numbers at the source.
- Don’t let an agent act on news text without your review.
- Keep it separate from any server that can place trades.
Checked against the vendor documentation on November 25, 2026. Alex2Yang97/yahoo-finance-mcp README · README (via GitHub API) · narumiruna/yfinance-mcp
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing