Skip to main content The #1 agentic semantic tool search: 91.6% first-try accuracy on S1 Search Bench Explore Tool Discovery
Live 126 Actions

Hugging Face MCP Server
for AI Agents

Connect your AI agent to StackOne's Hugging Face MCP server and give it 126 MCP tools out of the box. Auth, tool execution, and security all managed.

Hugging Face logo
Hugging Face MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

126 Agent Actions

Create, read, update, and delete across Hugging Face — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Hugging Face MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Hugging Face tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Hugging Face call.

Tools Discovery →

What is the Hugging Face MCP Server?

A Hugging Face MCP server lets AI agents read and write Hugging Face data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Hugging Face MCP server ships with 126 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Hugging Face MCP Tools

Every action from Hugging Face's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Collections

  • Create Collection

    Create a collection owned by the authenticated user or an organization

  • List Collections

    List collections, optionally filtered by owner or by an item they contain

  • Get Collection

    Get one collection with its items

  • Update Collection

    Update a collection's title, description, position or visibility

  • Delete Collection

    Delete a collection, leaving the repositories it referenced untouched

Collection Items

  • Add Collection Item

    Add a model, dataset, Space, paper or collection to a collection

  • Batch Update Collection Items

    Reorder or bulk-edit the items of a collection in one call

  • Delete Collection Item

    Remove one item from a collection

Datasets

  • List Datasets

    Search and filter dataset repositories on the Hub

  • Get Dataset

    Get one dataset repository including its card metadata

Handle Dataset Access Requests

  • Batch Handle Dataset Access Requests

    Accept or reject many pending access requests in one call

  • Handle Dataset Access Request

    Accept or reject one pending access request on a gated dataset repository

Dataset Branchs

  • Create Dataset Branch

    Create a branch in a dataset repository

  • Delete Dataset Branch

    Delete a branch from a dataset repository

Dataset Large Files

  • List Dataset Large Files

    List the LFS and Xet-backed large files of a dataset repository

  • Delete Dataset Large File

    Delete one large file from a dataset repository by its SHA

  • Delete Dataset Large Files

    Delete several large files from a dataset repository in one call

Dataset Tags

  • Create Dataset Tag

    Tag a revision of a dataset repository

  • Delete Dataset Tag

    Delete a tag from a dataset repository

Discussions

  • Create Discussion

    Open a new discussion or pull request on a repository

  • List Discussions

    List the discussions and pull requests on a repository

  • Get Discussion

    Get one discussion or pull request with its full comment thread

  • Delete Discussion

    Delete a discussion together with its comments

Models

  • List Models

    Search and filter model repositories on the Hub

  • Get Model

    Get one model repository including its card metadata

Handle Model Access Requests

  • Batch Handle Model Access Requests

    Accept or reject many pending access requests in one call

  • Handle Model Access Request

    Accept or reject one pending access request on a gated model repository

Model Branchs

  • Create Model Branch

    Create a branch in a model repository

  • Delete Model Branch

    Delete a branch from a model repository

Model Large Files

  • List Model Large Files

    List the LFS and Xet-backed large files of a model repository

  • Delete Model Large File

    Delete one large file from a model repository by its SHA

  • Delete Model Large Files

    Delete several large files from a model repository in one call

Model Tags

  • Create Model Tag

    Tag a revision of a model repository

  • Delete Model Tag

    Delete a tag from a model repository

Repositorys

  • Create Repository

    Create a model, dataset or Space repository

  • Move Repository

    Rename a repository or move it to another namespace

  • Delete Repository

    Delete a repository together with its files, history and discussions

Spaces

  • List Spaces

    Search and filter Space repositories on the Hub

  • Get Space

    Get one Space repository including its card metadata

Space Branchs

  • Create Space Branch

    Create a branch in a Space repository

  • Delete Space Branch

    Delete a branch from a Space repository

Space Large Files

  • List Space Large Files

    List the LFS and Xet-backed large files of a Space repository

  • Delete Space Large File

    Delete one large file from a Space repository by its SHA

  • Delete Space Large Files

    Delete several large files from a Space repository in one call

