Hugging Face Hub

liveAI/MLResearch

Largest open ML hub — search and inspect models, datasets, Spaces. Public reads keyless.

10tools
0msauth
free tier50 calls/day

Tools

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.

Parameters
NameTypeDescription
searchoptstring—
authoroptstring—
libraryoptstring—
languageoptstring—
pipeline_tagoptstring—
tagsoptstring—
sortoptstring—
directionoptstring—
limitoptnumber—
fulloptboolean—
▶Try it
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.

Parameters
NameTypeDescription
searchoptstring—
authoroptstring—
languageoptstring—
task_categoriesoptstring—
sortoptstring—
directionoptstring—
limitoptnumber—
fulloptboolean—
▶Try it
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.

Parameters
NameTypeDescription
searchoptstring—
authoroptstring—
sdkoptstring—
sortoptstring—
directionoptstring—
limitoptnumber—
fulloptboolean—
▶Try it
get_modelrequired: repo_id

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

Parameters
NameTypeDescription
repo_idreqstring—
revisionoptstring—
▶Try it
get_datasetrequired: repo_id

Detailed Hugging Face dataset metadata by repo_id (e.g. "squad") and optional revision; returns card data, tags, downloads, task categories, and file list.

Parameters
NameTypeDescription
repo_idreqstring—
revisionoptstring—
▶Try it
get_spacerequired: repo_id

Detailed Hugging Face Space metadata by repo_id (e.g. "stabilityai/stable-diffusion") and optional revision; returns sdk, runtime status, likes, and linked models.

Parameters
NameTypeDescription
repo_idreqstring—
revisionoptstring—
▶Try it
list_model_filesrequired: repo_id

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

Parameters
NameTypeDescription
repo_idreqstring—
revisionoptstring—
pathoptstring—
▶Try it
list_dataset_filesrequired: repo_id

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.

Parameters
NameTypeDescription
repo_idreqstring—
revisionoptstring—
pathoptstring—
▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/huggingface/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/huggingface/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_models","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_models", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("largest open ml hub — search and inspect models, datasets, spaces");