yfinance-mcp-server2
MCP ServerFreeMCP server: yfinance-mcp-server2
Capabilities8 decomposed
real-time stock price retrieval via mcp protocol
Medium confidenceExposes yfinance's stock ticker data fetching through the Model Context Protocol, allowing AI agents to query current and historical stock prices by ticker symbol. Implements MCP resource endpoints that wrap yfinance's Ticker.history() and Ticker.info methods, translating HTTP/JSON requests into structured financial data responses with OHLCV (open, high, low, close, volume) fields and metadata.
Wraps yfinance as an MCP server, enabling direct integration with Claude and other MCP-compatible AI agents without custom API wrappers; uses MCP's resource and tool abstractions to expose ticker data as first-class protocol primitives rather than generic function calls
Simpler than building a custom REST API wrapper around yfinance; tighter integration with Claude's native MCP support compared to generic HTTP tool calling
multi-ticker batch data aggregation
Medium confidenceSupports querying multiple stock tickers in a single MCP call, aggregating results into a unified response structure. Implements parallel or sequential fetching of yfinance Ticker objects, combining OHLCV data, fundamentals, and metadata across symbols, then normalizing into a consistent JSON schema for downstream processing by AI agents.
Implements batch ticker fetching as a single MCP tool invocation, reducing round-trip overhead compared to calling single-ticker endpoints repeatedly; normalizes heterogeneous yfinance responses into a consistent schema for agent consumption
More efficient than agents making N separate API calls for N tickers; cleaner than agents managing their own batching logic outside the MCP boundary
historical ohlcv time-series retrieval with interval selection
Medium confidenceExposes yfinance's Ticker.history() method through MCP, allowing agents to fetch historical price data at configurable intervals (daily, weekly, monthly). Translates interval parameters into yfinance's period/interval arguments, returns time-indexed DataFrames converted to JSON arrays with timestamp, open, high, low, close, volume, and adjusted close fields.
Parameterizes yfinance's interval selection (daily/weekly/monthly) as MCP tool arguments, allowing agents to dynamically request different granularities without code changes; converts pandas DataFrames to JSON with explicit timestamp normalization for agent consumption
More flexible than fixed-interval endpoints; avoids agents needing to manage pandas or numpy dependencies directly
stock fundamental metrics extraction
Medium confidenceExposes yfinance's Ticker.info dictionary through MCP, extracting key fundamental metrics (PE ratio, market cap, dividend yield, earnings per share, 52-week high/low, etc.). Implements selective field extraction from yfinance's unstructured info dict, normalizing null/missing values and converting numeric strings to proper types for agent consumption.
Selectively extracts and normalizes yfinance's unstructured Ticker.info dict into a clean schema, handling type conversions and null values; exposes fundamental metrics as a dedicated MCP tool rather than bundling with price data
Cleaner than agents parsing raw yfinance dicts; more focused than generic financial data APIs that require separate subscriptions
mcp protocol resource and tool registration
Medium confidenceImplements the Model Context Protocol server specification, registering yfinance capabilities as MCP resources and tools with proper schema definitions. Uses MCP's JSONSchema for input validation, implements request/response serialization, and handles MCP lifecycle (initialization, capability advertisement, error handling). Enables Claude and other MCP clients to discover and invoke yfinance functions with type-safe arguments.
Implements full MCP server lifecycle (initialization, capability advertisement, request handling) as a Python MCP server, enabling seamless integration with Claude and other MCP clients; uses JSONSchema for declarative tool definitions rather than runtime type checking
Tighter integration with Claude than generic REST APIs; avoids custom HTTP server boilerplate by leveraging MCP's standardized protocol
error handling and data validation for ticker queries
Medium confidenceImplements input validation for ticker symbols and date parameters, catching invalid tickers early and returning structured error responses via MCP. Validates ticker format (alphanumeric, length constraints), date range logic (start < end), and handles yfinance exceptions (network errors, invalid symbols) by translating them into MCP error responses with descriptive messages for agent consumption.
Implements input validation at the MCP boundary before invoking yfinance, reducing wasted API calls and providing early feedback; translates yfinance exceptions into MCP-compliant error responses with structured metadata
Prevents agents from making invalid yfinance calls; cleaner error handling than agents parsing raw exceptions
ticker symbol normalization and aliasing
Medium confidenceHandles common ticker symbol variations and aliases (e.g., 'Apple' → 'AAPL', 'BRK.A' → 'BRK-A'), normalizing user input before querying yfinance. Implements a mapping layer for common aliases and case-insensitive matching, allowing agents to accept natural language ticker references and convert them to valid yfinance symbols.
Implements a ticker normalization layer before yfinance calls, allowing agents to accept natural language or alternative formats; uses a static alias mapping for common variations rather than external symbol resolution services
Simpler than agents managing their own normalization logic; avoids dependency on external symbol resolution APIs
mcp server lifecycle management and deployment
Medium confidenceProvides a runnable MCP server implementation with standard lifecycle hooks (startup, shutdown, error recovery). Implements stdio-based MCP transport for local execution or can be deployed as a subprocess managed by MCP clients (Claude Desktop, custom hosts). Handles graceful shutdown, resource cleanup, and connection state management for reliable agent integration.
Implements a complete MCP server with lifecycle management, using stdio transport for local execution; handles initialization, capability advertisement, and graceful shutdown without requiring external process managers
Simpler deployment than custom REST API servers; integrates directly with Claude Desktop without additional infrastructure
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with yfinance-mcp-server2, ranked by overlap. Discovered automatically through the match graph.
AkTools MCP Server for stock and crypto
MCP Server for stock and crypto. 提供股票、加密货币的数据查询和分析功能MCP服务器 ## 功能 - **股票搜索**: 根据公司名称、股票名称等关键词查找股票代码 - **股票信息**: 获取股票的详细信息,包括价格、市值等 - **历史价格**: 获取股票、加密货币历史价格数据,包含技术分析指标 - **相关新闻**: 获取股票、加密货币相关的最新新闻资讯 - **财务指标**: 支持A股和港股的财务报告关键指标查询
yahoo-finance-mcp
MCP server: yahoo-finance-mcp
yfinance-mcp-server
MCP server: yfinance-mcp-server
yfinance-mcp-server
MCP server: yfinance-mcp-server
Financial Datasets
** - Stock market API made for AI agents
Twelve Data
** - Interact with [Twelve Data](https://twelvedata.com) APIs to access real-time and historical financial market data for your AI agents.
Best For
- ✓AI agents and LLM applications requiring live financial data
- ✓Teams building financial analysis chatbots or trading assistants
- ✓Developers integrating stock market data into autonomous workflows
- ✓Portfolio analysis agents
- ✓Comparative financial research workflows
- ✓Agents building market dashboards or sector analysis reports
- ✓Technical analysis agents
- ✓Backtesting and historical performance evaluation
Known Limitations
- ⚠yfinance relies on Yahoo Finance scraping, which can be rate-limited or blocked without notice
- ⚠No built-in caching — repeated queries for the same ticker incur network latency
- ⚠Historical data accuracy depends on Yahoo Finance data quality; gaps or delays may occur
- ⚠Real-time data is delayed by 15-20 minutes for free tier; no intraday tick-level granularity
- ⚠Batch size may be constrained by Yahoo Finance rate limits; large portfolios (100+ tickers) risk throttling
- ⚠No built-in deduplication — repeated tickers in a batch are fetched separately
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
About
MCP server: yfinance-mcp-server2
Categories
Alternatives to yfinance-mcp-server2
Search the Supabase docs for up-to-date guidance and troubleshoot errors quickly. Manage organizations, projects, databases, and Edge Functions, including migrations, SQL, logs, advisors, keys, and type generation, in one flow. Create and manage development branches to iterate safely, confirm costs
Compare →AI-optimized web search and content extraction via Tavily MCP.
Compare →Scrape websites and extract structured data via Firecrawl MCP.
Compare →Are you the builder of yfinance-mcp-server2?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →