---
title: "Hugging Face MCP Server: Official Setup and Hub Tools"
url: "https://mcpshelf.co/servers/hugging-face"
description: "Hugging Face's official MCP server searches models, datasets and Spaces, reads repo files and runs Gradio apps from your assistant. Remote setup, tokens."
updated: "2026-11-24"
site: "MCP Shelf"
---

# Hugging Face MCP Server

> Search the Hugging Face Hub and call Gradio Spaces from your assistant.

Source: https://mcpshelf.co/servers/hugging-face  
Markdown: https://mcpshelf.co/servers/hugging-face.md  
Generated: 2026-11-24T21:04:33.993Z

## Facts

- **Name:** Hugging Face MCP Server
- **Tagline:** Search the Hugging Face Hub and call Gradio Spaces from your assistant.
- **Description:** Hugging Face MCP Server is Hugging Face's official MCP server that connects an AI assistant to the Hugging Face Hub, for searching models, datasets and Spaces, and to Gradio apps it can run as tools.
- **Repository:** https://github.com/huggingface/hf-mcp-server
- **Install:** `claude mcp add --transport http hugging-face 'https://huggingface.co/mcp?login'`
- **Server URL:** https://huggingface.co/mcp?login
- **Transport:** Streamable HTTP (remote)
- **Auth:** No required keys or settings listed
- **Tools exposed:** 5: `hf_whoami`, `hub_repo_search`, `hub_repo_details`, `hf_fs`, `gr1_z_image_turbo_generate`
- **Category:** Developer tools (https://mcpshelf.co/categories/developer-tools)
- **Stats:** 310 GitHub stars, 203 downloads a week, last commit 27 Oct 2026, 0 upvotes on MCP Shelf
- **Install check:** Needs your setup first
- **Listed:** 2026-11-24
- **Page updated:** 2026-11-24

## Full description

### What is Hugging Face MCP Server?

**Hugging Face MCP Server is Hugging Face's official MCP server that connects an AI assistant to the Hugging Face Hub, for searching models, datasets and Spaces, and to Gradio apps it can run as tools.**

This is Hugging Face's own server, hosted at huggingface.co/mcp. It lets an assistant search the Hub for models, datasets and Spaces, read a repository's details and model card, browse the files inside a repo, and run Gradio apps hosted on Spaces as tools, for things like image generation or transcription.

Sign in with your Hugging Face account, or pass an access token, and pick which tools and Spaces to switch on at huggingface.co/settings/mcp. Without a token it still answers public searches. Signed in, it acts as your account, and the optional tool sets that create repositories or run Jobs need that sign-in.

|  |  |
| --- | --- |
| Made by | Hugging Face (huggingface/hf-mcp-server) |
| GitHub | https://github.com/huggingface/hf-mcp-server |
| Licence | MIT |
| GitHub stars | 310 |
| Downloads | 203 a week |
| Last commit | 27 Oct 2026 |
| Tools | 5 |
| Runs on | Hosted |
| Install check | Needs your setup first |
| Category | [Developer tools](https://mcpshelf.co/categories/developer-tools) |
| Works with | Claude Code, Cursor, Claude Desktop, VS Code, Codex, Windsurf, ChatGPT |
| Setup checked | 24 Nov 2026 |
| Page updated | 24 Nov 2026 |

**Our check:** It needs something our Linux test machine does not have (an account, a desktop app, a Mac or a running service), so on 24 Nov 2026 we listed its tools from its package instead of running this config. The repository moved from evalstate/hf-mcp-server to huggingface/hf-mcp-server. To run it yourself, the npm package is @llmindset/hf-mcp-server, published from that repository.

#### Try asking Hugging Face MCP Server

- "Find the most downloaded open speech-to-text models on Hugging Face."
- "Show me the model card and files of the most popular small embedding model."
- "Find a dataset of product reviews in English that I can use for fine-tuning."

#### MCP Shelf take

> Hugging Face needs something our Linux test machine does not have (an account, an app or a service), so on 24 Nov 2026 we ran its package and counted 5 tools. 4 of the 5 only read; the other 1 can change things. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 1,500 tokens of context before you ask a thing. It sits 27th of 27 in its category on our shelf by GitHub stars (310, with 203 downloads a week).

— MCP Shelf tests (numbers from our own runs), tested on 24 Nov 2026

### What tools does Hugging Face MCP Server have?

We listed 5 tools on 24 Nov 2026. 4 only read; the rest can change things or run commands.

| Tool | Kind | What it is for |
| --- | --- | --- |
| `hf_whoami` | reads | Shows which account and organisations the current token belongs to. |
| `hub_repo_search` | reads | Searches models, datasets and Spaces on the Hub, sorted by downloads, likes or trending. |
| `hub_repo_details` | reads | Reads one or more repos in detail: card metadata, licence, downloads, files, Space hardware and dataset columns. |
| `hf_fs` | reads | Browses the Hub like a filesystem: list and read repo files and cards, trending models, collections, papers and the daily papers list. |
| `gr1_z_image_turbo_generate` | changes | An example Gradio Space tool: makes an image from a prompt with the Z-Image Turbo model. The Spaces you add at huggingface.co/settings/mcp appear as tools like this one. |

#### How clearly it describes its tools

5 of 5 tools have a description and 5 of 5 say whether they change things. The tool list takes at least ~1,500 tokens of context. Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

#### Tool groups

| Group | Covers |
| --- | --- |
| `Your Spaces` | Gradio apps you pick at huggingface.co/settings/mcp, each added as a tool, for image, audio, video and other tasks. |
| `?bouquet=openai` | Hub filesystem, repo search and details, repo creation, dynamic Spaces, Jobs and sandboxes. Repo creation, Jobs, dynamic Spaces and sandboxes need a sign-in. |
| `?bouquet=ptc` | 53 typed functions for programmatic tool calling: discovery, repo files, dataset rows, papers, collections, docs, Spaces, repo writes, Jobs and sandboxes. |

### How do I install Hugging Face MCP Server?

#### Install steps from the Hugging Face MCP Server README

Copied from the project's [README on GitHub](https://github.com/huggingface/hf-mcp-server#readme) on 24 Nov 2026 under its MIT licence.

##### Installing the MCP Server

Follow the instructions below to get started:

**Install in Claude Desktop or claude.ai**

Click [here](https://claude.ai/redirect/website.v1.67274164-23df-4883-8166-3c93ced276be/directory/37ed56d5-9d61-4fd4-ad00-b9134c694296) to add the Hugging Face connector to your account.

Alternatively, navigate to [https://claude.ai/settings/connectors](https://claude.ai/settings/connectors), and add "Hugging Face" from the gallery.

**Install in Claude Code**

Enter the command below to install in Claude Code:

```
claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login
```

Then start `claude` and follow the instructions to complete authentication.

```
claude mcp add hf-mcp-server \
  -t http https://huggingface.co/mcp \
  -H "Authorization: Bearer <YOUR_HF_TOKEN>"
```

**Install in Gemini CLI**

Enter the command below to install in Gemini CLI:

```
gemini mcp add -t http huggingface https://huggingface.co/mcp?login
```

Then start `gemini` and follow the instructions to complete authentication.

**Install in VSCode**

Click here to add the Hugging Face connector directly to VSCode. Alternatively, install from the gallery at [https://code.visualstudio.com/mcp](https://code.visualstudio.com/mcp):

If you prefer to configure manually or use an auth token, add the snippet below to your `mcp.json` configuration:

```
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }
```

**Install in Cursor**

Click [here](https://cursor.com/en/install-mcp?name=Hugging%20Face&config=eyJ1cmwiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvL21jcD9sb2dpbiJ9) to install the Hugging Face MCP Server directly in Cursor.

If you prefer to use configure manually or specify an Authorization Token, use the snippet below:

```
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }
```

Once installed, navigate to [https://huggingface.co/settings/mcp](https://huggingface.co/settings/mcp) to configure your Tools and Spaces.

> **Tip:** Add ?no_image_content=true to the URL to remove ImageContent blocks from Gradio Servers.

(image: hf_mcp_server_small)

###### Running Locally

You can run the MCP Server locally with either `npx` or `docker`.

```
npx @llmindset/hf-mcp-server       # Start in STDIO mode
npx @llmindset/hf-mcp-server-http  # Start in stateless Streamable HTTP JSON mode
```

To run with docker:

```
docker pull ghcr.io/evalstate/hf-mcp-server:latest
docker run --rm -p 3000:3000 ghcr.io/evalstate/hf-mcp-server:latest
```

(image: image)

All commands above start the Management Web interface on [http://localhost:3000/metrics](http://localhost:3000/metrics). Browser visits to [http://localhost:3000/](http://localhost:3000/) redirect to the MCP welcome page at [http://localhost:3000/mcp](http://localhost:3000/mcp). See [Environment Variables](#Environment Variables) for configuration options. Docker defaults to Streamable HTTP (JSON RPC) mode.

#### What you need first

- A free Hugging Face account (optional for public searches)
- A client that supports remote servers, or Node.js to run it locally

#### Claude Code

Where: Your terminal, in the project folder

```bash
claude mcp add --transport http hugging-face 'https://huggingface.co/mcp?login'
```

claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login, then start claude and follow the sign-in. With a token: claude mcp add hf-mcp-server -t http https://huggingface.co/mcp -H "Authorization: Bearer <YOUR_HF_TOKEN>".

#### Cursor

Where: ~/.cursor/mcp.json, or .cursor/mcp.json in a project

```json
{
  "mcpServers": {
    "hugging-face": {
      "url": "https://huggingface.co/mcp?login"
    }
  }
}
```

Use the one-click install link in the README, or add a huggingface entry with the URL https://huggingface.co/mcp and an Authorization: Bearer header to ~/.cursor/mcp.json.

#### Claude Desktop

Where: Customize → Connectors → add a custom connector

```
https://huggingface.co/mcp?login
```

Hugging Face is in Claude's connector directory. Add it from claude.ai/settings/connectors, which also makes it available in Claude Desktop.

#### VS Code

Where: .vscode/mcp.json in your project

```json
{
  "servers": {
    "hugging-face": {
      "type": "http",
      "url": "https://huggingface.co/mcp?login"
    }
  }
}
```

Install it from the gallery at code.visualstudio.com/mcp, or add a huggingface server with the URL and a Bearer token header to mcp.json.

#### Codex

Where: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app

```
[mcp_servers.hugging-face]
url = "https://huggingface.co/mcp?login"
```

Or run: `codex mcp add hugging-face --url 'https://huggingface.co/mcp?login'`, then `codex mcp login hugging-face` if it asks you to sign in.

#### Windsurf

Where: ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "hugging-face": {
      "serverUrl": "https://huggingface.co/mcp?login"
    }
  }
}
```

#### ChatGPT

Where: chatgpt.com/plugins → + → Add custom MCP server

```
https://huggingface.co/mcp?login
```

Paste the URL as the server address, choose OAuth if it asks you to sign in, create it as a plugin, then install it before using it in a chat. Workspace admins can block custom servers.

The ?login address signs you in through your browser. To use an access token instead, connect to https://huggingface.co/mcp with the header Authorization: Bearer and your token.

Checked against the project's own install docs on 24 Nov 2026: https://github.com/huggingface/hf-mcp-server#readme, https://huggingface.co/settings/mcp

### How do I configure Hugging Face MCP Server?

| Setting | Kind | Required | What it does |
| --- | --- | --- | --- |
| `https://huggingface.co/mcp?login` | config | no | The hosted server with sign-in through your browser, the README's route for Claude Code, Gemini CLI, VS Code and Cursor. |
| `Authorization: Bearer` | config | no | Header for passing a Hugging Face access token to https://huggingface.co/mcp instead of signing in. Example: `Authorization: Bearer hf_...` |
| `huggingface.co/settings/mcp` | config | no | Your account page for choosing which built-in tools and which Spaces the server offers. |
| `?no_image_content=true` | config | no | Removes image blocks from Gradio results, for clients that cannot show them or to save context. |
| `HF_TOKEN or DEFAULT_HF_TOKEN` | env | no | The token a local stdio copy uses, when you run @llmindset/hf-mcp-server yourself. |
| `DISABLE_TOOLS` | env | no | Hides tools from a copy you run yourself, comma-separated. Example: `hub_repo_search,hf_fs` |

### What can Hugging Face MCP Server read and change?

**It can read**

- Public models, datasets, Spaces, papers and collections on the Hub
- Your account and organisations, and anything your token can see, when signed in

**It can change**

- Runs Gradio Spaces, which can use your Hugging Face quota or ZeroGPU time
- With a write token and the right tool set: creates repositories and starts Jobs

**Safer setup:** Use a read-only access token, and turn on only the tools and Spaces you need at huggingface.co/settings/mcp.

### Good for

- Finding the right model or dataset for a task without leaving the chat
- Reading a model card or browsing a repo's files before you download anything
- Giving an assistant image, audio or other skills from Gradio Spaces

### Hugging Face MCP Server not working? Common fixes

**401 Unauthorized when connecting**
The ?login address needs you to finish signing in. Start your client and follow its sign-in prompt, or connect to https://huggingface.co/mcp with an Authorization: Bearer header and your token.

**A Space you expected is not offered**
Spaces are opt-in. Add it at huggingface.co/settings/mcp, then reconnect so the client reloads the tool list.

**Gradio results flood the chat with images**
Add ?no_image_content=true to the server URL.

**Tools that create repos or run Jobs are missing**
They need a sign-in, and are part of the larger tool sets. Connect with a token that has write access and the bouquet that includes them.

### What are the alternatives to Hugging Face MCP Server?

| Server | What it does | Tools | Runs on | Licence | Stars |
| --- | --- | --- | --- | --- | --- |
| [Hugging Face MCP Server](https://mcpshelf.co/servers/hugging-face) | Search the Hugging Face Hub and call Gradio Spaces from your assistant. | 5 | Hosted | MIT | 310 |
| [Desktop Commander](https://mcpshelf.co/servers/desktop-commander) | A terminal, file search and surgical file edits for your assistant. | 25 | Your computer | MIT | 10.2K |
| [Serena](https://mcpshelf.co/servers/serena) | IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers. | 3 (REPL) | Your computer | GPL-3.0 | 30.8K |
| [GitHub](https://mcpshelf.co/servers/github) | GitHub's own server for repos, issues, pull requests and Actions. | 46 | Hosted or your computer | MIT | 34K |
| [Filesystem MCP Server](https://mcpshelf.co/servers/filesystem) | Read, write, edit and search files, only inside the folders you name. | 16 | Your computer | Apache-2.0 and MIT | 92.2K |
| [Git MCP Server](https://mcpshelf.co/servers/git) | Status, diffs, history, commits and branches in a local Git repository. | 14 | Your computer | MIT | 92.2K |

### Hugging Face MCP Server FAQ

#### Is the Hugging Face MCP Server official?

Yes. Hugging Face runs it at huggingface.co/mcp and keeps the code in the huggingface/hf-mcp-server repository. The local npm package is @llmindset/hf-mcp-server.

#### Do I need a Hugging Face account?

Not for public searches: without a token it answers with the anonymous tool set. Signing in lets you choose your tools and Spaces, and unlocks tools that act for your account.

#### How do I add Hugging Face to Claude?

In Claude on the web or Claude Desktop, add Hugging Face from the connector gallery at claude.ai/settings/connectors. In Claude Code, run claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login and sign in.

#### What are Gradio Spaces tools?

Many Spaces on the Hub are Gradio apps that also work as MCP tools. Pick the ones you want at huggingface.co/settings/mcp and the server offers each as a tool, such as an image generator or a speech transcriber.

#### Can I run the Hugging Face MCP Server myself?

Yes. npx @llmindset/hf-mcp-server starts it over stdio, npx @llmindset/hf-mcp-server-http starts the HTTP version, and the Docker image ghcr.io/evalstate/hf-mcp-server works too. Give it a token with HF_TOKEN.

#### Does using Spaces cost anything?

The server is free. Running a Space uses that Space's hardware, and Spaces on ZeroGPU draw on your account's GPU quota, which is larger on a paid plan.

#### How do I add the Hugging Face MCP Server to Cursor?

Use the install link in the project's README, or add an entry named huggingface to ~/.cursor/mcp.json with the URL https://huggingface.co/mcp and an Authorization header set to Bearer and your token.

#### Can I use the Hugging Face MCP Server in VS Code?

Yes, with GitHub Copilot in Agent mode. Install it from the VS Code MCP gallery, or add a huggingface server with the URL https://huggingface.co/mcp and a Bearer token header to mcp.json.

#### Does the Hugging Face MCP Server work with Codex?

Yes. Run codex mcp add huggingface --url https://huggingface.co/mcp, or add an [mcp_servers.huggingface] table with that URL to ~/.codex/config.toml, with your token as the bearer token.

Full docs on GitHub: https://github.com/huggingface/hf-mcp-server

## Notes for agents

Fetch these instead of parsing the HTML page:

- llms.txt: https://mcpshelf.co/llms.txt
- llms-full.txt: https://mcpshelf.co/llms-full.txt
- ai.txt: https://mcpshelf.co/ai.txt
- Full catalog (.md): https://mcpshelf.co/catalog.md
- API spec: https://mcpshelf.co/openapi.json
- MCP server: https://mcpshelf.co/mcp
- MCP manifest: https://mcpshelf.co/.well-known/mcp.json
- Developer docs: https://mcpshelf.co/developers

MCP endpoint (Streamable HTTP, no key): https://mcpshelf.co/mcp. REST API: https://mcpshelf.co/api/v1.

