tokens&
For enterprises
Submit a resource
tokens&

Find tools, check provider offers, save a build plan, and share your work when you’re ready.

For buildersFor enterprises

For builders

  • Startup credits and perks
  • Agent Skills
  • Publish a project

For enterprises

  • Start free company workspace
  • Submit a tool, product, or perk

Community

  • Community
  • Newsletter
  • Events
Xin

© 2026 tokensand, LLC. All rights reserved.

  • Terms
  • Privacy
  • Security
  • Data Processing
  • Status
  1. Home
  2. Agent Skills
  3. Hugging Face MCP
Hugging FaceAgents
SKILL.md
License identified

Agent Skill

Hugging Face MCP

Use Hugging Face Hub MCP tools for models, datasets, Spaces, papers, and compute jobs.

mcphubmodels
Install this skillView repository

Package facts

Sourced from the vendor's own repository.

Vendor
Hugging Face
Category
Agents
License
Apache-2.0
License review
License identified
Supported clients
MCP clients, Codex, Cursor, Claude Code
SKILL.md size
4,966 bytes

Source snapshot: 2026-09-04. This listing does not verify installation, security, vendor participation, or product use.

Raw SKILL.mdSource repositoryInstall the Tokens& Agent Pack

Skill specification

Declared by Hugging Face in the package front matter. Trigger conditions are what the coding agent matches on before it loads the skill.

Hugging Face MCP SKILL.md front matter fields
Skill namehf-mcp
Trigger conditionsUse Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run compute jobs, and use Gradio Spaces as AI tools. Available when connected to the HF MCP server.

Install hf-mcp

In a terminal with Node.js, npm and Git, run the command for your agent. The Skills CLI installs the complete package directory, including referenced files within it. Review its install prompt, then start a new agent session. A skill package does not set up an MCP server connection.

Claude Code

.claude/skills/hf-mcp/SKILL.md

Project skills are committed with the repo. Use the user directory for a personal install across every project.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'claude-code'

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'claude-code' --global

Codex

.agents/skills/hf-mcp/SKILL.md

Codex reads `.agents/skills/` as its primary location, which is also the cross-platform default other clients honour.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'codex'

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'codex' --global

Cursor

.agents/skills/hf-mcp/SKILL.md

Cursor also loads `.agents/skills/`, `.claude/skills/`, and `.codex/skills/`, so one committed copy can serve several clients.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'cursor'

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp' --skill 'hf-mcp' --agent 'cursor' --global

SKILL.md

View raw source

Source snapshot fetched 2026-09-04 from github.com/huggingface/skills/tree/main/hf-mcp/skills/hf-mcp. The install command fetches the upstream package, which may have changed since this snapshot.

Hugging Face MCP Server

Connect AI assistants to the Hugging Face Hub. Setup: https://huggingface.co/settings/mcp

Use Cases & Examples

Find the Best Model for a Task

User: "Find the best model for code generation"

1. model_search(task="text-generation", query="code", sort="trendingScore", limit=10)
2. hub_repo_details(repo_ids=["top-result-id"], include_readme=true)

Compare Models from Different Providers

User: "Compare Llama vs Qwen for text generation"

1. model_search(author="meta-llama", task="text-generation", sort="downloads", limit=5)
2. model_search(author="Qwen", task="text-generation", sort="downloads", limit=5)
3. hub_repo_details(repo_ids=["meta-llama/Llama-3.2-1B", "Qwen/Qwen3-8B"], include_readme=true)

Find Training Datasets

User: "Find datasets for sentiment analysis in English"

1. dataset_search(query="sentiment", tags=["language:en", "task_categories:text-classification"], sort="downloads")
2. hub_repo_details(repo_ids=["top-dataset-id"], repo_type="dataset", include_readme=true)

Discover AI Tools (MCP Spaces)

User: "Find a tool that can remove image backgrounds"

1. space_search(query="background removal", mcp=true)
2. dynamic_space(operation="view_parameters", space_name="result-space-id")
3. dynamic_space(operation="invoke", space_name="result-space-id", parameters="{...}")

Generate Images

User: "Create an image of a robot reading a book"

1. dynamic_space(operation="discover")  # See available tasks
2. gr1_flux1_schnell_infer(prompt="a robot sitting in a library reading a book, warm lighting, detailed")

Research a Topic

User: "What are the latest papers on RLHF?"

