Hugging Face
https://huggingface.co/mcp
Lets an agent search, inspect, and browse Hugging Face Hub models, datasets, Spaces, papers, and docs.
91.0/100
#1 of 32 · #1 in Search & research
Fix it with your coding agent
Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.
Improve the MCP server at https://huggingface.co/mcp so AI agents can use it better. It scored 91/100 (A) on the Agnost MCP Leaderboard.
Top fixes:
1. Trim hf_fs description under 2 KB and document its single parameter (path/command syntax, examples like models/org/name, papers/daily), since it is the recommended starting tool.
2. Clarify when to use hf_fs vs hub_repo_search vs hub_repo_details; the server instructions say start with hf_fs, but the tool descriptions overlap and do not say which one to pick for search or for per-repo metadata.
3. Add outputSchemas to hub_repo_search and hub_repo_details, mark required params on hub_repo_search, and document the sort values and repo_type values.
Per-tool fixes:
- hf_fs: Shorten the title to 'Hugging Face Hub Filesystem'. Lead with one line: 'Read-only hf:// filesystem: ls/find/stat/cat/attach/search across repos, papers, docs, collections.' Keep the grammar, and move the link-mapping and edge-case notes into hf://README.md. Very long, so it costs a lot of tokens; the grammar, link mapping and edge cases could move to hf://README.md The title is a marketing-style sentence instead of a short name Overlaps with hub_repo_search and hub_repo_details without saying when to prefer each Description is over 2 KB — Claude Code truncates tool metadata at 2 KB 1 of 1 parameter(s) have no description
- hub_repo_search: Search Hugging Face models, datasets and Spaces by keyword, author, tags, sorted by trendingScore/downloads/likes/date; returns repo ids with stats and URLs. Prefer this for structured repo discovery; use hf_fs for papers, docs, collections or file contents. Overlaps heavily with hf_fs search/ls trending, and nothing says when to prefer this tool 'Include links to repositories in your response' is response-formatting guidance, not a description of the tool Return fields are not described (ids, downloads, likes?) No outputSchema — agents can't tell what the tool returns No `required` list — agents must guess which params are mandatory
- hf_whoami: Return the authenticated Hugging Face username, organization memberships, and token scopes/permissions (never the token value). Call it to check who is logged in or whether private/gated repos are accessible. Takes no arguments. Doesn't say when to call it (e.g., before private repo access or to check token scopes) 'credential access details' is vague about what fields are returned
- hub_repo_details: Set the limit schema to minimum 1 and maximum 100. Add: 'Use this for structured metadata and dataset rows; use hf_fs to read raw files such as README.md.' The limit schema allows negative values, while the description says it is clamped to 1-100 Doesn't distinguish itself from hf_fs cat/stat for reading model cards and files No outputSchema — agents can't tell what the tool returns
Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.Score breakdown
Weighted by what breaks agents in 100M+ real MCP calls.
Error quality
6 bad-input tests · 5 clear errors
88/100 · 20 pts
↳ Clear errors that name the fix get ~3× more successful retries
Task success across agents
opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.0 calls/task
100/100 · 15 pts
↳ The same tool can fail 0% of the time in one client and 13% in another
Tool count & token cost
4 tools · ~3,791 tokens · 2 overlapping pairs
85/100 · 15 pts
↳ The top 3 tools usually get >99% of calls; the rest just cost context
Schema & docs accuracy
Descriptions 78/100 · output matched schema 4/4
86/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~1,189 tokens · p95 ~3,094 · has limit params
95/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 250ms · p95 293ms · 0 timeouts
100/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 548ms · Streamable HTTP
100/100 · 10 pts
↳ After a login or permission error, ~1 in 5 sessions end
Metadata & discoverability
metadata 80/100 · Listed in the official MCP Registry ✓ · mcp.json manifest ✕ · Setup page in the browser ✕
57/100 · 5 pts
↳ The basics. Necessary, but not what makes agents succeed
What your errors look like to an agent
We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.
Sent an option that doesn't exist · hub_repo_search.sort
Model sees it · "Input validation error: Invalid arguments for tool hub_repo_search: sort: Invalid option: expected one of "trendingScore"|"downloads"|"likes"|"createdAt"|"lastM"
Left out a required field · hub_repo_details.repo_ids
Model sees it · "Input validation error: Invalid arguments for tool hub_repo_details: repo_ids: Invalid input: expected array, received undefined"
Sent an option that doesn't exist · hub_repo_details.repo_type
Model sees it · "Input validation error: Invalid arguments for tool hub_repo_details: repo_ids: Invalid input: expected array, received undefined, repo_type: Invalid option: exp"
Left out a required field · hf_fs.operations
Model sees it · "Input validation error: Invalid arguments for tool hf_fs: operations: Invalid input: expected array, received undefined"
Sent the wrong type · hf_fs.operations
Model sees it · "Input validation error: Invalid arguments for tool hf_fs: operations: Invalid input: expected array, received string"
Called a tool that doesn't exist · —
Protocol error (often hidden from the model) · "Tool __agnost_nonexistent_tool__ not found"
We let a real AI agent use it
3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~8,196 tokens per task on average.
opus-5-5Find the most downloaded text-to-image models on Hugging Face.
Right tool first try · 9.4s · hub_repo_search
opus-5-5Get the license and download count for meta-llama/Llama-3.1-8B-Instruct.
Right tool first try · 4.0s · hub_repo_details
opus-5-5What are today's daily papers on Hugging Face?
Right tool first try · 10.7s · hf_fs
haiku-5-5Find the most downloaded text-to-image models on Hugging Face.
Right tool first try · 5.0s · hub_repo_search
haiku-5-5Get the license and download count for meta-llama/Llama-3.1-8B-Instruct.
Right tool first try · 2.0s · hub_repo_details
haiku-5-5What are today's daily papers on Hugging Face?
Right tool first try · 3.9s · hf_fs
gpt-5.5Find the most downloaded text-to-image models on Hugging Face.
Right tool first try · 5.5s · hub_repo_search
gpt-5.5Get the license and download count for meta-llama/Llama-3.1-8B-Instruct.
Right tool first try · 3.6s · hub_repo_details
gpt-5.5What are today's daily papers on Hugging Face?
Right tool first try · 5.1s · hf_fs
Top 3 fixes
- 1
Trim hf_fs description under 2 KB and document its single parameter (path/command syntax, examples like models/org/name, papers/daily), since it is the recommended starting tool.
- 2
Clarify when to use hf_fs vs hub_repo_search vs hub_repo_details; the server instructions say start with hf_fs, but the tool descriptions overlap and do not say which one to pick for search or for per-repo metadata.
- 3
Add outputSchemas to hub_repo_search and hub_repo_details, mark required params on hub_repo_search, and document the sort values and repo_type values.