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.
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
{
"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
121+ actions
57+ actions
35+ actions
30+ actions
29+ actions
25+ actions
20+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Hugging Face MCP Server FAQ
Does StackOne have a Hugging Face MCP server?
Hugging Face MCP server vs direct API integration — what's the difference?
How does Hugging Face authentication work for AI agents?
origin_owner_id.Are Hugging Face MCP tools vulnerable to prompt injection?
What is the context bloat of a Hugging Face agent and how do I avoid it?
Can I limit which actions my Hugging Face agent can access?
Can I create custom agent actions for my Hugging Face MCP server?
When should I NOT use a Hugging Face MCP server?
What AI frameworks and AI clients does the StackOne Hugging Face MCP server support?
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.