Stockmcp
This project integrates the Yahoo Finance API with the LLaMA 3.2 3B model. Through the Model Context Protocol (MCP), the model can access real - time financial data, stock information, and market news while retaining all the original functions of LLaMA.
2.5 points
7.2K

What is Yahoo Finance MCP?

Yahoo Finance MCP is an intelligent bridging protocol that enables the LLaMA language model to access real - time financial data such as stock prices, company information, and market news while retaining all its original functions.

How to use Yahoo Finance MCP?

After simple installation steps, you can ask questions like using an ordinary chatbot. The system will automatically recognize financial questions and obtain real - time data to enhance the answers.

Applicable scenarios

Suitable for scenarios where individual investors, financial analysts, students, etc. need to quickly obtain and analyze financial data. It is also suitable as a learning assistant for financial knowledge.

Main Features

Real - time stock price query
Obtain the current stock price and trading volume information of any listed company.
Detailed company information
Query basic information such as the company's industry classification, market capitalization, and number of employees.
Historical data query
Obtain historical stock price data with customizable time ranges and intervals.
Market news
Get the latest financial market news and headlines.
Seamless integration
Enhance the financial query ability without affecting the original functions of LLaMA.
Advantages
Real - time financial data enhances the accuracy of answers.
Obtain professional financial information without switching applications.
Maintain LLaMA's original extensive knowledge base.
Simple and easy - to - use natural language interface.
Limitations
Depends on the data availability of the Yahoo Finance API.
Requires running the LLaMA model locally, which has certain requirements for hardware.
Financial data may have a 15 - minute delay (free version).
Only supports data of publicly listed companies.

How to Use

Install Ollama
Download and install the Ollama software from ollama.ai.
Download the LLaMA model
Use the Ollama command - line tool to obtain the LLaMA 3.2 3B model.
Install MCP components
Clone the repository and install Python dependencies.
Start the service
Run the integration script to start using.

Usage Examples

Query stock price
Obtain the latest stock price information of a company.
Company fundamental analysis
Understand the company's basic business situation and financial indicators.
Historical trend analysis
View the historical performance of a stock.
Market dynamics
Understand the latest financial market news.

Frequently Asked Questions

Why is there no result when querying some companies?
What is the update frequency of financial data?
Can I query the price of cryptocurrencies?
What should I do if the system response is slow?
How can I confirm that I am using the latest financial data?

Related Resources

Ollama official website
A tool for downloading and running the LLaMA model.
yfinance GitHub repository
The Yahoo Finance API wrapper library used in this project.
LLaMA model documentation
The official documentation of the LLaMA language model.
Yahoo Finance data source
The original source of financial data.

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

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
9.2K
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
8.9K
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.1K
4 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.6K
4 points
A
Awesome Web3 MCP Servers
This is a curated list of Web3 Model Context Protocol (MCP) servers, covering multiple categories such as chain interaction, trading, DeFi, market data, tools, and social. MCP is an open protocol that standardizes how applications provide context to LLMs, similar to the USB - C port for AI applications. DeMCP is the first decentralized MCP network, focusing on providing self - developed and open - source MCP services for agents, supporting cryptocurrency payments, and redefining the security and reliability of MCP by combining TEE and blockchain registries.
14.7K
4.5 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
65.9K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.4K
4.5 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
14.8K
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
24.8K
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
15.6K
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
44.3K
4.3 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
44.6K
4.5 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#
20.3K
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
15.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
29.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase