← Back to directory
H

Hf MCP Server

Official
Connect your LLM to the Hugging Face Hub and thousands of Gradio AI Applications.
GitHub source repository ↗
★ 281 Stars Category · Dev Tools Very popular Source revision 5b27e8769e8b
57FMRS · C
Reliability
10/20
Security and permissions
11/20
Maintenance
10/20
Documentation
12/20
Setup experience
14/20

Official Hugging Face MCP server, feature-rich, supports multiple clients and transports, suitable for integrating Hugging Face ecosystem.

Read the FMRS scoring method →

The official Hugging Face MCP Server provides MCP implementations of Hub API and Search endpoints, along with an MCP server and web application for deploying endpoints. It supports STDIO and stateless Streamable HTTP JSON transports, with tool selection configurable per request via user configuration API and query parameters.

Tools

The tool list has not been reviewed yet.

Setup

  1. For Claude Desktop or claude.ai, click the link in the README or add 'Hugging Face' from the connectors gallery.
  2. For Claude Code, run: claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login (or use a token).
  3. For Gemini CLI, run: gemini mcp add -t http huggingface https://huggingface.co/mcp?login.
  4. For VSCode, click the link in README or install from the MCP gallery; alternatively configure manually in mcp.json.
  5. For Cursor, click the install link in README or configure manually.
  6. You can also run locally via npx or Docker: npx @llmindset/hf-mcp-server or docker run --rm -p 3000:3000 ghcr.io/evalstate/hf-mcp-server:latest.

Fit and risk

Best for

  • Developers wanting to integrate Hugging Face ecosystem into LLM tools
  • AI application builders needing access to models, datasets, and Gradio apps

Not for

  • Users not using Hugging Face services
  • Scenarios requiring long-lived connections or stateful MCP servers (STDIO does not expose skills)

Required permissions

  • Requires a Hugging Face token (HF_TOKEN) for authentication
  • HTTP transport requires Authorization: Bearer header
  • May access Hugging Face API and Gradio apps

Risks and side effects

  • User-supplied tokens may be misused
  • Proxy tools or external URLs may introduce security risks
  • Local loopback addresses are allowed by default; external access requires allowlist

Troubleshooting

  1. Check environment variables such as TRANSPORT and DEFAULT_HF_TOKEN
  2. Ensure network connectivity to Hugging Face services
  3. Inspect the management dashboard on port 3000 for status and metrics
  4. For HTTP requests, ensure the Authorization header contains a valid token
  5. If tool list is empty, check DISABLE_TOOLS or user configuration

Use cases

Interact with the Hugging Face Hub, e.g., search models, datasets, Spaces
Call AI functionalities through Gradio apps
Build AI workflows in MCP-enabled clients

Supported clients

Claude DesktopFull support
Claude CodeFull support
Gemini CLIFull support
VSCodeFull support
CursorFull support