MCP-Server Offiziell

Hugging Face MCP Server

Official Hugging Face MCP server: connect an LLM to the Hub and Gradio Spaces, hosted at huggingface.co/mcp or run locally.

Autor
Hugging Face
Funktioniert mit
Any MCP client, Claude Code, Cursor, Gemini CLI
Lizenz
MIT
Dokumentiert
Oct 2, 2026

Was Hugging Face MCP Server ist

The official Hugging Face MCP Server connects your LLM to the Hugging Face Hub and thousands of Gradio AI applications. It is available as a hosted endpoint at https://huggingface.co/mcp and can also be run locally over STDIO or stateless Streamable HTTP via npx or Docker. Tools and Spaces are configured at huggingface.co/settings/mcp.

Was es kann

Wie sich Hugging Face MCP Server einbinden lässt: welche Agenten es ausführen und was es ergänztLÄUFT INIhr AgentClaude CodeGemini CLICursorAny MCP client4 Hosts dokumentiertMCP SERVER · OFFIZIELLHugging Face MCP ServerDen Agenten mit Tools, Daten und…5 Installationsschritte2 BerechtigungshinweiseLizenz: MITWAS ES ERGÄNZTWas es kannExposes Hugging Face Hub API and…Connects to Gradio Spaces as toolsOffers a bouquet=openai option fo…Runs over STDIO or Streamable HTT…Agent → Erweiterung → neue Fähigkeit · aus dem offiziellen Repository oder der Dokumentation
Wo Hugging Face MCP Server läuft und was es ergänzt, laut Dokumentation
  • Exposes Hugging Face Hub API and search endpoints as MCP tools
  • Connects to Gradio Spaces as tools
  • Offers a bouquet=openai option for Hub filesystem, repo search/details/creation, dynamic Space, Jobs and sandbox tools
  • Runs over STDIO or Streamable HTTP (JSON mode) at /mcp
  • Provides a metrics web interface at /metrics when self-hosted

Wann Sie es einsetzen sollten

Gut geeignet

  • Searching Hub models, datasets and Spaces from an agent
  • Letting an agent call Gradio-based AI apps as tools
  • Self-hosting an MCP endpoint for the Hub in your own infrastructure

Nicht geeignet für

  • Setups where sending a Hugging Face token to the hosted endpoint is unacceptable (run locally instead)

So installieren Sie Hugging Face MCP Server

Sie benötigen: Hugging Face account or token for authenticated tools; Node.js (npx) or Docker for local runs

  1. Claude Code: claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login
  2. Start claude and follow the instructions to authenticate
  3. Gemini CLI: gemini mcp add -t http huggingface https://huggingface.co/mcp?login
  4. Cursor/VS Code: add url https://huggingface.co/mcp with an Authorization: Bearer header
  5. Configure tools and Spaces at https://huggingface.co/settings/mcp
Konfigurationsbeispiel (aus der offiziellen Dokumentation)
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }

Berechtigungen und Sicherheit

Worauf es zugreifen kann

  • Hugging Face Hub access via your token
  • Repository creation, Jobs, dynamic Space and sandbox tools require Hugging Face authentication

Sicherheitshinweise der Maintainer

  • HTTP clients must send a Hugging Face token in the Authorization: Bearer header; the HTTP transport does not fall back to DEFAULT_HF_TOKEN
  • MCP_STRICT_TOKEN=true rejects token-less connections with 401
  • The /metrics interface is public unless METRICS_PAGE_PASSWORD is set, and does not protect /mcp

Prüfen Sie den Quellcode, bevor Sie einem Agenten Zugriff auf Zugangsdaten oder Produktivsysteme geben. Wir dokumentieren die Angaben der Maintainer; Code prüfen wir nicht.

Einschränkungen

  • Hosted tool set depends on your settings at huggingface.co/settings/mcp
  • Skills activity dashboard is process-local and resets on restart

Tools, die es erweitert

Claude Code

Web · Desktop

Noch keine Nutzerbewertungen

Das agentische Coding-Tool von Anthropic, das Ihre Codebasis liest, Dateien bearbeitet und Befehle ausführt, im Terminal, in IDEs, in der Desktop-App oder im Browser.

Kostenlos bis: Kein kostenloser Tarif: Claude Code ist in den bezahlten Claude-Abonnements (Pro, Max, Team, Enterprise) enth…

Listed Noch nicht bewertet

Geprüft code.claude.com (öffnet die Website von Claude Code in einem neuen Tab)

Ab $20/mo US · geprüft Sep 29

Häufig gestellte Fragen

What is the Hugging Face MCP Server URL?

https://huggingface.co/mcp; add ?login to use the login flow. Quelle

How do I add the Hugging Face MCP Server to Claude Code?

Run claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login, then start claude and complete authentication. Quelle

Can I run the Hugging Face MCP Server locally?

Yes: npx @llmindset/hf-mcp-server for STDIO, npx @llmindset/hf-mcp-server-http for Streamable HTTP, or the ghcr.io/evalstate/hf-mcp-server Docker image. Quelle

How do I limit which tools the Hugging Face MCP Server exposes?

Self-hosted, set DISABLE_TOOLS to a comma-separated list of tool names; hosted, configure tools at huggingface.co/settings/mcp. Quelle

Verwandte Ratgeber

Quellen und Lücken

Von den Maintainern nicht angegeben: Release date not visible; Exact list of hosted tools not in README.

Weitere Erweiterungen zum Ansehen