Hugging Face Hub MCP Server
Provides access to the Hugging Face Hub API for searching and retrieving information about models, datasets, parquet files, and metadata from all public repositories
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hugging Face Hub MCP Server search for text classification models with at least 10k downloads"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hugging Face Hub MCP Server
A Model Context Protocol (MCP) server that provides access to the Hugging Face Hub API, allowing you to search and retrieve information about models, datasets, and their metadata.
Features
Models API: Search models, get detailed model info, and retrieve model tags
Datasets API: Search datasets, get dataset info, access parquet files, and Croissant metadata
Full Hub Integration: Access all public repositories and metadata from Hugging Face Hub
Related MCP server: HF MCP Server
Tools
Models
hf_list_models- List and search models with filtering optionshf_get_model_info- Get detailed information about a specific modelhf_get_model_tags- Get all available model tags
Datasets
hf_list_datasets- List and search datasets with filtering optionshf_get_dataset_info- Get detailed information about a specific datasethf_get_dataset_parquet- Get parquet file information for datasetshf_get_croissant- Get Croissant metadata for datasetshf_get_dataset_tags- Get all available dataset tags
Installation
npm install
npm run buildUsage
STDIO (for Claude Desktop)
npm run dev:stdioHTTP Server
npm run dev:shttp
# or specify port
npm start --port 3003Configuration
The server uses the Hugging Face Hub public API endpoints. No authentication is required for public repositories.
Environment variables:
HF_BASE_URL: Base URL for Hugging Face API (default: https://huggingface.co)PORT: HTTP server port (default: 3003)
Examples
Search for text classification models:
{
"name": "hf_list_models",
"arguments": {
"filter": "text-classification",
"limit": 10
}
}Get information about a specific model:
{
"name": "hf_get_model_info",
"arguments": {
"repo_id": "microsoft/DialoGPT-medium"
}
}Search for datasets by author:
{
"name": "hf_list_datasets",
"arguments": {
"author": "huggingface",
"limit": 5
}
}Available Tools
8 toolshf_get_croissantC
Get the Croissant metadata for a dataset. Croissant is a high-level format for machine learning datasets.
Inputs: repo_id (required).
hf_get_dataset_infoB
Get detailed information for a specific dataset including metadata, files, configuration, and more.
Inputs: repo_id (required), full, revision.
hf_get_dataset_parquetB
Get the list of auto-converted parquet files for a dataset. Can specify subset (config) and split to get specific files.
Inputs: repo_id (required), n, split, subset.
hf_get_dataset_tagsB
Gets all available dataset tags hosted in the Hub, organized by type (e.g., task categories, languages, licenses).
Inputs: no named parameters.
hf_get_model_infoC
Get detailed information for a specific model including metadata, files, configuration, and more.
Inputs: repo_id (required), revision.
hf_get_model_tagsB
Gets all available model tags hosted in the Hub, organized by type (e.g., task types, libraries, languages).
Inputs: no named parameters.
hf_list_datasetsB
Get information from all datasets in the Hub. Supports filtering by search terms, authors, tags, and more. Returns paginated results with dataset metadata including downloads, likes, and tags.
Inputs: author, config, direction, filter, +4 more.
hf_list_modelsA
Get information from all models in the Hub. Supports filtering by search terms, authors, tags, and more. Returns paginated results with model metadata including downloads, likes, and tags.
Inputs: author, config, direction, filter, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose with no overlap: there are separate tools for datasets vs. models, and within each category, tools for getting info, listing all, getting tags, and dataset-specific tools for Croissant metadata and parquet files. The descriptions make the boundaries explicit, preventing misselection.
All tools follow a consistent 'hf_' prefix with verb_noun pattern (e.g., hf_get_dataset_info, hf_list_models). The naming is uniform across the set, using snake_case and clear verbs like 'get', 'list', and 'get' for specific actions, making it predictable and readable.
With 8 tools, this server is well-scoped for interacting with the Hugging Face Hub. It covers core operations for datasets and models (info, listing, tags) plus dataset-specific features like Croissant and parquet files, avoiding bloat while providing essential functionality.
The tool set covers read operations comprehensively for datasets and models, including metadata, listings, tags, and file access. A minor gap is the lack of write operations (e.g., upload or modify datasets/models), but for a read-focused server, it handles the domain well with no dead ends.
Related MCP Connectors
Search the Hub, papers and Spaces; list repo files, credits and notifications in Hugging Face.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Connect to Hugging Face Hub and thousands of Gradio AI Applications
GitHub trending repos, HuggingFace trending AI models & arXiv academic paper search remote MCP API.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with the Hugging Face Dataset Viewer API, allowing users to browse, search, filter, and analyze datasets hosted on the Hugging Face Hub.831MIT
- AlicenseNot gradedqualityDmaintenanceProvides direct access to the Hugging Face Hub for searching models and datasets, fetching metadata, and running inference on text, images, and audio.MIT
- AlicenseNot gradedqualityCmaintenanceSearch and retrieve models, datasets, and spaces from Hugging Face Hub. Enables browsing trending items and getting detailed info on repos.103 npmMIT
- AlicenseBqualityCmaintenanceEnables LLMs to search and retrieve read-only information from the Hugging Face Hub about models, datasets, Spaces, papers, and collections. It also supports model comparison and paper summarization prompts.10MIT