1. paper_search(query="reinforcement learning from human feedback", results_limit=10)
2. hub_repo_details(repo_ids=["paper-linked-model"], include_readme=true)  # If paper links to models

Learn How to Use a Library

User: "How do I fine-tune with LoRA using PEFT?"

1. hf_doc_search(query="LoRA fine-tuning", product="peft")
2. hf_doc_fetch(doc_url="https://huggingface.co/docs/peft/...")

Run a Quick GPU Job

User: "Run this Python script on a GPU"

hf_jobs(operation="uv", args={
  "script": "# /// script\n# dependencies = [\"torch\"]\n# ///\nimport torch\nprint(torch.cuda.is_available())",
  "flavor": "t4-small"
})

Train a Model on Cloud GPU

User: "Run my training script on an A10G"

hf_jobs(operation="run", args={
  "image": "pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime",
  "command": ["/bin/sh", "-lc", "pip install transformers trl && python train.py"],
  "flavor": "a10g-small",
  "secrets": {"HF_TOKEN": "$HF_TOKEN"}
})

Check Job Status

User: "What's happening with my training job?"

1. hf_jobs(operation="ps")
2. hf_jobs(operation="logs", args={"job_id": "job-xxxxx"})

Explore What's Trending

User: "What models are trending right now?"

model_search(sort="trendingScore", limit=20)

Get Model Card Details

User: "Tell me about Mistral-7B"

hub_repo_details(repo_ids=["mistralai/Mistral-7B-v0.1"], include_readme=true)

Find Quantized Models

User: "Find GGUF versions of Llama 3"

model_search(query="Llama 3 GGUF", sort="downloads", limit=10)

Use a Gradio Space as a Tool

User: "Transcribe this audio file"

1. space_search(query="speech to text transcription", mcp=true)
2. dynamic_space(operation="view_parameters", space_name="openai/whisper")
3. dynamic_space(operation="invoke", space_name="openai/whisper", parameters="{\"audio\": \"...\"}")

Schedule Recurring Jobs

User: "Run this data sync every day at midnight"

hf_jobs(operation="scheduled uv", args={
  "script": "...",
  "cron": "0 0 * * *",
  "flavor": "cpu-basic"
})

Tool Selection Guide

GoalTool
Find modelsmodel_search
Find datasetsdataset_search
Find Spaces/appsspace_search
Find paperspaper_search
Get repo README/detailshub_repo_details
Learn library usagehf_doc_search → hf_doc_fetch
Run code on GPU/CPUhf_jobs
Use Gradio apps as toolsdynamic_space
Generate imagesgr1_flux1_schnell_infer or dynamic_space

Tips

  • Use sort="trendingScore" to find what's popular now
  • Use sort="downloads" to find battle-tested options
  • Set mcp=true in space_search to find Spaces usable as tools
  • Use include_readme=true in hub_repo_details for full model/dataset documentation
  • For jobs accessing private repos, always include secrets: {"HF_TOKEN": "$HF_TOKEN"}
  • Use dynamic_space(operation="discover") to see all available Space-based tasks

Add the registry badge

Maintainers can link this listing from the skill's own README. Free, no account needed, and it points back at the rendered package for anyone browsing the repo.

Markdown

[![Hugging Face MCP on tokens&](https://tokensand.com/api/badges/skill/huggingface-hf-mcp)](https://tokensand.com/agent-skills/huggingface-hf-mcp)

HTML

<a href="https://tokensand.com/agent-skills/huggingface-hf-mcp" target="_blank" rel="noopener">
  <img src="https://tokensand.com/api/badges/skill/huggingface-hf-mcp" alt="Hugging Face MCP on tokens&" />
</a>

More Hugging Face Agent Skills

All Agent Skills

Community model evals

Run inspect-ai and lighteval evaluations for model selection, regressions, and benchmarks.

Models

Dataset Viewer workflows

Fetch dataset metadata, split rows, filtered samples, and viewer API results for data tasks.

Models

Gradio app builder

Build and edit Gradio apps, demos, chatbots, layouts, and event listeners.

Frontend

Hub tool builder

Create scripts and tools that chain Hugging Face Hub API data safely.

Agents

Hugging Face CLI

Package model, dataset, and Space operations into a repeatable agent workflow.

Models

Hugging Face Papers

Read paper metadata, linked models, datasets, Spaces, and project pages through the Papers API.

Docs

Check authhf_whoami