Skip to main content
Glama
Hugging Face Models Hub MCP

Hugging Face Models Hub MCP

README.md
# huggingface-models-hub-mcp

Zero-key Hugging Face Hub AI model and dataset catalog over Model Context Protocol (MCP). ML engineers, AI governance teams, and supply-chain auditors can search public Hugging Face models and datasets, verify open-weight licenses, check downloads and likes, inspect gated flags, and list top models by pipeline task without an API key or sign-up. It connects over Streamable HTTP right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.

```text
https://huggingface-models-hub-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `search_hf_models` | Search Hugging Face models by keyword, pipeline task, library, or author, sorted by downloads, likes, or trending score |
| `get_hf_model_details` | Retrieve model metadata including license, downloads, likes, gated status, tags, and sample repository files |
| `search_hf_datasets` | Search Hugging Face datasets by keyword or author with downloads, likes, license tags, and descriptions |
| `get_hf_dataset_details` | Retrieve detailed metadata for a Hugging Face dataset repository |
| `list_trending_models_by_task` | List top-downloaded or top-liked models for a specific pipeline task such as `text-generation` or `feature-extraction` |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "huggingface-models-hub": {
      "url": "https://huggingface-models-hub-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `https://huggingface.co/api/models` or `/api/datasets` with a clear `User-Agent` header (`mcpstamp-huggingface-hub/1.0`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't stay cached. All five tools declare read-only, non-destructive, idempotent, open-world annotations.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.huggingface-models-hub-mcp) with hosted commercial servers and priority endpoints.