Huggingface
v0.2.1Hugging Face Hub MCP — models, datasets, spaces
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_models
Search Hugging Face Hub models with filters for author, library (transformers/diffusers/…), language, pipeline_tag (text-generation/…), and tags; sort by downloads, likes, or trendingScore.
| Parameter | Type | Description |
|---|---|---|
author | string | Filter by org or user (e.g. "meta-llama") |
direction | string | -1 (desc, default) | 1 (asc) |
full | boolean | Include extra fields (cardData, gated, etc.) |
language | string | ISO language code, e.g. "fr" — matched as a Hub tag, not validated |
library | string | transformers | diffusers | sentence-transformers | ... |
limit | number | 1-1000 (default 20) |
pipeline_tag | string | text-generation | text-classification | image-classification | translation | ... |
search | string | Free-text — name / description |
sort | string | downloads | likes | trendingScore | lastModified | createdAt |
tags | string | Comma-separated tags |
search_datasets
Search Hugging Face Hub datasets with filters for author, language, and task_categories; sort by downloads, likes, or lastModified; returns dataset id, downloads, likes, and tags.
| Parameter | Type | Description |
|---|---|---|
author | string | |
direction | string | |
full | boolean | |
language | string | ISO language code, e.g. "fr" |
limit | number | |
search | string | |
sort | string | |
task_categories | string | Comma-separated task categories, e.g. "question-answering" |
search_spaces
Search Hugging Face Spaces (demo apps) with filters for author and SDK (gradio/streamlit/docker/static); returns space id, sdk, runtime status, and likes.
| Parameter | Type | Description |
|---|---|---|
author | string | |
direction | string | |
full | boolean | |
limit | number | |
sdk | string | gradio | streamlit | docker | static |
search | string | |
sort | string |
get_model
Detailed model info — config, tags, downloads, files at root.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | <author>/<repo> or <repo> for HF-owned |
revision | string | Branch/commit/tag (default main) |
get_dataset
Detailed Hugging Face dataset metadata by repo_id (e.g. "squad") and optional revision; returns card data, tags, downloads, task categories, and file list.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | |
revision | string |
get_space
Detailed Hugging Face Space metadata by repo_id (e.g. "stabilityai/stable-diffusion") and optional revision; returns sdk, runtime status, likes, and linked models.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | |
revision | string |
list_model_files
Hugging Face Hub API — list the files in a model repository at a given revision (branch, tag or commit; main by default) and optional subdirectory path. Returns each entry's path, type, byte size and blob SHA, including LFS details for weight shards. Answers which weight, config and tokenizer files ship in a Hugging Face model repo and how large they are.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | |
path | string | Subdirectory (default root) |
revision | string | Branch/commit/tag (default main) |
list_dataset_files
List files in a Hugging Face dataset repository by repo_id and optional revision/subdirectory path; returns filename, size, and blob SHA for each file.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | |
path | string | |
revision | string |
trending_models
Currently-trending models on the Hub.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100 (default 20) |
trending_datasets
Currently-trending datasets.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100 (default 20) |