Huggingface

v0.2.1
io.github.pipeworx-io/huggingface Checked 1 day ago Published 1 month ago

Hugging 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.

ParameterTypeDescription
authorstringFilter by org or user (e.g. "meta-llama")
directionstring-1 (desc, default) | 1 (asc)
fullbooleanInclude extra fields (cardData, gated, etc.)
languagestringISO language code, e.g. "fr" — matched as a Hub tag, not validated
librarystringtransformers | diffusers | sentence-transformers | ...
limitnumber1-1000 (default 20)
pipeline_tagstringtext-generation | text-classification | image-classification | translation | ...
searchstringFree-text — name / description
sortstringdownloads | likes | trendingScore | lastModified | createdAt
tagsstringComma-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.

ParameterTypeDescription
authorstring
directionstring
fullboolean
languagestringISO language code, e.g. "fr"
limitnumber
searchstring
sortstring
task_categoriesstringComma-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.

ParameterTypeDescription
authorstring
directionstring
fullboolean
limitnumber
sdkstringgradio | streamlit | docker | static
searchstring
sortstring

get_model

Detailed model info — config, tags, downloads, files at root.

ParameterTypeDescription
repo_id *string<author>/<repo> or <repo> for HF-owned
revisionstringBranch/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.

ParameterTypeDescription
repo_id *string
revisionstring

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.

ParameterTypeDescription
repo_id *string
revisionstring

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.

ParameterTypeDescription
repo_id *string
pathstringSubdirectory (default root)
revisionstringBranch/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.

ParameterTypeDescription
repo_id *string
pathstring
revisionstring