HF Trending MCP Server
An MCP server that tracks trending models, datasets, and spaces on Hugging Face.
It provides tools and prompts to fetch trending content, search for specific items, and analyze current trends, making it a valuable tool for developers, researchers, and AI enthusiasts.
Features
- Trending Tools: Retrieve the top trending models, datasets, and spaces with customizable limits.
- Search Functionality: Search trending items by query across models, datasets, or spaces.
- Trend Analysis Prompt: A built-in prompt to analyze and summarize current trends on Hugging Face.
Installation
Setup
-
Clone the Repository:
git clone https://github.com/kukapay/hf-trending-mcp.git cd hf-trending-mcp
-
Install Dependencies:
pip install mcp[cli] httpx
-
Client Configuration:
"mcpServers": { "hf-trending-mcp": { "command": "python", "args": [ "path/to/hf-trending-mcp/main.py" ] } }
Usage
Once the server is running or installed, you can interact with it using an MCP client (e.g., Claude Desktop). Below are some example prompts:
Fetch Trending Content
Input:
"Show me the top 5 trending models on Hugging Face."
Output:
google/vit-base-patch16-224 (Downloads: 12345, Likes: 678)
Tags: vision, transformer
facebook/detr-resnet-50 (Downloads: 9876, Likes: 543)
Tags: object-detection, transformer
...
Input:
"What are the top 10 trending datasets right now?"
Output:
imdb (Downloads: 45678, Likes: 2345)
Tags: nlp, sentiment-analysis
squad (Downloads: 34567, Likes: 1987)
Tags: nlp, question-answering
...
Input:
"List the top 3 trending spaces."
Output:
gradio/image-classifier (Likes: 890, SDK: Gradio)
Tags: demo, vision
streamlit/text-generator (Likes: 765, SDK: Streamlit)
Tags: nlp, demo
...
Search Trending Items
Input:
"Search for trending NLP models, limit to 5."
Output:
bert-base-uncased (Likes: 456)
Tags: nlp, transformer
distilbert-base-uncased (Likes: 321)
Tags: nlp, transformer
...
Input:
"Find trending datasets about computer vision."
Output:
coco (Likes: 1234)
Tags: computer-vision, object-detection
imagenet-1k (Likes: 987)
Tags: computer-vision, classification
...
Analyze Trends
Input:
"Analyze the current trends on Hugging Face."
Output:
A detailed response combining results from all trending tools, followed by an analysis (generated by the client’s AI):
Top Trending Models:
google/vit-base-patch16-224 (Downloads: 12345, Likes: 678)
Tags: vision, transformer
...
Top Trending Datasets:
imdb (Downloads: 45678, Likes: 2345)
Tags: nlp, sentiment-analysis
...
Top Trending Spaces:
gradio/image-classifier (Likes: 890, SDK: Gradio)
Tags: demo, vision
...
Summary: Vision models like ViT are trending, likely due to recent advancements in image processing. NLP datasets remain popular for text-based AI research, and Gradio spaces are gaining traction for interactive demos.
API Details
Tools
get_trending_models(limit: int = 10): Fetches trending models with downloads, likes, and tags.get_trending_datasets(limit: int = 10): Fetches trending datasets with downloads, likes, and tags.get_trending_spaces(limit: int = 10): Fetches trending spaces with likes, SDK info, and tags.search_trending(query: str, type: str = "models", limit: int = 10): Searches trending items by query and type.
Prompt
analyze_trends(): Guides the analysis of trending items with a structured prompt.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for hf-trending-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hf_trending_mcp-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for hf_trending_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hf_trending_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hf_trending_mcp-0.1.0-py3-none-any.whl |
Total release size: 10.2 kB
Release files / hf_trending_mcp-0.1.0.tar.gz
| Download URL | hf_trending_mcp-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6e79c316fd11bd1bc1eb517c5b683c70a123d1419ec83b0d39371c806b0d306
|
|
BLAKE2b-256 checksum How to use checksums |
b9b611b58aa965f1e3463ca510972fc8680ae6e8833d6a5dc714074156eb60af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / hf_trending_mcp-0.1.0-py3-none-any.whl
| Download URL | hf_trending_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7ae366c8602de83aa06ee99caf79fb9a6bf5f66c847f5c555f058b0fed83aec
|
|
BLAKE2b-256 checksum How to use checksums |
3c64a3ade8c81eddf4643f9ccfa9f49b3885c2c057b893aef480a980fad81909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for hf-trending-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.