Hugging FaceSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@shreyaskarnik/huggingface-mcp-server)
A Model Context Protocol (MCP) server that provides read-only access to the Hugging Face Hub APIs. This server allows LLMs like Claude to interact with Hugging Face's models, datasets, spaces, papers, and collections.
Components
Resources
The server exposes popular Hugging Face resources:
- Custom
hf://URI scheme for accessing resources - Models with
hf://model/{model_id}URIs - Datasets with
hf://dataset/{dataset_id}URIs - Spaces with
hf://space/{space_id}URIs - All resources have descriptive names and JSON content type
Prompts
The server provides two prompt templates:
compare-models: Generates a comparison between multiple Hugging Face models- Required
model_idsargument (comma-separated model IDs) - Retrieves model details and formats them for comparison
summarize-paper: Summarizes a research paper from Hugging Face- Required
arxiv_idargument for paper identification - Optional
detail_levelargument (brief/detailed) to control summary depth - Combines paper metadata with implementation details
Tools
The server implements several tool categories:
- Model Tools
search-models: Search models with filters for query, author, tags, and limitget-model-info: Get detailed information about a specific model
- Dataset Tools
search-datasets: Search datasets with filtersget-dataset-info: Get detailed information about a specific dataset
- Space Tools
search-spaces: Search Spaces with filters including SDK typeget-space-info: Get detailed information about a specific Space
- Paper Tools
get-paper-info: Get information about a paper and its implementationsget-daily-papers: Get the list of curated daily papers
- Collection Tools
search-collections: Search c
827644f0ce17OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add huggingface -- uvx huggingface
{
"mcpServers": {
"huggingface": {
"command": "uvx",
"args": [
"huggingface"
]
}
}
}Exposed tools (10)
10 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get-collection-info | read | Get detailed information about a specific collection |
get-daily-papers | read | Get the list of daily papers curated by Hugging Face |
get-dataset-info | read | Get detailed information about a specific dataset |
get-model-info | read | Get detailed information about a specific model |
get-paper-info | read | Get information about a specific paper on Hugging Face |
get-space-info | read | Get detailed information about a specific Space |
search-collections | read | Search for collections on Hugging Face Hub |
search-datasets | read | Search for datasets on Hugging Face Hub |
search-models | read | Search for models on Hugging Face Hub |
search-spaces | read | Search for Spaces on Hugging Face Hub |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
827644f0ce17full audit observations/trust-audit/mcp-server/shreyaskarnik__hugging-face.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 827644f0ce17 | SAFE | B | 89 | first audit |
Questions
What tools does Hugging Face expose?
10 in total: 10 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Hugging Face safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Hugging Face need?
No credential environment variables were found in its source, so it appears to need none.
How does Hugging Face run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as huggingface.
How current is this page?
The grade is for one exact copy of the source (827644f0ce17), read on 2026-10-07. The repository is watched and re-audited when it changes.