Hugging Face MCP Server logo

Hugging Face MCP Server

Connects AI assistants to Hugging Face Hub search, files, datasets, papers, Jobs, sandboxes, and Gradio Spaces.

Install Hugging Face MCP Server

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://huggingface.co/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Hosted endpointLive · TodayLive Remote EndpointOur automated health check connected to this remote MCP endpoint successfully.Last checked 11/11/2026, 12:00:31 AM

Clients with native remote MCP support can connect directly to this URL.

Remote endpoint
https://huggingface.co/mcp

Overview

Hugging Face MCP Server connects MCP-compatible assistants to the Hugging Face Hub and MCP-enabled Gradio Spaces. It provides tools for searching models, datasets, Spaces, papers, and documentation, inspecting repositories, reading Hub files, and reviewing dataset structure or previews. The hosted endpoint is available at huggingface.co/mcp, while local deployments support stdio and stateless Streamable HTTP JSON. Use it when an agent needs to discover Hugging Face resources, inspect their contents, run Hugging Face Jobs or sandboxes, or call compatible Gradio applications.

Use cases

  • Search Hugging Face models, datasets, and Spaces
  • Inspect dataset schemas, splits, and preview rows
  • Read model cards, documentation, and paper text
  • Discover and inspect files through hf:// URIs
  • Run authenticated Jobs, sandboxes, and MCP-enabled Spaces

Key features

  • Hub resource search with sorting and tag filters
  • Repository metadata and dataset inspection
  • Hugging Face filesystem operations
  • Paper and documentation access
  • Gradio Space, Jobs, and sandbox support
  • stdio and Streamable HTTP JSON transports

Tools4

What Hugging Face MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~2.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

What it can do

From the 4 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 4

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars314Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.

How Hugging Face MCP Server works

What Hugging Face MCP Server does

Hugging Face MCP Server gives MCP clients access to Hugging Face Hub resources and selected Hugging Face execution features. It can search models, datasets, Spaces, collections, papers, daily papers, and documentation; inspect repository metadata; read files from canonical hf:// locations; and interact with MCP-enabled Gradio Spaces.

The server is useful for research and data workflows where an assistant needs to compare Hub resources, inspect model or dataset cards, identify dataset schemas, retrieve paper text, or locate files without switching between separate Hugging Face interfaces. Authenticated configurations can also expose Jobs, sandboxes, and dynamic Space tools.

How it works

The public service is available at https://huggingface.co/mcp. Clients can authenticate through the hosted sign-in flow or send a Hugging Face token in an Authorization: Bearer header. Tool and Space exposure can be configured from Hugging Face settings, and the bouquet or mix query parameters can select tool groups for a request.

Local execution supports two transports:

  • stdio, using stdin and stdout directly
  • Stateless Streamable HTTP JSON, served at /mcp

The HTTP deployment also exposes a server card at /mcp/server-card and a management interface at /metrics. Local HTTP services use port 3000 by default. The public endpoint can include image content from Gradio results; add ?no_image_content=true to disable those blocks.

Setup and configuration

For a hosted connection, add https://huggingface.co/mcp?login through a supported client’s MCP installation flow, then complete authentication. A token-based configuration can instead point to https://huggingface.co/mcp and set the Authorization header.

Local installations can start the stdio package with npx @llmindset/hf-mcp-server or the HTTP package with npx @llmindset/hf-mcp-server-http. Docker images are available from ghcr.io/evalstate/hf-mcp-server:latest; the container defaults to Streamable HTTP JSON. Set TRANSPORT=stdio for a stdio container and provide a token through DEFAULT_HF_TOKEN or, for stdio, HF_TOKEN.

Supported configuration variables include TRANSPORT, DEFAULT_HF_TOKEN, HF_TOKEN, MCP_ALLOWED_HOSTS, HF_API_TIMEOUT, USER_CONFIG_API, METRICS_PAGE_PASSWORD, and LOG_SKILL_EVENTS. MCP_ALLOWED_HOSTS accepts comma-separated hostnames or leading wildcard entries. HF_API_TIMEOUT controls Hugging Face API request timeouts.

Tools and capabilities

  • hf_whoami reports the authenticated account, visible organization memberships, and credential access details without returning credential values.
  • hub_repo_search searches models, datasets, and Spaces using shared query and sorting options, including downloads, likes, and trending signals.
  • hub_repo_details returns repository cards, licenses, files, downloads, Space status and hardware, plus dataset configurations, splits, columns, and preview rows.
  • hf_fs performs Hub filesystem operations such as ls, cat, attach, stat, find, and search against hf:// URIs.

For datasets, dataset_structure should be used to discover configurations, splits, sizes, and schema before requesting dataset_preview. For papers, hf://papers/ID/paper.md provides paper text and metadata.json provides metadata. Filesystem search discovers resources; it is not a repository-content search, so use find for file discovery and cat for a known text file.

Limitations and notes

Filesystem operations require canonical hf:// paths and have different behavior depending on whether the target is a resource root, repository directory, paper, or document. The --kind mcp filter applies only to Spaces. Repository creation, Jobs, dynamic Spaces, and sandbox tools require Hugging Face authentication. The lightweight metrics password gate is intended for basic access control, not sensitive-data protection.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hugging Face MCP Server

Hugging Face MCP Server is an MCP server that connects AI assistants to the Hugging Face Hub and MCP-enabled Gradio Spaces. Its main tools search models, datasets, and Spaces, inspect repository and dataset details, report authentication context, and read Hub files, papers, and documentation through hf:// paths.

Install it through a client’s MCP flow using https://huggingface.co/mcp?login, or run the local packages with `npx @llmindset/hf-mcp-server` for stdio or `npx @llmindset/hf-mcp-server-http` for Streamable HTTP JSON. Docker users can run the image from `ghcr.io/evalstate/hf-mcp-server:latest`.

Yes, Hugging Face MCP Server works with Cursor. Use the provided Cursor installation link, or configure an MCP connection to `https://huggingface.co/mcp` and add an Authorization Bearer token when using token-based authentication.

Use `hub_repo_details` with the dataset repository, then request `dataset_structure` before `dataset_preview`. The structure operation identifies available configurations, splits, sizes, and columns; preview requests should include a known configuration and split unless the dataset has only one of each.

It supports stdio and stateless Streamable HTTP JSON. Stdio uses stdin and stdout directly, while the HTTP transport serves MCP at `/mcp`; local deployments start on port 3000 by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHugging Face MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hugging-face-mcp-server?style=directory)](https://allmcps.com/mcp/hugging-face-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/hugging-face-mcp-server"><img src="https://allmcps.com/api/badge/hugging-face-mcp-server?style=directory" alt="Hugging Face MCP Server on AllMCPs" /></a>