Provides access to the Hugging Face Hub API for searching and retrieving information about models, datasets, parquet files, and metadata from all public repositories
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: Hugging Face 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
Usage
STDIO (for Claude Desktop)
HTTP Server
Configuration
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:
Get information about a specific model:
Search for datasets by author: