Skip to main content
Glama

Hugging Face Hub MCP Server

by michaelwaves

hf_list_models

Search and retrieve metadata for machine learning models on Hugging Face Hub. Filter by search terms, authors, tags, and sort by downloads, likes, or other properties for precise results.

Instructions

Get information from all models in the Hub. Supports filtering by search terms, authors, tags, and more. Returns paginated results with model metadata including downloads, likes, and tags.

Input Schema

NameRequiredDescriptionDefault
authorNoFilter models by author or organization (e.g., 'huggingface', 'microsoft')
configNoWhether to also fetch the repo config
directionNoSort direction: '-1' for descending, anything else for ascending
filterNoFilter based on tags (e.g., 'text-classification', 'spacy')
fullNoWhether to fetch most model data including all tags and files
limitNoLimit the number of models fetched
searchNoFilter based on substrings for repos and their usernames (e.g., 'resnet', 'microsoft')
sortNoProperty to use when sorting (e.g., 'downloads', 'author')

Input Schema (JSON Schema)

{ "properties": { "author": { "description": "Filter models by author or organization (e.g., 'huggingface', 'microsoft')", "type": "string" }, "config": { "description": "Whether to also fetch the repo config", "type": "boolean" }, "direction": { "description": "Sort direction: '-1' for descending, anything else for ascending", "type": "string" }, "filter": { "description": "Filter based on tags (e.g., 'text-classification', 'spacy')", "type": "string" }, "full": { "description": "Whether to fetch most model data including all tags and files", "type": "boolean" }, "limit": { "description": "Limit the number of models fetched", "type": "number" }, "search": { "description": "Filter based on substrings for repos and their usernames (e.g., 'resnet', 'microsoft')", "type": "string" }, "sort": { "description": "Property to use when sorting (e.g., 'downloads', 'author')", "type": "string" } }, "required": [], "type": "object" }

Other Tools from Hugging Face Hub MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/michaelwaves/hf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server