No project description provided
Project description
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"]
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yfmcp-0.1.10-py3-none-any.whl.
File metadata
- Download URL: yfmcp-0.1.10-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482384dcfbcc23de93b61610f6d4f2c115e75c39da0162f272787634878adb0d
|
|
| MD5 |
446858299552784a2487ca9d0a7d8a3d
|
|
| BLAKE2b-256 |
141c09b4f8c88810a2c1e9ef8d2d3862c17287d3fa8dabc64878da9c8a662c60
|