Space Secrets

  • List Space Secrets

    List the secret names configured on a Space, without their values

  • Delete Space Secret

    Delete a secret from a Space

Space Tags

  • Create Space Tag

    Tag a revision of a Space repository

  • Delete Space Tag

    Delete a tag from a Space repository

Space Variables

  • List Space Variables

    List the public environment variables configured on a Space

  • Delete Space Variable

    Delete a public environment variable from a Space

Space Volumes

  • Set Space Volumes

    Attach or resize the persistent storage volumes of a Space

  • Delete Space Volumes

    Detach every persistent storage volume from a Space

Other (74)

  • Create Discussion Comment

    Post a comment on a discussion or pull request

  • List Dataset Access Requests

    List access requests on a gated dataset repository by status

  • Export Dataset Access Report

    Export the access report of a gated dataset repository as CSV

  • List Dataset Commits

    List the commit history of a dataset repository at a revision

  • List Dataset Files

    List the files and folders of a dataset repository at a revision

  • List Dataset Parquet Files

    List the Parquet exports the Hub auto-generates for a dataset

  • Get Dataset Folder Size

    Get the total size of a folder in a dataset repository

  • Get Dataset Paths Info

    Get metadata for specific paths in a dataset repository

  • Get Dataset Leaderboard

    Get the evaluation leaderboard attached to a dataset

  • List Dataset References

    List the branches, tags and pull-request refs of a dataset repository

  • Get Dataset At Revision

    Get one dataset repository as of a specific Git revision

  • Get Dataset Security Status

    Read the malware, secret and pickle scan verdict for a dataset repository

  • List Dataset Tag Types

    List the dataset tag taxonomy grouped by type, such as task categories, sizes and licences

  • Get Pull Request Storage Estimate

    Estimate the LFS storage a pull request holds that deleting its ref would free

  • List Model Access Requests

    List access requests on a gated model repository by status

  • Export Model Access Report

    Export the access report of a gated model repository as CSV

  • List Model Commits

    List the commit history of a model repository at a revision

  • List Model Files

    List the files and folders of a model repository at a revision

  • Get Model Folder Size

    Get the total size of a folder in a model repository

  • Get Model Paths Info

    Get metadata for specific paths in a model repository

  • List Model References

    List the branches, tags and pull-request refs of a model repository

  • Get Model At Revision

    Get one model repository as of a specific Git revision

  • Get Model Security Status

    Read the malware, secret and pickle scan verdict for a model repository

  • List Model Tag Types

    List the model tag taxonomy grouped by type, such as tasks, libraries and licences

  • Get Organization

    Get the public overview of an organization

  • Get Organization Social Handles

    Get an organization's linked social accounts

  • Export Organization Audit Log

    Export an organization's audit log

  • List Organization Members

    List the members of an organization with their roles

  • List Organization Repositories

    List the repositories owned by an organization, including private ones

  • Get Organization Inference Session Usage

    Get an organization's inference usage broken down by session

  • Get Organization Usage

    Get an organization's compute and storage usage

  • Get Organization Usage By Resource Group

    Get an organization's usage broken down by resource group

  • List Space Commits

    List the commit history of a Space repository at a revision

  • List Space Files

    List the files and folders of a Space repository at a revision

  • Get Space Folder Size

    Get the total size of a folder in a Space repository

  • Get Space Paths Info

    Get metadata for specific paths in a Space repository

  • List Space Hardware

    List the hardware flavours a Space can run on

  • List Space References

    List the branches, tags and pull-request refs of a Space repository

  • Get Space At Revision

    Get one Space repository as of a specific Git revision

  • Get Space Security Status

    Read the malware, secret and pickle scan verdict for a Space repository

  • List Space Templates

    List the starter templates available when creating a Space

  • Get Current User

    Get the identity behind the credential, including organizations and the auth method used

  • Get User Overview

    Get another user's public profile and activity counts

  • Get User Social Handles

    Get a user's linked social accounts

  • List User Likes

    List the repositories a user has liked

  • List My Repositories

    List the repositories owned by the authenticated user, including private ones

  • Get My Inference Session Usage

    Get the authenticated user's inference usage broken down by session

  • Get My Jobs Usage

    Get the authenticated user's Jobs compute usage

  • Get My Usage

    Get the authenticated user's compute and storage usage

  • Update Dataset Settings

    Update the settings of a dataset repository including visibility and gating

  • Update Discussion Status

    Open, close or reopen a discussion or pull request

  • Update Discussion Title

    Rename a discussion or pull request

  • Update Model Settings

    Update the settings of a model repository including visibility and gating

  • Update Space Settings

    Update a Space repository's visibility and discussion-board settings

  • Delete Pull Request Ref

    Delete the Git ref backing a pull request

  • Grant Dataset Access

    Grant a user access to a gated dataset repository

  • Compare Dataset Revisions

    Compare two revisions of a dataset repository

  • Squash Dataset History

    Collapse the history of a dataset repository branch into a single commit

  • Commit To Dataset

    Add, update, move or delete files in a dataset repository as one commit

  • Check Dataset Upload Method

    Ask the Hub whether files should be uploaded as regular or large files

  • Pin Discussion

    Pin or unpin a discussion on a repository

  • Merge Pull Request

    Merge an open pull request into its target branch

  • Grant Model Access

    Grant a user access to a gated model repository

  • Compare Model Revisions

    Compare two revisions of a model repository

  • Squash Model History

    Collapse the history of a model repository branch into a single commit

  • Commit To Model

    Add, update, move or delete files in a model repository as one commit

  • Check Model Upload Method

    Ask the Hub whether files should be uploaded as regular or large files

  • Duplicate Repository

    Copy an existing model, dataset or Space into a new one

  • Compare Space Revisions

    Compare two revisions of a Space repository

  • Squash Space History

    Collapse the history of a Space repository branch into a single commit

  • Commit To Space

    Add, update, move or delete files in a Space repository as one commit

  • Check Space Upload Method

    Ask the Hub whether files should be uploaded as regular or large files

  • Upsert Space Secret

    Create or overwrite a secret on a Space

  • Upsert Space Variable

    Create or overwrite a public environment variable on a Space

Set Up Your Hugging Face MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Hugging Face in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Check More AI & ML MCP Servers

OpenAI

121+ actions

Dialpad

57+ actions

Exa

35+ actions

Google Gemini

30+ actions

Anthropic

29+ actions

Fireflies.ai

25+ actions

Groq

20+ actions

Hugging Face MCP Server FAQ

Does StackOne have a Hugging Face MCP server?
Yes. StackOne offers a hosted Hugging Face MCP server with 126 pre-built actions, and every action is tested and QA'd by StackOne. Connect it to Claude, Cursor, and any other MCP client, or to any agent framework through the AI Action SDK. It ships with managed agent authentication, prompt injection defense, and tool discovery with server-side execution that preserve your agent's context window and keep reasoning performance.
Hugging Face MCP server vs direct API integration — what's the difference?
A Hugging Face MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling Hugging Face. A Hugging Face MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling Hugging Face at runtime. StackOne provides both.
How does Hugging Face authentication work for AI agents?
Hugging Face authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Hugging Face account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Hugging Face MCP tools vulnerable to prompt injection?
Yes — Hugging Face MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a Hugging Face agent and how do I avoid it?
Context bloat happens when Hugging Face tool schemas and API responses eat your Hugging Face agent's memory, preventing it from reasoning effectively. A single Hugging Face query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my Hugging Face agent can access?
Yes — you can limit which actions your Hugging Face agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Hugging Face MCP server?
Yes — you can create custom agent actions for your Hugging Face MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Hugging Face's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Hugging Face MCP server?
Skip a Hugging Face MCP server if your integration is purely software-to-software — direct Hugging Face API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Hugging Face actions at runtime.
What AI frameworks and AI clients does the StackOne Hugging Face MCP server support?
The StackOne Hugging Face MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.