Hugging Face
Access the Hugging Face Dataset Viewer API to query, explore, search, and analyze machine learning datasets from the Hugging Face Hub.
Hugging Face MCP Server
MCP server providing access to the Hugging Face Dataset Viewer API. Query datasets, explore data, search content, and analyze statistics from the Hugging Face Hub's extensive collection of machine learning datasets.
Features
- 12 MCP Tools covering all API endpoints:
get_dataset_splits- Dataset splits informationget_dataset_info- Dataset metadata and featuresget_dataset_first_rows- Preview first 100 rowsget_dataset_rows- Paginated data accesssearch_dataset- Full-text search within datasetsget_dataset_size- Dataset size informationget_dataset_statistics- Statistical analysisfilter_dataset- SQL-like data filteringcheck_dataset_validity- Dataset validationget_dataset_parquet- Parquet file informationget_dataset_opt_in_out_urls- Opt-in/out URLsget_dataset_presidio_entities- PII entity detection
Quick Start
Claude Desktop Integration
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"huggingface-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--name", "huggingface-mcp-claude",
"huggingface-mcp:latest"
]
}
}
}
Build Docker Image
make docker-build
Development
Prerequisites
- Python 3.12+
- uv
Setup
make install # Install dependencies
make test # Run tests (38 tests)
make example # Test all tools
make run # Start server directly
Docker Commands
make docker-build # Build image
make docker-run # Run container
make docker-stop # Stop container
API Coverage
Implements all GET endpoints from the Hugging Face Dataset Viewer API:
| Endpoint | Tool | Description |
|---|---|---|
/splits | get_dataset_splits | Dataset splits information |
/info | get_dataset_info | Dataset metadata and features |
/first-rows | get_dataset_first_rows | Preview first 100 rows |
/rows | get_dataset_rows | Paginated data access |
/search | search_dataset | Full-text search within datasets |
/size | get_dataset_size | Dataset size information |
/statistics | get_dataset_statistics | Statistical analysis |
/filter | filter_dataset | SQL-like data filtering |
/is-valid | check_dataset_validity | Dataset validation |
/parquet | get_dataset_parquet | Parquet file information |
/opt-in-out-urls | get_dataset_opt_in_out_urls | Opt-in/out URLs |
/presidio-entities | get_dataset_presidio_entities | PII entity detection |
Built with FastMCP following all development best practices.
Configuration
Copy the example environment file and configure as needed:
cp .env.example .env
# Edit .env with your configuration
Usage
Running the Server
make run
Running Tests
make test
Running Examples
make example
Docker
Build and Run
make docker-build
make docker-run
With Docker Compose
docker-compose up --build
Development
TODO: Add development guidelines
API Documentation
TODO: Add API documentation
Contributing
TODO: Add contributing guidelines
License
TODO: Add license information
Related Servers
Autumn MCP Server
An unofficial MCP server for the Autumn pricing API to manage customers, entitlements, invoices, and billing portal links.
Certus
Provides real-time medical and medication information using the openFDA API.
OpenAI
Query OpenAI models directly from Claude using MCP protocol
Pierre Fitness API
A multi-protocol API for accessing fitness data from providers like Strava and Fitbit, featuring AI-powered analysis and enterprise-grade management.
Honeycomb MCP
Interact with Honeycomb observability data, including datasets, SLOs, and triggers.
Auth0 MCP Server
Provides AI assistants with controlled access to the Auth0 Management API for tenant management, enforcing security and least-privilege access.
Remote MCP Server on Cloudflare
A remote MCP server deployable on Cloudflare Workers with OAuth login support.
Codehooks.io
Integrate with the Codehooks.io serverless backend platform.
Gdrive Cloudflare worker
Remote MCP server for Google Drive and Sheets running on Cloudflare Workers with full OAuth 2.0 support.
1Panel
An MCP server for 1Panel, a modern Linux server operation and maintenance panel.