Skip to content
MCP Shelf

Hugging Face MCP Server

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

View on GitHub
  • Needs your setup first
  • ★ 310 GitHub stars
  • 203 downloads a week
  • Last commit 27 Oct 2026

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.

Tools
5
Runs on
Hosted
Licence
MIT
GitHub stars
310

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

You'll need

  • A free Hugging Face account (optional for public searches)
  • A client that supports remote servers, or Node.js to run it locally
Works withClaude CodeCursorClaude DesktopVS CodeCodexWindsurfChatGPTEach has a ready-made config on the Install tab, built from the README.

Needs your setup firstIt 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

Once it is installed, ask your assistant things like:

  • 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, not the README · tested on 24 Nov 2026

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.

Hugging Face MCP Server in more detail

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)
Downloads
203 a week
Last commit
27 Oct 2026
Setup checked
24 Nov 2026
Page updated
24 Nov 2026

What's in the pod

What tools does Hugging Face MCP Server have?

We found 5 tools when we ran its package, before any sign-in or app was connected, on 24 Nov 2026. 4 only read. The rest can change things, so keep your app's "ask before each tool call" setting on for them.

How we tested it: Started from the @llmindset/hf-mcp-server package without a token, which gives the default tools for anonymous use. The hosted server at huggingface.co/mcp needs a sign-in, and the tools you switch on at huggingface.co/settings/mcp change the list.

Changes things1 tool · Can create, edit, send or delete.

ToolWhat it is for
gr1_z_image_turbo_generateAn 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.

Only reads4 tools · Looks things up and changes nothing.

ToolWhat it is for
hf_fsBrowses the Hub like a filesystem: list and read repo files and cards, trending models, collections, papers and the daily papers list.
hf_whoamiShows which account and organisations the current token belongs to.
hub_repo_detailsReads one or more repos in detail: card metadata, licence, downloads, files, Space hardware and dataset columns.
hub_repo_searchSearches models, datasets and Spaces on the Hub, sorted by downloads, likes or trending.

Tool groups

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.

Grouped and described by us. The README on GitHub lists the inputs each tool takes.

How clearly it describes its tools to your assistant

Tools with a description
5 of 5
Say if they change things
5 of 5
Context it takes, at least
~1,500 tokens

Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.

How do I install Hugging Face MCP Server?

Quick install

Pick your app and paste this in. It follows the README's own install steps below.

Where it goes: Your terminal, in the project folder

Claude Code
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>".

Codex, Windsurf, ChatGPT and more →

Install steps from the Hugging Face MCP Server README

The project's own instructions, copied from its README on GitHub on 24 Nov 2026 under its MIT licence. They are the source of truth; the ready-made configs further down are built from them. The full README is on GitHub.

Installing the MCP Server

Follow the instructions below to get started:

Install in Claude Desktop or claude.ai

Click here to add the Hugging Face connector to your account.

Alternatively, navigate to 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:

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 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 to configure your Tools and Spaces.

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

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

All commands above start the Management Web interface on http://localhost:3000/metrics. Browser visits to http://localhost:3000/ redirect to the MCP welcome page at 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

Add Hugging Face MCP Server to your app

Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.

Where it goes: Your terminal, in the project folder

Claude Code
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>".

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: huggingface/hf-mcp-server README, huggingface.co/settings/mcp.

Did this work for you?

Projects change their install steps often. If Hugging Face MCP Server did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.

New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.

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.

How do I configure Hugging Face MCP Server?

Names are exactly as the project spells them. Required ones are marked.

SettingWhat it does
https://huggingface.co/mcp?loginConfigThe hosted server with sign-in through your browser, the README's route for Claude Code, Gemini CLI, VS Code and Cursor.
Authorization: BearerConfigHeader for passing a Hugging Face access token to https://huggingface.co/mcp instead of signing in.Authorization: Bearer hf_...
huggingface.co/settings/mcpConfigYour account page for choosing which built-in tools and which Spaces the server offers.
?no_image_content=trueConfigRemoves image blocks from Gradio results, for clients that cannot show them or to save context.
HF_TOKEN or DEFAULT_HF_TOKENEnvironment variableThe token a local stdio copy uses, when you run @llmindset/hf-mcp-server yourself.
DISABLE_TOOLSEnvironment variableHides tools from a copy you run yourself, comma-separated.hub_repo_search,hf_fs

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.

Two peas, one chat

Chat with AI about Hugging Face

Opens a chat primed with Hugging Face’s README and setup docs from this page, or add it in Cursor to use its tools.

The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.

Peas in a pod

What are the alternatives to Hugging Face MCP Server?

How Hugging Face MCP Server lines up against its neighbours on the shelf. See every developer tools server.

  • Hugging Face MCP ServerThis pea

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

    Tools
    5
    Runs on
    Hosted
    Licence
    MIT
    Stars
    310
  • Desktop Commander

    A terminal, file search and surgical file edits for your assistant.

    Tools
    25
    Runs on
    Your computer
    Licence
    MIT
    Stars
    10.2K
  • Serena

    IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers.

    Tools
    3 (REPL)
    Runs on
    Your computer
    Licence
    GPL-3.0
    Stars
    30.8K
  • GitHub

    GitHub's own server for repos, issues, pull requests and Actions.

    Tools
    46
    Runs on
    Hosted or your computer
    Licence
    MIT
    Stars
    34K
  • Filesystem MCP Server

    Read, write, edit and search files, only inside the folders you name.

    Tools
    16
    Runs on
    Your computer
    Licence
    Apache-2.0 and MIT
    Stars
    92.2K
  • Git MCP Server

    Status, diffs, history, commits and branches in a local Git repository.

    Tools
    14
    Runs on
    Your computer
    Licence
    MIT
    Stars
    92.2K
Full docs on GitHubhuggingface/hf-mcp-server

Something wrong on this page? Tell us.

For bots & AI agents

Machine-readable versions of Hugging Face MCP Server and MCP Shelf. Fetch these instead of parsing this page.

This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs