Hugging Face Official Remote MCP Server

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPBearer Token4 toolsยทOnline108msยท30d uptime: 100%ยทLast checked 18m ago

Hugging Face's hosted MCP exposes the Hub โ€” models, datasets, Spaces, papers โ€” as agent tools. Authorize by attaching a Hugging Face access token.

https://huggingface.co/mcp
Provider
Hugging Face โ†—
Categories
๐Ÿ› ๏ธ Developer Tools & Git๐Ÿ” Documentation, Search & Context
ไธญๆ–‡็ฎ€ไป‹

Hugging Face ๅฎ˜ๆ–น่ฟœ็จ‹ MCP ๆœๅŠกๅ™จ๏ผˆhuggingface.co/mcp๏ผ‰ใ€‚ไฝฟ็”จ HF Access Token ๆœ็ดขๆจกๅž‹ใ€ๆ•ฐๆฎ้›†ใ€Spaces ไธŽ่ฎบๆ–‡ใ€‚

Streamable HTTPhttps://huggingface.co/mcp
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "huggingface": {
      "url": "https://huggingface.co/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

๐Ÿงฐ Tools exposed by Hugging Face MCP (4)

ToolSafetyDescriptionParameters
search_models๐ŸŸข ReadSearch Hugging Face Hub models by name, task or filter.query*: stringlimit: number
search_datasets๐ŸŸข ReadSearch Hugging Face Hub datasets.query*: stringlimit: number
search_spaces๐ŸŸข ReadSearch Hugging Face Spaces (interactive ML demos).query*: stringlimit: number
get_paper_details๐ŸŸข ReadGet details for a paper on Hugging Face Papers.arxivId*: string

๐Ÿ” OAuth 2.1 & Security

Auth type
Bearer Token
Dynamic Client Registration
โ€”
PKCE S256
โ€”
Protected resource metadata
https://huggingface.co/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– Guide

Hugging Face MCP โ€” Remote MCP Server

Hugging Face's remote MCP is also the Gradio MCP backbone โ€” it can expose thousands of Gradio Spaces as tools on top of Hub search. The endpoint lives on huggingface.co itself and authorizes with a plain HF access token sent as a Bearer header โ€” no OAuth dance required.

Endpoint & Transport

  • Endpoint URL: https://huggingface.co/mcp
  • Transport: Streamable HTTP

Authentication

Hugging Face MCP uses bearer-token authentication. Create an access token in your Hugging Face account settings, then send it as Authorization: Bearer <token>. No OAuth redirect flow is involved.

Available Tools (4)

Tool Safety Description
search_models read Search Hugging Face Hub models by name, task or filter.
search_datasets read Search Hugging Face Hub datasets.
search_spaces read Search Hugging Face Spaces (interactive ML demos).
get_paper_details read Get details for a paper on Hugging Face Papers.

Connect in 30 Seconds

Claude Code โ€” one command:

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

Cursor โ€” add to ~/.cursor/mcp.json:

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

VS Code โ€” add to .vscode/mcp.json:

{ "servers": { "huggingface": { "type": "http", "url": "https://huggingface.co/mcp" } } }

Claude Desktop & stdio clients โ€” bridge with mcp-remote:

{ "mcpServers": { "huggingface": { "command": "npx", "args": ["-y", "mcp-remote", "https://huggingface.co/mcp"] } } }

Troubleshooting

  • 401/403 responses โ€” your credential is missing or rejected. Regenerate the key/token and make sure it is sent as an Authorization: Bearer header on every request, including the initialize call.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • Send your HF access token as Authorization: Bearer <token> โ€” fine-grained tokens work.
  • Anonymous access gives a reduced tool set; a token unlocks the full Hub tools.

๐Ÿš€ How to Connect

  1. Copy the Hugging Face MCP endpoint URL
    The remote endpoint is https://huggingface.co/mcp.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http huggingface https://huggingface.co/mcp. Cursor: add "huggingface": { "url": "https://huggingface.co/mcp" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Configure your credential
    Generate an access token at https://huggingface.co/docs/hub/en/hf-mcp-server and add an Authorization: Bearer <token> header to the server's config (supported by Cursor, VS Code, Windsurf and mcp-remote --header).
  4. Verify with the online inspector
    Paste https://huggingface.co/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm Hugging Face MCP's 4 tools respond.

โ“ FAQ

What is the Hugging Face MCP remote MCP endpoint?

The primary endpoint is https://huggingface.co/mcp. It is an official first-party server operated by Hugging Face, speaking the Streamable HTTP transport.

How do I authenticate with Hugging Face MCP?

Hugging Face MCP expects a credential sent as an Authorization: Bearer header. Generate the token in your Hugging Face account and add it to your client's headers.

I'm getting a 401 Unauthorized from Hugging Face MCP โ€” what's wrong?

Your Bearer credential is missing, malformed or expired. Confirm it is attached to every request โ€” including initialize โ€” and that no proxy is stripping the Authorization header.

Which MCP clients work with Hugging Face MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http huggingface https://huggingface.co/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, and Claude Desktop via the `mcp-remote` bridge.

What tools does Hugging Face MCP expose?

4 tools are cataloged in this directory โ€” including `search_models`, `search_datasets`, `search_spaces` and more. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

Hugging Face MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/huggingface.svg)](https://remotemcp.net/servers/huggingface)
Hugging Face MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/huggingface.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fhuggingface.co%2Fmcp)

Related Servers

GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.

https://api.githubcopilot.com/mcp/
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.15 toolsOnline232ms
Linear MCPLinear Orbit Inc.

Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.

https://mcp.linear.app/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.14 toolsOnline7ms
DeepWiki MCPCognition AI (Devin)

Cognition Devin's free DeepWiki MCP. Ask questions and read AI-generated wiki documentation for any public GitHub repository โ€” no auth required.

https://mcp.deepwiki.com/mcp
๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedHTTP + SSEPublic ยท No Auth3 toolsOnline73ms

Upstash Context7's free, no-auth MCP server. Fetches up-to-date, version-specific library documentation straight into your agent's context.

https://mcp.context7.com/mcp
๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedStreamable HTTPPublic ยท No Auth2 toolsOnline310ms