YFinance Stock ServerSAFE
Real-time stock API with Python, MCP server example, yfinance stock analysis dashboard
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/adity-star-mcp-yfinance-server)
[](https://spark.entire.vc/assets/vb-yfinance?utmsource=github&utmmedium=readme) [](https://spark.entire.vc/assets/vb-yfinance?utmsource=github&utmmedium=readme)
This project sets up a stock Price server powered by the Yahoo Finance (YFinance) API and built for seamless integration with MCP (Model Control Protocol).
It allows AI agents or clients to:
- Retrieve real-time stock data
- Manage a watchlist
- Perform full stock analysis
- Run full technical indicators
- And much more
🪙 Start Simple: Build a Crypto Price Tracker First
Before diving into the full-blown stock server, I recommend starting with this simple crypto tracker built with Python + MCP 👇
🔗 GitHub Repo: https://github.com/Adity-star/mcp-crypto-server
You'll learn how to: - Use MCP to expose crypto tools like get_price("BTC") - Build an API with FastAPI - Fetch real-time prices using the Alpaca API
🔗 Related Projects
Explore more of my work:
- GenAI-Learnings: A deep dive into Generative AI concepts, tools, and projects.
- LangChain-Mastery: Everything you need to master LangChain for building powerful LLM applications.
- Complete Data Science: A deep dive into Data Science AI concepts, tools, and proj
5f0e430740b5OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-yfinance-server -- uvx mcp-yfinance-server
{
"mcpServers": {
"mcp-yfinance-server": {
"command": "uvx",
"args": [
"mcp-yfinance-server"
]
}
}
}Exposed tools (17)
15 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_to_watchlist | write | Add a stock symbol to the user |
compare_stocks | read | Compare two stocks |
get_bollinger_bands | read | Calculate Bollinger Bands for a given stock symbol. |
get_financial_statement | read | |
get_historical_stock_prices | read | |
get_holder_info | read | Get holder information for a given ticker symbol. |
get_macd | read | Calculate the Moving Average Convergence Divergence (MACD) indicator for a given stock symbol. |
get_moving_averages | read | Calculate multiple Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) for a stock. |
get_recommendations | read | Get recommendations or upgrades/downgrades for a given ticker symbol |
get_rsi | read | Calculate the Relative Strength Index (RSI) for a given stock symbol. |
get_stock_info | read | |
get_stock_price | read | |
get_technical_summary | read | |
get_watchlist | read | Retrieve all stock symbols currently in the watchlist. |
get_watchlist_prices | read | Fetch the current prices for all stocks in the watchlist |
get_yahoo_finance_news | read | Get the latest news articles related to a stock ticker from Yahoo Finance. |
remove_from_watchlist | destructive | Remove a stock symbol from the user |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
remove_from_watchlist
httpx, mcp, yfinance, pandas, numpy, matplotlib, ipython, fastmcp
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
5f0e430740b5full audit observations/trust-audit/mcp-server/adity-star__yfinance-stock-server.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 5f0e430740b5 | SAFE | B | 89 | first audit |
Questions
What is the YFinance Stock Server MCP server?
Real-time stock API with Python, MCP server example, yfinance stock analysis dashboard
What tools does YFinance Stock Server expose?
17 in total: 15 read-only, 1 that write, and 1 that can delete or overwrite (remove_from_watchlist). Every one is listed on this page with its risk.
Is YFinance Stock Server safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does YFinance Stock Server need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (5f0e430740b5), read on 2026-10-08. The repository is watched and re-audited when it changes.