huggingface_mcp
MCP server which provides capabilities over the HuggingFace datasets API
Documentation
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 information
- `get_dataset_info` - Dataset metadata and features
- `get_dataset_first_rows` - Preview first 100 rows
- `get_dataset_rows` - Paginated data access
- `search_dataset` - Full-text search within datasets
- `get_dataset_size` - Dataset size information
- `get_dataset_statistics` - Statistical analysis
- `filter_dataset` - SQL-like data filtering
- `check_dataset_validity` - Dataset validation
- `get_dataset_parquet` - Parquet file information
- `get_dataset_opt_in_out_urls` - Opt-in/out URLs
- `get_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-buildDevelopment
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 directlyDocker Commands
make docker-build # Build image
make docker-run # Run container
make docker-stop # Stop containerAPI 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 configurationUsage
Running the Server
make runRunning Tests
make testRunning Examples
make exampleDocker
Build and Run
make docker-build
make docker-runWith Docker Compose
docker-compose up --buildDevelopment
TODO: Add development guidelines
API Documentation
TODO: Add API documentation
Contributing
TODO: Add contributing guidelines
License
TODO: Add license information
Frequently asked questions
What is huggingface_mcp?
huggingface_mcp is MCP server which provides capabilities over the HuggingFace datasets API
How do I install huggingface_mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is huggingface_mcp open source?
Yes — it is hosted on GitHub at https://github.com/Talos-AI-Solutions/huggingface_mcp.
Related MCP tools
Fast and Accurate Code Search for Agents. Uses 99% fewer tokens than grep+read
Transparent and Efficient Financial Analysis
TradingView MCP server — real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. Stocks, crypto, forex & futures across global exchanges. Hosted or self-host.
Open source AI clip generator: turns long videos into viral 9:16 shorts with AI moment detection, face tracking, subtitles and dubbing. Self-host free with Docker (MIT), or use the cloud with GPU speed from $12/mo. MCP server and API for AI agents.
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace MCP Server & CLI Tool
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP