Servers › AI & ML › Hugging Face

● MaintainedAI & ML

Hugging Face MCP Server

Hugging Face's official MCP server. It connects your assistant to the Hugging Face Hub (repository search and details for models, datasets and Spaces) and to Gradio apps on Spaces. Use the hosted server at https://huggingface.co/mcp: add ?login to sign in with OAuth, or send a Hugging Face token as a Bearer header. Then choose tools and Spaces at huggingface.co/settings/mcp. It also runs locally with npx @llmindset/hf-mcp-server (stdio; reads HF_TOKEN). Version 0.5.1 (Nov 27, 2026) rejects '..' path segments in hf_fs paths, returns a proper JSON-RPC parse error for malformed requests, and fixes Hub link pagination and job log streaming.

Install

npx @llmindset/hf-mcp-server

Source: official setup docs

Remote server (hosted)

Point your client at this URL. Depending on the provider, you sign in with OAuth or send an API key header (see the source docs).

https://huggingface.co/mcp
{
  "mcpServers": {
    "huggingface": {
      "url": "https://huggingface.co/mcp"
    }
  }
}

Example for Cursor mcp.json. Other apps use slightly different fields; see the setup guide for your app.

Claude Code: claude mcp add --transport http huggingface https://huggingface.co/mcp

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "huggingface": {
      "command": "npx",
      "args": [
        "@llmindset/hf-mcp-server"
      ],
      "env": {
        "HF_TOKEN": "<your-value>"
      }
    }
  }
}

The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).

At a glance

Repositoryhuggingface/hf-mcp-server
GitHub stars326
Last commit2026-11-29 (1 day ago)
Statusmaintained
Security advisoriesNo published advisories found as of 2026-11-30. Details
Clients mentioned in READMEClaude Desktop, Claude Code, Cursor, VS Code, Gemini CLI
AuthOAuth or API key/token · HF_TOKEN
Language / LicenseTypeScript / MIT

Security advisories

No published advisories found as of 2026-11-30.

Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @llmindset/hf-mcp-server (npm). No advisory doesn't prove a server is safe. How to stay updated.

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.