Hugging Face Hub MCP Server
Enables access to the Hugging Face Hub API to search and retrieve information about machine learning models, datasets, and their metadata. Provides comprehensive tools for exploring the Hugging Face ecosystem including model details, dataset information, and parquet file access.
README
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
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 build
Usage
STDIO (for Claude Desktop)
npm run dev:stdio
HTTP Server
npm run dev:shttp
# or specify port
npm start --port 3003
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:
{
"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
}
}
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.