Yfinance MCP Server
Y

Yfinance MCP Server

An unofficial MCP server for retrieving Yahoo Finance stock data through yfinance, providing historical data query functionality.
2 points
6.1K

What is the yfinance-MCP server?

The yfinance-MCP server is a tool based on the Message Control Protocol (MCP) that accesses data from Yahoo Finance through the yfinance library. It can easily retrieve historical stock data and supports various time periods and interval settings.

How to use the yfinance-MCP server?

First, make sure you have the Node.js environment installed. Then, you can start the server with a simple command and interact with it using any MCP client to retrieve stock data.

Applicable scenarios

The yfinance-MCP server is suitable for researchers, investors, and developers who need to quickly retrieve historical stock data. It is a very useful tool for both data analysis and building financial applications.

Main Features

Retrieve historical stock data
Supports custom time periods (e.g., 1 day, 5 days, 1 month, etc.) and time intervals (e.g., daily, weekly, monthly).
Support multiple data formats
Can return data in various formats such as tables and charts for further analysis.
Cross-platform compatibility
Suitable for various operating systems and devices and can run without additional configuration.
Advantages
Easy to integrate into existing systems
Data is updated in real-time and accurate
Open source and free, with active community support
Limitations
Depends on the Yahoo Finance API and may be subject to API restrictions
Limited to historical data and cannot predict future trends

How to Use

Install Node.js
Download and install the latest version of the Node.js environment.
Clone the repository
Clone the project code from GitHub to your local machine.
Install dependencies
Install the required dependencies after entering the project directory.
Start the server
Start the server using the npm command.

Usage Examples

Retrieve historical stock data of Apple Inc.
Request to retrieve the daily stock data of Apple Inc. for the past month and format it as a Markdown table.
Analyze the stock price fluctuations of Google
Request to retrieve the monthly stock data of Google for the past six months and analyze its price fluctuation trends.

Frequently Asked Questions

How to start using the yfinance-MCP server?
Does it support data for other currency pairs?
How to handle API restriction issues?

Related Resources

GitHub Repository
Project source code and documentation
Node.js Official Website
Node.js installation guide
YouTube Tutorial
Quick start guide video

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "yfinance": {
      "command": "npx",
      "args": [
        "@onori/yfinance-mcp-server"
      ]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

P
Paperbanana
Python
6.4K
5 points
F
Finlab Ai
FinLab AI is a quantitative financial analysis platform that helps users discover excess returns (alpha) in investment strategies through AI technology. It provides a rich dataset, backtesting framework, and strategy examples, supporting automated installation and integration into mainstream AI programming assistants.
5.9K
4 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.4K
5 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
10.2K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
20.9K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
14.6K
5 points
C
Contracts Wizard
OpenZeppelin Contracts Wizard is an interactive smart contract building tool that allows users to generate contract code based on OpenZeppelin components by selecting contract types, parameters, and functions. It supports multiple programming languages and provides API and embedding functions.
TypeScript
9.8K
4 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
21.5K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.5K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
24.7K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.5K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
65.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.1K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
97.5K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase