Servidor MCP Oficial

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
Funciona com
Any MCP client, Claude Code, Cursor, Gemini CLI
Licença
MIT
Documentado
Oct 2, 2026

O que é Hugging Face MCP Server

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.

O que ela faz

Como o Hugging Face MCP Server se integra: quais agentes o executam e o que ele acrescentaEXECUTA EMSeu agenteClaude CodeGemini CLICursorAny MCP client4 hosts documentadosMCP SERVER · OFICIALHugging Face MCP ServerConecte o agente a ferramentas, d…5 etapas de instalação2 notas de permissãolicença: MITO QUE ELA ACRESCENTAO que ela fazExposes Hugging Face Hub API and…Connects to Gradio Spaces as toolsOffers a bouquet=openai option fo…Runs over STDIO or Streamable HTT…agente → extensão → nova capacidade · do repositório ou da documentação oficial
Onde Hugging Face MCP Server roda e o que acrescenta, segundo a documentação
  • 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

Quando usar

Boa adequação

  • 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

Não indicado para

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

Como instalar o Hugging Face MCP Server

Você precisa de: 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
Exemplo de configuração (da documentação oficial)
"huggingface": {
    "url": "https://huggingface.co/mcp",
    "headers": {
        "Authorization": "Bearer <YOUR_HF_TOKEN>"
    }

Permissões e segurança

A que ela tem acesso

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

Notas de segurança dos mantenedores

  • 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

Revise a fonte antes de conceder ao agente acesso a credenciais ou sistemas de produção. Documentamos o que os mantenedores informam; não auditamos o código.

Limitações

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

Ferramentas que ela estende

Claude Code

Web · Desktop

Ainda sem avaliações de usuários

Ferramenta de programação agêntica da Anthropic que lê sua base de código, edita arquivos e executa comandos pelo terminal, por IDEs, pelo app desktop ou pelo navegador.

O plano gratuito termina em: Não há plano gratuito: o Claude Code está incluído nas assinaturas pagas do Claude (Pro, Max, Team, Enterpris…

Listed Ainda não avaliada

Verificado code.claude.com (abre o site de Claude Code em uma nova aba)

A partir de $20/mo EUA · verificado Sep 29

Gemini CLI

Desktop

Ainda sem avaliações de usuários

Agente de IA de terminal de código aberto do Google que leva o Gemini à linha de comando; o site informa que usuários sem plano pago e do Google One foram movidos para o Antigravity CLI.

O plano gratuito termina em: Verify current availability

Listed Ainda não avaliada

Verificado geminicli.com (abre o site de Gemini CLI em uma nova aba)

Preços Preço nos EUA não confirmado

Perguntas frequentes

What is the Hugging Face MCP Server URL?

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

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. fonte

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. fonte

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. fonte

Guias relacionados

Fontes e lacunas

Não informado pelos mantenedores: Release date not visible; Exact list of hosted tools not in README.

Mais extensões para conhecer