Real-time stock API with Python, MCP server example, yfinance stock analysis dashboard
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"yfinance-price-tracker": {
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/YOUR/mcp-yfinance-server",
"run",
"main.py"
],
"command": "uv"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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).
This server supports HTTP transport. Be the first to test it — help the community know if it works.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance / data
Manage Supabase projects — databases, auth, storage, and edge functions
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
The Apify MCP server enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, or any other website using thousands of ready-made scrapers, crawlers, and automation tools available on the Apify Store.
An official Qdrant Model Context Protocol (MCP) server implementation
MCP Security Weekly
Get CVE alerts and security updates for Mcp Yfinance Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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:
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
Explore more of my work:
Once you're familiar with the flow, move on to this more advanced stock tracker 💹
🔗 GitHub Repo: https://github.com/Adity-star/mcp-yfinance-server
📝 Detailed Blog: 👉 How I Built My Own Stock Server with Python, yFinance, and a Touch of Nerdy Ambition
Includes:
- Watchlists
- Real-time(ish) price updates
- Technical summaries
- A full-featured dashboard
- Trend + momentum indicators
- Watchlist management
We use uv — a modern, ultra-fast Python package manager — to manage our project environment.
Run the following commands in your terminal:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and navigate to your project directory
mkdir mcp-yfinance-server
cd mcp-yfinance-server
# Initialize a new project
uv init
# Create and activate the virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Once your pyproject.toml is set up with dependencies, run:
# Run
uv pip install -e .
Once your environment is ready, start the stock server:
uv run main.py
🧪 Want a quick test first? Try checking the tools first:
python run test_server_fun.py
📄 Curious how the full server works?
Explore the source code here:
🔗 [yf_server.py › GitHub](https://github.com/Adity-star/mcp-yfinance-server/blob/m