Skip to content

Hugging Face MCP: install, tools and limits

Better Design

Direct answer

The Hugging Face MCP server connects a coding agent to the Hugging Face Hub to search and read models, datasets, Spaces, papers and documentation. It runs over the remote URL https://huggingface.co/mcp, or local stdio through npx @llmindset/hf-mcp-server, needs an optional Hugging Face sign-in, and exposes 10 tools.

A hand-drawn terminal that connects a coding agent to Hugging Face MCP, with the server's name and tool count written beside it.

What Hugging Face MCP does

The Hugging Face MCP server connects a coding agent to the Hugging Face Hub to search and read models, datasets, Spaces, papers and documentation. With sign-in it can also create repos, run Jobs and sandboxes, and call community Gradio apps on Spaces as tools.

Hugging Face maintains it. The latest release on npm is @llmindset/hf-mcp-server 0.4.34, published November 10, 2026. It is licensed under MIT.

How a coding agent uses Hugging Face MCP

The agent asks, Hugging Face MCP acts, and the result comes back into the session.

A hand-drawn three-step flow from the coding agent to Hugging Face MCP and back: Find a model for this feature and read its card, Searches the Hub and reads the repo files, The model card and its usage docs.
  1. The agent asks: Find a model for this feature and read its card
  2. Hugging Face MCP acts: Searches the Hub and reads the repo files
  3. The result comes back: The model card and its usage docs

Install Hugging Face MCP in Claude Code

terminal
claude mcp add hf-mcp-server -t http "https://huggingface.co/mcp?login"
# or with a token:
claude mcp add hf-mcp-server \
  -t http https://huggingface.co/mcp \
  -H "Authorization: Bearer <YOUR_HF_TOKEN>"

Install Hugging Face MCP in Cursor

server entry for Cursor's mcp.json
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }
}

Install Hugging Face MCP in VS Code

server entry for VS Code's mcp.json
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }
}

The 10 tools Hugging Face MCP gives your agent

Hugging Face MCP lists these names in its own documentation, read on November 12, 2026. Your agent sees each one as a tool it can call.

  • hf_whoami
  • hub_repo_search
  • hub_repo_details
  • hf_fs
  • create_repo
  • hf_jobs
  • hf_sandbox
  • hf_sandbox_exec
  • hf_sandbox_fs
  • dynamic_space

Settings worth knowing in Hugging Face MCP

?login
What it changes

Starts OAuth sign-in in the client.

Server

Hugging Face MCP

?no_image_content=true
What it changes

Removes ImageContent blocks from Gradio Space results.

Server

Hugging Face MCP

?bouquet=openai
What it changes

Exposes Hub filesystem, repo search, details and creation, dynamic Space, Jobs and sandbox tools; creation, Jobs, Space and sandbox tools need sign-in.

Server

Hugging Face MCP

Dynamic Spaces and Remove Embedded Images
What it changes

Settings page options: discover MCP Spaces at runtime, and drop embedded images.

Server

Hugging Face MCP

TRANSPORT, DISABLE_TOOLS, HF_API_TIMEOUT, MCP_STRICT_TOKEN
What it changes

Self-hosting variables; TRANSPORT is stdio or streamableHttpJson, and HF_API_TIMEOUT defaults to 12500 ms.

Server

Hugging Face MCP

Sign-in, limits and caveats for Hugging Face MCP

Sign-in: Optional. Without a token the server runs anonymously with a reduced tool set and rate limits. Sign in with OAuth through https://huggingface.co/mcp?login, or send a Hugging Face token as 'Authorization: Bearer <YOUR_HF_TOKEN>'. Locally, stdio reads DEFAULT_HF_TOKEN or HF_TOKEN.

Limits and price: The server is open source under MIT, and Hugging Face's documentation states no separate price. Anonymous use is rate limited, and no figures are published; the live server tells anonymous users to set an HF_TOKEN or create an account for higher limits.

  • Without a token the hosted server exposes only 4 tools; repo creation, Jobs, dynamic Spaces and sandboxes need authentication.
  • After adding Spaces in settings, restart or refresh the client so it picks up the new tools.
  • On self-hosted HTTP, DEFAULT_HF_TOKEN is not used as a fallback; HTTP clients must send their own Bearer token.
  • Hugging Face names Codex as a supported client but gives no Codex snippet; it points to https://huggingface.co/settings/mcp for a generated one.

Use Hugging Face MCP for interface work

hub_repo_search and hf_fs let an agent find and read the model card and usage docs for a model it is wiring into a product feature, and Gradio Space tools let it test that model before writing the integration.

Steal this workflow

Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.

Read the guide "Hugging Face MCP: install, tools and limits" at https://better-design.com/blog/huggingface-mcp and help me apply it to my project.

The Hugging Face MCP server connects a coding agent to the Hugging Face Hub to search and read models, datasets, Spaces, papers and documentation. It runs over the remote URL https://huggingface.co/mcp, or local stdio through npx @llmindset/hf-mcp-server, needs an optional Hugging Face sign-in, and exposes 10 tools.

Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.

Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.

Questions

What does Hugging Face MCP do?

The Hugging Face MCP server connects a coding agent to the Hugging Face Hub to search and read models, datasets, Spaces, papers and documentation. With sign-in it can also create repos, run Jobs and sandboxes, and call community Gradio apps on Spaces as tools.

Does Hugging Face MCP need an API key or sign-in?

Optional. Without a token the server runs anonymously with a reduced tool set and rate limits. Sign in with OAuth through https://huggingface.co/mcp?login, or send a Hugging Face token as 'Authorization: Bearer <YOUR_HF_TOKEN>'. Locally, stdio reads DEFAULT_HF_TOKEN or HF_TOKEN.

Is Hugging Face MCP free?

The server is open source under MIT, and Hugging Face's documentation states no separate price. Anonymous use is rate limited, and no figures are published; the live server tells anonymous users to set an HF_TOKEN or create an account for higher limits.

Which coding agents can use Hugging Face MCP?

Its documentation shows a setup for Claude Code, Cursor, VS Code. Any client that speaks MCP over the remote URL https://huggingface.co/mcp, or local stdio through npx @llmindset/hf-mcp-server can connect.

Where these Hugging Face MCP facts come from

Each fact on this page comes from Hugging Face MCP's own repository, documentation or package registry, read on November 12, 2026.

Add design rules next to it

Hugging Face MCP gives the agent its tools. It does not tell the agent what a good screen looks like. Better Design adds that part: a design system, interface principles and review rules that the agent calls while it builds.