Home / Directory / Hugging Face / hub_repo_search

Hub repo search

An MCP tool from the Hugging Face server, run by Hugging Face.

Search and list Hugging Face models, datasets and Spaces (sort by downloads, likes, trending) with a shared query interface. You can target models, datasets, spaces, or aggregate across multiple repo types in one call. Include links to repositories in your response.

Name on the gateway: huggingface__hub_repo_search.

Parameters

NameTypeDescription
querystringSearch term. Leave blank and specify sort + limit to browse trending or recent repositories.
repo_typesarrayRepository types to search. Defaults to ["model", "dataset"]. space uses keyword search via /api/spaces.
authorstringOrganization or user namespace to filter by (e.g. 'google', 'meta-llama', 'huggingface').
filtersarrayOptional hub filter tags. Applied to each selected repo type (e.g. ["text-generation"], ["language:en"], ["mcp-server"]).
sorttrendingScore | downloads | likes | createdAt | lastModifiedSort order (descending): trendingScore, downloads, likes, createdAt, lastModified
limitnumberMaximum number of results to return per selected repo type

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "huggingface__hub_repo_search",
  "arguments": {}
}

The first call connects Hugging Face to your account automatically; nothing to set up. About this server.

Try asking

Use the hub repo search tool with query set to ….

More from Hugging Face