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-serverSource: 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
| Repository | huggingface/hf-mcp-server |
| GitHub stars | 326 |
| Last commit | 2026-11-29 (1 day ago) |
| Status | maintained |
| Security advisories | No published advisories found as of 2026-11-30. Details |
| Clients mentioned in README | Claude Desktop, Claude Code, Cursor, VS Code, Gemini CLI |
| Auth | OAuth or API key/token · HF_TOKEN |
| Language / License | TypeScript / 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.