# Hugging Face connector

[Product](https://paperclip.ing/product/) / [Connectors](https://paperclip.ing/product/connectors/) / Hugging Face

Search repositories and inspect their metadata.

Category: [AI](/product/connectors/?category=ai)
Tools from: [Hugging Face](https://github.com/huggingface/hf-mcp-server/blob/808228aafbdf454d750cf189fa93aa0d0d7d83b4/README.md)
Sign-in: Choose a supported connection method
Works as: Agent tool

Source recorded: Sep 30, 2026

## Overview

Paperclip’s Hugging Face MCP connector gives your AI agents tools to search repositories and inspect their metadata. Each tool can be Allowed, Ask first or Off.

Agents can reach public Hub content. Private or gated repositories require the authorizing account’s existing access.

## What agents can do with Hugging Face

- Find models and inspect repository details (`hub_repo_search`, `hub_repo_details`)
- Compare dataset repository metadata (`hub_repo_search`, `hub_repo_details`)
- Find repositories for further evaluation (`hub_repo_search`, `hub_repo_details`)

## How to connect Hugging Face

1. In Paperclip, open Connectors and select Hugging Face.
2. On the Access step, choose the identity and which agents may use the connection.
3. Select Sign in with Hugging Face and complete browser sign-in.

[Setup guide](https://docs.paperclip.ing/connectors/hugging-face/)

## Hugging Face tools for agents (5)



### Read (3)

<div data-tool-name="hf_fs" data-tool-class="read">
<code>hf_fs</code>
<p class="c4-description-summary">When to use: Hugging Face Hub models, datasets, Spaces, collections, papers, daily papers, today's trending models, current paper leaderboard, docs, and repository files.</p>
<details class="faq-item c4-tool-description">
<summary class="faq-header" aria-label="Full description for hf_fs">Full description</summary>

<pre class="faq-answer c4-description-text">When to use: Hugging Face Hub models, datasets, Spaces, collections, papers, daily papers, today's trending models, current paper leaderboard, docs, and repository files.

Examples:
  {&quot;operations&quot;:[{&quot;cmd&quot;:&quot;ls&quot;,&quot;args&quot;:[&quot;hf://models/trending&quot;,&quot;--limit&quot;,&quot;10&quot;]}]}
  {&quot;operations&quot;:[{&quot;cmd&quot;:&quot;ls&quot;,&quot;args&quot;:[&quot;hf://papers/trending&quot;]}]}
  {&quot;operations&quot;:[{&quot;cmd&quot;:&quot;ls&quot;,&quot;args&quot;:[&quot;hf://papers/daily/latest&quot;]}]}
  {&quot;operations&quot;:[{&quot;cmd&quot;:&quot;cat&quot;,&quot;args&quot;:[&quot;hf://papers/2501.00001/paper.md&quot;]}]}

Use hf_fs for Hugging Face Hub filesystem operations. Call it with operations, an array of {cmd, args} items; multiple operations may be submitted together.

Usage:
  {&quot;operations&quot;:[{&quot;cmd&quot;:&quot;ls&quot;,&quot;args&quot;:[&quot;hf://models/org/repo&quot;]}]}

Grammar; each string below is one args array item:
  ls     URI [--recursive] [--glob GLOB] [--type TYPE] [--sort SORT] [--limit N]
  cat    URI [--offset N] [--max-bytes N]
  attach URI [--max-bytes N]
  stat   URI
  find   URI [--name GLOB] [--path GLOB] [--type TYPE] [--limit N]
  search URI [QUERY] [--type TYPE] [--sort SORT] [--tag TAG] [--kind mcp] [--limit N]

COMMAND = ls|cat|attach|stat|find|search.
TYPE = file|dir|repo|bucket|collection|paper|link.
SORT = createdAt|downloads|likes|lastModified|likes30d|trendingScore|mainSize|id|trending|upvotes.
URI is a canonical hf:// URI. QUERY and GLOB are each one string.

Use search for resource discovery, not repository-content search; ls for a known directory, find for recursive file discovery by name/path (not file contents), stat for filesystem metadata or an uncertain target type, cat for text contents, and attach for a complete JPEG, PNG, or WebP image. When the request gives an exact text-file URI, use cat directly; do not add ls or stat first. stat does not read the contents of JSON, Markdown, or other text files.

Search scopes: hf://models[/OWNER], hf://datasets[/OWNER], hf://spaces[/OWNER], hf://collections[/OWNER], hf://papers, and hf://docs[/...]. Repository and repository-file scopes are not supported: search a resource root or owner scope to discover resources; use find for file discovery within a repository or cat for a known text file. Paper and documentation search require QUERY. --tag (repeatable) and --kind are supported only on exactly hf://spaces, not owner scopes or other roots. The only valid --kind value is mcp, which selects MCP Spaces.
Use ls hf://models/trending, hf://datasets/trending, hf://spaces/trending, or hf://papers/trending for trending listings.
hf://papers/ID is a paper directory, not paper text. Use cat hf://papers/ID/paper.md for paper text and cat hf://papers/ID/metadata.json for metadata. No preliminary listing is needed for these known paths. Use ls hf://papers/ID to discover other resources.
Omit --limit, --sort, and --type unless the request requires them. Limits and path-specific behavior are documented at hf://README.md. Issue one hf_fs call.</pre>
</details>
</div>

<div data-tool-name="hub_repo_details" data-tool-class="read">
<code>hub_repo_details</code>
<p class="c4-description-summary">Get details for one or more Hugging Face repos (model, dataset, or space).</p>
<details class="faq-item c4-tool-description">
<summary class="faq-header" aria-label="Full description for hub_repo_details">Full description</summary>

<pre class="faq-answer c4-description-text">Get details for one or more Hugging Face repos (model, dataset, or space). Auto-detects type unless specified. For datasets, use operations: overview, dataset_structure, dataset_preview. Use dataset_structure first to discover configs, splits, sizes, and schema. Use dataset_preview only when config and split are known, unless the dataset has a single config/split.</pre>
</details>
</div>

<div data-tool-name="hub_repo_search" data-tool-class="read">
<code>hub_repo_search</code>
<p class="c4-description-summary">Search Hugging Face repositories with a shared query interface.</p>
<details class="faq-item c4-tool-description">
<summary class="faq-header" aria-label="Full description for hub_repo_search">Full description</summary>

<pre class="faq-answer c4-description-text">Search Hugging Face repositories with a shared query interface. You can target models, datasets, spaces, or aggregate across multiple repo types in one call. Include links to repositories in your response.</pre>
</details>
</div>

### Write (2)

<div data-tool-name="create_repo" data-tool-class="write">
<code>create_repo</code>
<p class="c4-description-summary">Create a Hugging Face model, dataset, Space, or bucket repository using an hf:// destination URI.</p>
<details class="faq-item c4-tool-description">
<summary class="faq-header" aria-label="Full description for create_repo">Full description</summary>

<pre class="faq-answer c4-description-text">Create a Hugging Face model, dataset, Space, or bucket repository using an hf:// destination URI. Set source_uri to duplicate an existing model, dataset, or Space server-side.</pre>
</details>
</div>

<div data-tool-name="hf_jobs" data-tool-class="write">
<code>hf_jobs</code>
<p class="c4-description-summary">Remote compute for Hugging Face workflows.</p>
<details class="faq-item c4-tool-description">
<summary class="faq-header" aria-label="Full description for hf_jobs">Full description</summary>

<pre class="faq-answer c4-description-text">Remote compute for Hugging Face workflows. Run Python/UV or Docker jobs to deeply analyze Hub datasets, repos, traces, models, and large files; compute trends/statistics; run batch inference/evaluation; or perform long-running work with installed libraries. Use for dataset/repo analysis prompts when local chat inspection is insufficient. Includes submit, logs, inspect, cancel, schedule, labels/names, and volume mounting. Minimal run: {&quot;operation&quot;:&quot;run&quot;,&quot;args&quot;:{&quot;image&quot;:&quot;python:3.12&quot;,&quot;command&quot;:[&quot;python&quot;,&quot;-c&quot;,&quot;print(123)&quot;]}}. Command arrays are literal argv; strings tokenize quotes and escaping, not shell execution. For pipes, chaining, redirections, or variable expansion, explicitly use [&quot;/bin/sh&quot;, &quot;-lc&quot;, &quot;...&quot;] only if the image provides that shell. Help: {&quot;operation&quot;:&quot;run&quot;,&quot;args&quot;:{&quot;help&quot;:true}}; full usage: {}. Follow up with logs or inspect using args: {&quot;job_id&quot;:&quot;&lt;returned job ID&gt;&quot;}.</pre>
</details>
</div>

This list describes the reviewed tools. Your selected method, provider access and action permissions determine what agents can use.

These lists use a conservative permission policy. Read requires a provider read-only hint or a reviewed Paperclip read rule. Evidence that an action changes data or submits information elsewhere puts it in Write. Write also includes actions we cannot verify as read-only. Read describes the reviewed evidence; it does not guarantee that an action has no side effects. A connected account can group actions differently.

This list covers the built-in tools with dynamic Space tools turned off. Sandbox and optional write tools are excluded. Your selected tools, preferences and read-mcp scope can further limit availability. Published source code does not authorize an account.



### Connection policies

Discovered actions follow the connection’s policies. Review their permissions. Set create_repo and hf_jobs to Ask first or Off unless agents need them; the requested read-mcp scope may further limit what your account exposes.

## Hugging Face connector FAQ

### Can I require approval for actions?

Set an action to Ask first to require human approval of each call or Off to prevent calls. Allowed actions run without approval. Read and Write grouping is separate from these settings.

### What can agents reach in Hugging Face?

Agents can reach public Hub content. Private or gated repositories require the authorizing account’s existing access.

### What do I need before connecting?

Use a Hugging Face account. Private organization repositories require membership and access.


Ways to connect

- Sign in with Hugging Face
  - Use browser sign-in for the provider-hosted server.

[Hugging Face connector](https://docs.paperclip.ing/connectors/hugging-face/)

[Set action permissions](https://docs.paperclip.ing/connectors/action-permissions/)

## Related connectors

- [Anthropic](https://paperclip.ing/product/connectors/anthropic/): Run agents on the Claude runtime with a subscription or Anthropic API key.
- [OpenAI](https://paperclip.ing/product/connectors/openai/): Run agents on the Codex runtime with an OpenAI subscription or API key.
- [OpenRouter](https://paperclip.ing/product/connectors/openrouter/): Run agents on the OpenCode runtime with an OpenRouter API key.

## Give your agents Hugging Face.

Join the Paperclip waitlist to connect Hugging Face and choose what your agents can do.

[Join the waitlist](https://paperclip.ing/waitlist/)
