Yahoo Finance MCP Server
A simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.
Tools
get_ticker_info
Retrieve information about a specific stock symbol using Yahoo Finance API.
get_ticker_news
Fetches news articles for a given stock ticker symbol.
search_quote
Search for quotes using a query string.
search_news
Search for news articles using a query string.
get_top_etfs
Retrieve the top ETFs in a specific sector.
get_top_mutual_funds
Retrieve the top mutual funds in a specific sector.
get_top_companies
Retrieve the top companies in a specific sector.
get_top_growth_companies
Retrieve the top growth companies in a specific sector.
get_top_performing_companies
Retrieve the top performing companies in a specific sector.
analyze_sentiment
You are a sentiment analysis tool. Based on the provided rationale, analyze the sentiment for the given stock symbol. Please ensure that your analysis is objective and unbiased. Return the result in the following formatted output.
README
Yahoo Finance MCP Server
A simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.
Tools
-
get_ticker_info
- Retrieve information about a specific stock symbol using Yahoo Finance API.
- Inputs:
symbol(string): The stock symbol.
-
get_ticker_news
- Fetch news articles for a given stock ticker symbol.
- Inputs:
symbol(string): The stock symbol.
-
search_quote
- Search for quotes using a query string.
- Inputs:
query(string): The search query.max_results(number, optional): Maximum number of results (default 8).
-
search_news
- Search for news articles using a query string.
- Inputs:
query(string): The search query.news_count(number, optional): Number of news articles (default 8).
-
get_top_etfs
- Retrieve the top ETFs in a specific sector.
- Inputs:
sector(string): The sector to get ETFs for.
-
get_top_mutual_funds
- Retrieve the top mutual funds in a specific sector.
- Inputs:
sector(string): The sector to get mutual funds for.
-
get_top_companies
- Retrieve the top companies in a specific sector.
- Inputs:
sector(string): The sector to get companies for.top_n(number): Number of top companies to retrieve.
-
get_top_growth_companies
- Retrieve the top growth companies in a specific sector.
- Inputs:
sector(string): The sector to get companies for.top_n(number): Number of top growth companies to retrieve.
-
get_top_performing_companies
- Retrieve the top performing companies in a specific sector.
- Inputs:
sector(string): The sector to get companies for.top_n(number): Number of top performing companies to retrieve.
-
analyze_sentiment
- Analyze sentiment for a given stock symbol based on provided rationale.
- Inputs:
symbol(string): The stock symbol.reasoning(string): The rationale behind the sentiment analysis.sentiment(string): The sentiment label ('positive', 'negative', or 'neutral').score(number): The sentiment score ranging from -1 to 1.
Usage
- Install uv.
- Add the following configuration to your MCP server configuration file.
{
"mcpServers": {
"yfmcp": {
"command": "uvx",
"args": ["yfmcp"]
}
}
}
{
"mcpServers": {
"yfmcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "narumi/yfinance-mcp"]
}
}
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.