Hugging Face MCP Server
Hugging Face's hosted server for searching and reading the Hub's models, datasets, Spaces, papers and docs
What it does
This is the MCP server Hugging Face runs at https://huggingface.co/mcp; the code is published as huggingface/hf-mcp-server under the MIT licence. It lets an assistant search and read the Hugging Face Hub (models, datasets, Spaces, papers, collections and the documentation), mostly through one tool, hf_fs, with hub_repo_details for repository metadata. With a token it can also create repositories, write files, run Jobs and sandboxes on Hugging Face hardware, and call Gradio apps hosted on Spaces that you choose in your MCP settings.
With no account, the hosted endpoint answered us with three read-only tools, about 4,570 tokens of definitions. What a signed-in user gets depends on the token's permissions: a read token adds job listings, a write token adds everything. The write tools change repositories you own, and Jobs are billed per minute to your Hugging Face credit balance, so a read token or a fine-grained token without write or job permissions is the cautious choice.
The same server is on npm as @llmindset/hf-mcp-server for running locally over stdio; version 0.5.3 listed the same three tools as the hosted endpoint. Either way, searches and reads go to the Hugging Face Hub, and Space tools run code that the Space's owner controls.
Tools
Listed by starting the server ourselves on Dec 2, 2026. The grouping uses the server's own annotations.
Read-only · 3
hf_whoamihub_repo_detailshf_fs
Install
Launch command (any stdio client)
Tested Dec 2, 2026 on @llmindset/hf-mcp-server 0.5.3, Node 24.23.0, Linux arm64 container, stdio test clientWe started the local package with this command in a clean Linux container and confirmed it completes the MCP handshake and answers tools/list with three tools:
npx -y @llmindset/hf-mcp-server
It starts without a token and offers the read-only tools. To use your account, set HF_TOKEN in the client's env for this server; with a placeholder token it still listed the same three tools, so a wrong token only shows up when a tool is called. We have not yet tested it inside a specific client.
{
"mcpServers": {
"huggingface": {
"env": {
"HF_TOKEN": "hf_YOUR_TOKEN"
},
"args": [
"-y",
"@llmindset/hf-mcp-server"
],
"command": "npx"
}
}
}Remote URL (any Streamable HTTP client)
Tested Dec 2, 2026 on co.huggingface/mcp 0.5.3, HTTP test client (protocol 2025-06-18) and mcp-remote 0.17.2, no tokenThere is nothing to install. Add this URL to a client that supports remote MCP servers:
https://huggingface.co/mcp
We sent the MCP initialize and tools/list requests to this URL with a plain HTTP test client and no token; it answered with three read-only tools (hf_fs, hub_repo_details, hf_whoami). We also connected through the mcp-remote stdio bridge (npx -y mcp-remote https://huggingface.co/mcp) and got the same three. To sign in, use https://huggingface.co/mcp?login, which answers 401 until your client completes Hugging Face's OAuth sign-in, or send a token as an Authorization: Bearer header. We did not call a tool or sign in, and have not tested it inside a specific client here.
{
"mcpServers": {
"huggingface": {
"url": "https://huggingface.co/mcp",
"type": "streamable-http"
}
}
}Cursor
From the maker's docs · not run by usFrom Hugging Face's README; not run by us.
Add this to Cursor's mcp.json, or use the install link in the README, which adds the ?login URL so Cursor asks you to sign in:
"huggingface": {
"url": "https://huggingface.co/mcp",
"headers": {
"Authorization": "Bearer <YOUR_HF_TOKEN>"
}
}
Before you adopt it
6 of 6 key facts checked- Tools and what they can changeExactly what an agent can read, write or delete
- Hosted endpoint with no token: 3 tools, all marked read-only by the server: hf_fs (find and read models, datasets, Spaces, papers, docs and collections), hub_repo_details and hf_whoami. The local npm package 0.5.3 listed the same 3, with no token and with a placeholder one. A token adds tools by permission; from the repository source, not run by us: create_repo (writes), hf_fs_write, hf_jobs, hf_sandbox, hf_sandbox_exec and hf_sandbox_fs (all marked destructive), and dynamic_space for any signed-in user. The optional ?bouquet=ptc profile listed 37 tools with no token: 36 read-only, plus hf_space_invoke, which runs a Space and is not marked read-only.Checked Dec 2, 2026 · source
- Required credentials and scopesLeast-privilege setup with no first-run failure
- None for the default read-only tools: the hosted endpoint completed the handshake and listed tools with no token. The ?login URL forces sign-in and answered HTTP 401 with an OAuth challenge. A Hugging Face token sent as Authorization: Bearer unlocks tools by permission: a read token adds job reads, a write token adds everything. For a fine-grained token, creating repositories needs repo.write or repo.contribute.write on your user or organisation, writing files needs repo.content.write, and Jobs and sandboxes need job.write (job.read for job reads). Over OAuth the matching scopes are contribute-repos or manage-repos, write-repos and jobs. A wrong token gets HTTP 401 from the hosted endpoint; it does not fall back to anonymous access. The local package reads HF_TOKEN or DEFAULT_HF_TOKEN.Checked Dec 2, 2026 · source
- Tool-definition token costContext used on every request
- About 4,570 tokens for the 3 tools listed with no token, the same for the hosted endpoint and the local package, and about 26,893 for the 37 tools of the ?bouquet=ptc profile (size of the tools/list reply divided by four; an estimate, not a tokeniser count). Signed-in users get more tools, so the cost rises; we did not measure it.Checked Dec 2, 2026 · source
- Package and versionThe exact package or image you will run, and who publishes it
- Hosted: https://huggingface.co/mcp, which reported itself as "co.huggingface/mcp" 0.5.3 on Dec 2, 2026. Local: @llmindset/hf-mcp-server 0.5.3 on npm (stdio; its hf-mcp-server-http command serves Streamable HTTP), published by the maintainer account evalstate; the package's repository link redirects to huggingface/hf-mcp-server. A Docker image is at ghcr.io/evalstate/hf-mcp-server.Checked Dec 2, 2026 · source
- Where your data goesLocal only, or through the vendor's cloud; any telemetry
- Hosted: requests, and your token if you send one, go to Hugging Face, and the tools read from the Hugging Face Hub. Space tools call Gradio apps hosted on Spaces, which run code their owners control. The local package calls the Hub API from your machine. The server code can log usage events to a Hugging Face dataset when LOGGING_DATASET_ID and a logging token are set; the README does not say what the hosted service records.Checked Dec 2, 2026 · source
- Last releaseThe spec and upstream APIs change fast
- v0.5.3 · Dec 2, 2026 on GitHub. @llmindset/hf-mcp-server 0.5.3 was published to npm the same day, and the hosted endpoint reported 0.5.3.Checked Dec 2, 2026 · source
- Sign-in detailOAuth or static key, and where tokens are stored
- Three routes: no sign-in (read-only tools); OAuth, which clients start when you use https://huggingface.co/mcp?login; or a Hugging Face access token in an Authorization: Bearer header. Hugging Face's settings page at huggingface.co/settings/mcp generates client configuration once you are logged in, and is where you add Spaces and choose extra tools.Checked Dec 2, 2026 · source
- Runtime requirementsNode, Python, Docker, operating system
- Hosted: nothing to install. Local: Node.js (no minimum declared in package.json); we ran it with Node 24.23.0. A Dockerfile is provided; the image defaults to Streamable HTTP on port 3000.Checked Dec 2, 2026 · source
- Read-only modeSafe use against production data
- Without a token every tool listed in our runs was read-only. With a token, the tool set follows the token's permissions, so a read token or a fine-grained token without repo write or job permissions keeps the server to reads. If you run your own copy, DISABLE_TOOLS hides named tools.Checked Dec 2, 2026 · source
