Hugging Face MCP server
139 operations0 webhooks
AI community hub for models, datasets, inference APIs, and machine learning deployments.
Try Hugging Face with your agent
Connect Hugging Face, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Hugging Face on my account, then run one read-only example and show me the result.
Hugging Face tools and triggers
Tools are what your agent can do in Hugging Face through Corsair's MCP server. Triggers are the Hugging Face events a routine can start from.
Datasets
- Check Upload MethodRead-only
Check LFS vs regular upload method for dataset files
datasets.checkUploadMethod
- Check ValidityRead-only
Check whether a dataset is valid on the Hub viewer
datasets.checkValidity
- Create BranchWrite
Create a branch on a dataset
datasets.createBranch
- Create CommitWrite
Create a commit on a dataset (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
datasets.createCommit
- Create Sql Console EmbedWrite
Create a SQL Console embed for a dataset
datasets.createSqlConsoleEmbed
- Create TagWrite
Create a tag on a dataset
datasets.createTag
- Delete BranchDestructive
Delete a branch on a dataset
datasets.deleteBranch
- Delete TagDestructive
Delete a tag on a dataset
datasets.deleteTag
- Filter RowsRead-only
Filter dataset rows with SQL-like where clause
datasets.filterRows
- GetRead-only
Get dataset repository info
datasets.get
- Get CompareRead-only
Compare two revisions of a dataset
datasets.getCompare
- Get CroissantRead-only
Get Croissant JSON-LD metadata for a dataset
datasets.getCroissant
- Get First RowsRead-only
Get first ~100 rows of a dataset split
datasets.getFirstRows
- Get InfoRead-only
Get dataset info (features, splits, citation)
datasets.getInfo
- Get JwtRead-only
Get JWT for a dataset repo
datasets.getJwt
- Get LeaderboardRead-only
Get evaluation leaderboard for a dataset
datasets.getLeaderboard
- Get NotebookRead-only
Get notebook URL from a dataset
datasets.getNotebook
- Get ResolveRead-only
Resolve a file from a dataset (follows redirects / XET info)
datasets.getResolve
- Get Resolve CacheRead-only
Resolve a file from dataset cache
datasets.getResolveCache
- Get RowsRead-only
Get a slice of dataset rows (offset/length)
datasets.getRows
- Get ScanRead-only
Get security scan status for a dataset
datasets.getScan
- Get SizeRead-only
Get dataset size (rows and bytes)
datasets.getSize
- Get StatisticsRead-only
Get statistics for a dataset split
datasets.getStatistics
- Get Tags By TypeRead-only
Get dataset tags grouped by type
datasets.getTagsByType
- Get Tree SizeRead-only
Get repository tree size for a dataset
datasets.getTreeSize
- Get Xet Read TokenRead-only
Get XET read token for a dataset
datasets.getXetReadToken
- Handle Access RequestWrite
Accept/reject gated dataset access request
datasets.handleAccessRequest
- ListRead-only
List datasets on the Hub
datasets.list
- List Access RequestsRead-only
List access requests for a gated dataset
datasets.listAccessRequests
- List CommitsRead-only
List commits for a dataset
datasets.listCommits
- List Parquet FilesRead-only
List Parquet files for a dataset
datasets.listParquetFiles
- List Paths InfoRead-only
List path metadata in a dataset
datasets.listPathsInfo
- List RefsRead-only
List refs (branches/tags) for a dataset
datasets.listRefs
- List SplitsRead-only
List dataset configurations and splits
datasets.listSplits
- SearchRead-only
Full-text search within a dataset split
datasets.search
- Squash CommitsDestructive
Squash all commits in a dataset ref (irreversible)
datasets.squashCommits
- Update SettingsWrite
Update settings for a dataset repository
datasets.updateSettings
- Update Sql Console EmbedWrite
Update a SQL Console embed
datasets.updateSqlConsoleEmbed
Spaces
- Check Upload MethodRead-only
Check LFS vs regular upload method for space files
spaces.checkUploadMethod
- Create BranchWrite
Create a branch on a space
spaces.createBranch
- Create CommitWrite
Create a commit on a space (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
spaces.createCommit
- Create SecretWrite
Create or update a Space secret
spaces.createSecret
- Create TagWrite
Create a tag on a space
spaces.createTag
- Create VariableWrite
Create or update a Space variable
spaces.createVariable
- Delete BranchDestructive
Delete a branch on a space
spaces.deleteBranch
- Delete SecretDestructive
Delete a Space secret
spaces.deleteSecret
- Delete TagDestructive
Delete a tag on a space
spaces.deleteTag
- Delete VariableDestructive
Delete a Space variable
spaces.deleteVariable
- GetRead-only
Get space repository info
spaces.get
- Get CompareRead-only
Compare two revisions of a space
spaces.getCompare
- Get EventsRead-only
Stream Space status events (SSE snapshot)
spaces.getEvents
- Get JwtRead-only
Get JWT for a space repo
spaces.getJwt
- Get MetricsRead-only
Get live Space metrics (SSE snapshot)
spaces.getMetrics
- Get NotebookRead-only
Get notebook URL from a space
spaces.getNotebook
- Get ResolveRead-only
Resolve a file from a space (follows redirects / XET info)
spaces.getResolve
- Get Resolve CacheRead-only
Resolve a file from space cache
spaces.getResolveCache
- Get ScanRead-only
Get security scan status for a space
spaces.getScan
- Get Tree SizeRead-only
Get repository tree size for a space
spaces.getTreeSize
- Get Xet Read TokenRead-only
Get XET read token for a space
spaces.getXetReadToken
- Get Xet Write TokenWrite
Get XET write token for a Space
spaces.getXetWriteToken
- ListRead-only
List spaces on the Hub
spaces.list
- List CommitsRead-only
List commits for a space
spaces.listCommits
- List HardwareRead-only
List available Space hardware configurations
spaces.listHardware
- List Lfs FilesRead-only
List LFS files in a Space
spaces.listLfsFiles
- List Paths InfoRead-only
List path metadata in a space
spaces.listPathsInfo
- List RefsRead-only
List refs (branches/tags) for a space
spaces.listRefs
- Squash CommitsDestructive
Squash all commits in a Space ref (irreversible)
spaces.squashCommits
- Update SettingsWrite
Update settings for a space repository
spaces.updateSettings
Models
- Check Upload MethodRead-only
Check LFS vs regular upload method for model files
models.checkUploadMethod
- Create BranchWrite
Create a branch on a model
models.createBranch
- Create CommitWrite
Create a commit on a model (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
models.createCommit
- Create TagWrite
Create a tag on a model
models.createTag
- Delete BranchDestructive
Delete a branch on a model
models.deleteBranch
- Delete TagDestructive
Delete a tag on a model
models.deleteTag
- GetRead-only
Get model repository info
models.get
- Get CompareRead-only
Compare two revisions of a model
models.getCompare
- Get JwtRead-only
Get JWT for a model repo
models.getJwt
- Get NotebookRead-only
Get notebook URL from a model
models.getNotebook
- Get ResolveRead-only
Resolve a file from a model (follows redirects / XET info)
models.getResolve
- Get Resolve CacheRead-only
Resolve a file from model cache
models.getResolveCache
- Get ScanRead-only
Get security scan status for a model
models.getScan
- Get Tags By TypeRead-only
Get model tags grouped by type
models.getTagsByType
- Get Tree SizeRead-only
Get repository tree size for a model
models.getTreeSize
- Get Xet Read TokenRead-only
Get XET read token for a model
models.getXetReadToken
- ListRead-only
List models on the Hub
models.list
- List CommitsRead-only
List commits for a model
models.listCommits
- List Paths InfoRead-only
List path metadata in a model
models.listPathsInfo
- List RefsRead-only
List refs (branches/tags) for a model
models.listRefs
- Update SettingsWrite
Update settings for a model repository
models.updateSettings
Settings
- Create WebhookWrite
Create a settings webhook
settings.createWebhook
- Delete WebhookDestructive
Delete a settings webhook
settings.deleteWebhook
- Get Billing Usage V2Read-only
Get billing usage for a custom date range (unix timestamps)
settings.getBillingUsageV2
- Get Jobs UsageRead-only
Get Jobs usage and billing for current subscription period
settings.getJobsUsage
- Get Live Billing UsageRead-only
Get live billing usage stream snapshot
settings.getLiveBillingUsage
- Get McpRead-only
Get MCP tools configuration for the authenticated user
settings.getMcp
- Get WebhookRead-only
Get a webhook by id
settings.getWebhook
- List WebhooksRead-only
List all webhooks in settings
settings.listWebhooks
- Update NotificationsWrite
Update notification settings for the authenticated user
settings.updateNotifications
- Update WatchWrite
Update watch settings (orgs/users/repos to follow)
settings.updateWatch
- Update WebhookWrite
Update an existing settings webhook
settings.updateWebhook
- Update Webhook StatusWrite
Enable or disable a webhook (action: enable|disable)
settings.updateWebhookStatus
Discussions
- Change StatusWrite
Open or close a discussion
discussions.changeStatus
- CreateWrite
Create a discussion on a repository
discussions.create
- Create CommentWrite
Comment on a discussion
discussions.createComment
- DeleteDestructive
Delete a discussion
discussions.delete
- GetRead-only
Get discussion details
discussions.get
- ListRead-only
List discussions for a repository
discussions.list
- PinWrite
Pin or unpin a discussion
discussions.pin
- Update TitleWrite
Update discussion title
discussions.updateTitle
Papers
- Claim AuthorshipWrite
Claim authorship of a paper
papers.claimAuthorship
- Create CommentWrite
Comment on a paper
papers.createComment
- Create Comment ReplyWrite
Reply to a paper comment
papers.createCommentReply
- Create IndexWrite
Index an arXiv paper by id
papers.createIndex
- Get DailyRead-only
Get daily papers
papers.getDaily
- SearchRead-only
Search papers (hybrid semantic/full-text)
papers.search
Repos
- CreateWrite
Create a model, dataset, or Space repository
repos.create
- Get ResolveRead-only
Resolve a file in any repository type
repos.getResolve
- List FilesRead-only
List repository file tree with pagination
repos.listFiles
- Request AccessWrite
Request access to a gated repository
repos.requestAccess
Account
- Delete NotificationsDestructive
Delete notifications by discussion ids or filters
account.deleteNotifications
- Get WhoamiRead-only
Get authenticated Hugging Face user info
account.getWhoami
- List NotificationsRead-only
List notifications for the authenticated user
account.listNotifications
Endpoints
- Delete Network CidrDestructive
Delete a network CIDR list entry for Inference Endpoints
endpoints.deleteNetworkCidr
- ListRead-only
List Inference Endpoints for a namespace
endpoints.list
- List VendorsRead-only
List cloud provider vendors for Inference Endpoints
endpoints.listVendors
Organizations
- Get AvatarRead-only
Get organization avatar
organizations.getAvatar
- Get MembersRead-only
List organization members
organizations.getMembers
- Get SocialsRead-only
Get organization social handles
organizations.getSocials
Users
- Get AvatarRead-only
Get user avatar URL
users.getAvatar
- Get OverviewRead-only
Get user profile overview
users.getOverview
- Get SocialsRead-only
Get user social handles
users.getSocials
Collections
- CreateWrite
Create a new collection
collections.create
- ListRead-only
List collections on the Hub
collections.list
Docs
- ListRead-only
List available Hugging Face documentation
docs.list
- SearchRead-only
Search Hugging Face documentation
docs.search
Inference
- Chat CompletionWrite
Generate chat completion via Inference Providers (OpenAI-compatible)
inference.chatCompletion
- EmbeddingsWrite
Generate text embeddings via Inference Providers
inference.embeddings
Trending
- GetRead-only
Get trending repositories
trending.get
Jobs
- Get HardwareRead-only
List available Jobs hardware
jobs.getHardware
Connect Hugging Face to Claude, ChatGPT or Cursor
- 1
Connect Hugging Face in Corsair
Add your Hugging Face API key or sign in with OAuth once in Corsair. Corsair stores the credential encrypted and makes the Hugging Face API calls for your agent, so it never goes into a prompt or a config file. Connect Hugging Face
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Hugging Face. On a ChatGPT personal plan, connect Hugging Face here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Hugging Face's read and write operations run right away and its 14 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/huggingface, add the Hugging Face plugin, and connect with an API key or OAuth. Then call methods like corsair.huggingface.api.account.deleteNotifications() from your app. Corsair stores tokens, and syncs data per tenant.
Yes. Hugging Face supports an API key or OAuth. Use credentials or OAuth scopes that match what you automate. Create them in the Hugging Face developer console, then paste into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Hugging Face, GitHub, Notion, Stripe, and the rest. Trigger Hugging Face from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for AI community hub for models, datasets, inference APIs, and machine learning deployments. Common builds include sync jobs, admin tooling, and agents that call Hugging Face APIs from your backend. Local DB entities let you query synced Hugging Face records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Hugging Face API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/huggingface in the open repo. When Hugging Face ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Hugging Face data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Hugging Face data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Hugging Face on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 14 destructive Hugging Face operations. You can change a link's mode at hub.corsair.dev/me.