Skip to main content
Glama

Hugging Face Hub MCP Server

by michaelwaves

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port3003
HF_BASE_URLNoBase URL for Hugging Face APIhttps://huggingface.co

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
hf_list_models

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.

hf_get_model_info

Get detailed information for a specific model including metadata, files, configuration, and more.

hf_get_model_tags

Gets all available model tags hosted in the Hub, organized by type (e.g., task types, libraries, languages).

hf_list_datasets

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

hf_get_dataset_info

Get detailed information for a specific dataset including metadata, files, configuration, and more.

hf_get_dataset_parquet

Get the list of auto-converted parquet files for a dataset. Can specify subset (config) and split to get specific files.

hf_get_croissant

Get the Croissant metadata for a dataset. Croissant is a high-level format for machine learning datasets.

hf_get_dataset_tags

Gets all available dataset tags hosted in the Hub, organized by type (e.g., task categories, languages, licenses).

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