Skip to main content
Glama

Hugging Face Hub MCP Server

by michaelwaves

Hugging Face Hub MCP Server

A Model Context Protocol (MCP) server that provides access to the Hugging Face Hub API, allowing you to search and retrieve information about models, datasets, and their metadata.

Features

  • Models API: Search models, get detailed model info, and retrieve model tags
  • Datasets API: Search datasets, get dataset info, access parquet files, and Croissant metadata
  • Full Hub Integration: Access all public repositories and metadata from Hugging Face Hub

Tools

Models

  • hf_list_models - List and search models with filtering options
  • hf_get_model_info - Get detailed information about a specific model
  • hf_get_model_tags - Get all available model tags

Datasets

  • hf_list_datasets - List and search datasets with filtering options
  • hf_get_dataset_info - Get detailed information about a specific dataset
  • hf_get_dataset_parquet - Get parquet file information for datasets
  • hf_get_croissant - Get Croissant metadata for datasets
  • hf_get_dataset_tags - Get all available dataset tags

Installation

npm install npm run build

Usage

STDIO (for Claude Desktop)

npm run dev:stdio

HTTP Server

npm run dev:shttp # or specify port npm start --port 3003

Configuration

The server uses the Hugging Face Hub public API endpoints. No authentication is required for public repositories.

Environment variables:

  • HF_BASE_URL: Base URL for Hugging Face API (default: https://huggingface.co)
  • PORT: HTTP server port (default: 3003)

Examples

Search for text classification models:

{ "name": "hf_list_models", "arguments": { "filter": "text-classification", "limit": 10 } }

Get information about a specific model:

{ "name": "hf_get_model_info", "arguments": { "repo_id": "microsoft/DialoGPT-medium" } }

Search for datasets by author:

{ "name": "hf_list_datasets", "arguments": { "author": "huggingface", "limit": 5 } }
Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables access to the Hugging Face Hub API to search and retrieve information about machine learning models, datasets, and their metadata. Provides comprehensive tools for exploring the Hugging Face ecosystem including model details, dataset information, and parquet file access.

  1. Features
    1. Tools
      1. Models
      2. Datasets
    2. Installation
      1. Usage
        1. STDIO (for Claude Desktop)
        2. HTTP Server
      2. Configuration
        1. Examples

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Enables interaction with the Hugging Face Dataset Viewer API, allowing users to browse, search, filter, and analyze datasets hosted on the Hugging Face Hub.
            Last updated -
            8
            27
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides Claude and other LLMs with read-only access to Hugging Face Hub APIs, enabling interaction with models, datasets, spaces, papers, and collections through natural language.
            Last updated -
            10
            57
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            An MCP server that tracks trending AI models, datasets, and spaces on Hugging Face.
            Last updated -
            2
            MIT License
          • -
            security
            A
            license
            -
            quality
            An unofficial MCP server that provides semantic search capabilities for Hugging Face models and datasets, enabling Claude and other MCP-compatible clients to search, discover, and explore the Hugging Face ecosystem using natural language queries.
            Last updated -
            16
            MIT License
            • Apple

          View all related MCP servers

          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