MCP server directory

Hugging Face

One of the ways to connect Hugging Face

Tools for interacting with Hugging Face models, datasets, research papers, and more.

Version:
hosted
Publisher:
docker

Install

Generated from the server’s transport data — never hand-written. Placeholders in angle brackets are yours to fill.

Run it with its own identity, a budget you set, and every call audited — no local config to keep in sync.

Add to a connect0 project

You will sign in first, then land back on this page.

What it can do

Verified today

Tools · 4

  • hf_fs

    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: {"operations":\[{"cmd":"ls","args":\["hf://models/trending","--limit","10"]}]} {"operations":\[{"cmd":"ls","args":\["hf://papers/trending"]}]} {"operations":\[{"cmd":"ls","args":\["hf://papers/daily/latest"]}]} {"operations":\[{"cmd":"cat","args":\["hf://papers/2501.00001/paper.md"]}]} {"operations":\[{"cmd":"search","args":\["hf://models","--tag","base\_model:finetune:org/repo"]}]} 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: {"operations":\[{"cmd":"ls","args":\["hf://models/org/repo"]}]} 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 filters models, datasets, and Spaces by Hub tag (repeatable; all must match) and applies only to hf://models|datasets|spaces\[/OWNER]; omit QUERY when the tag already identifies the target, because QUERY also filters repository names. Derived models carry base\_model:ID and base\_model:RELATION:ID tags, where RELATION is finetune, adapter, merge, or quantized. --kind applies only to hf://spaces\[/OWNER]; the only valid --kind value is mcp, which selects MCP Spaces. Tag families are documented at hf://README.md. 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.

  • hf_whoami

    Inspect the current Hugging Face authentication context, including the account, visible organization memberships, and credential access details. Read-only and never returns credential values.

  • hub_repo_details

    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.

  • hub_repo_search

    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.

Resources · 152

  • 3d-cuda-extensions.md
  • 3d-generation.md
  • 3d-gsplat.md
  • 3d-models.md
  • 3d-outputs.md
  • adapting-to-the-lora.md
  • alerts.md
  • arxiv.md
  • baseline_hf_api.py
  • baseline_hf_api.sh
  • baseline_hf_api.tsx
  • base_model_selection.md
  • buckets.md
  • CACHE.md
  • check_role.py
  • check_versions.py
  • _common.py
  • concurrency.md
  • CONFIGURATION.md
  • convert_to_gguf.py
  • create_role.py
  • creative-mode.md
  • cuda-and-deps.md
  • dataset_formats.md
  • dataset_inspector.py
  • debugging.md
  • deploy_async.py
  • deploy_ic.py
  • deployment-template.md
  • deploy.py
  • .env.example
  • estimate_cost.py
  • evaluators_cross_encoder.md
  • evaluators_multi_vector_encoder.md
  • evaluators_sentence_transformer.md
  • evaluators_sparse_encoder.md
  • examples.md
  • EXAMPLES.md
  • example_usage.md
  • find_models_by_paper.sh
  • finetune_sam2_trainer.md
  • gguf_conversion.md
  • gradio.md
  • grants.md
  • hardware_guide.md
  • hardware.md
  • hf_benchmarks.py
  • hf-cli

    Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`.

  • hf-cloud-aws-context-discovery

    Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like "use my AWS account", "deploy to AWS", "use my profile", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.

  • hf-cloud-python-env-setup

    Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run `pip install`, when about to invoke `boto3`, when creating or activating a virtualenv, or when the user asks to "set up the environment". Never use system Python and never `pip install` into it. Always isolate. This skill prevents the most common failure modes: wrong Python version, dependency conflicts, and stale SDKs.

  • hf-cloud-sagemaker-deployment-planner

    Plan and coordinate the deployment of a model to Amazon SageMaker AI. Use this skill whenever the user wants to deploy, host, serve, or expose a model on SageMaker or AWS — including phrases like "deploy a model", "host this LLM on AWS", "serve this embedding model", "deploy a reranker", "deploy a text-to-image / diffusion model", "host this for async inference", "create an endpoint", "serve my fine-tuned model", or any request that involves making a model available for inference on AWS. Use this even when the user is vague (e.g. "I just want to get this running on AWS, you figure it out"). Works for text-generation LLMs, embedding models, rerankers, classifiers, text-to-image / diffusion models — picks the right serving stack and chooses between real-time and async inference. This is the entry-point skill for SageMaker deployment work — it asks clarifying questions, picks a deployment pathway, and coordinates the other deployment skills.

  • hf-cloud-sagemaker-iam-preflight

    Ensure a usable SageMaker execution role exists before deploying or training. Use this skill whenever about to create a SageMaker endpoint, model, training job, or any resource that requires an execution role. Use it especially when the user has not provided a role ARN explicitly, when scripts are about to call `iam:CreateRole`, or when an AccessDenied error mentions an IAM action. Never blindly call `iam:CreateRole` — always check for existing roles first. This skill prevents the most common SageMaker deployment failure: trying to create IAM resources from an SSO principal that has no IAM write permissions.

  • hf-cloud-sagemaker-production-defaults

    Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default. Use this skill whenever about to create a SageMaker endpoint, write deployment code that calls `create_endpoint`, or finalize a deployment after the image URI and IAM role are known. Provides deploy.py for real-time endpoints, deploy\_ic.py for real-time endpoints that scale to zero instances via inference components, and deploy\_async.py for async endpoints (also scale-to-zero). This is the last step in the SageMaker deployment workflow. Never generate a bare `create_endpoint` call without these defaults — endpoints without autoscaling or alarms are demos, not deployments.

  • hf-cloud-serving-image-selection

    Pick the right serving container for a SageMaker model deployment and find its current image URI. Use this skill whenever about to deploy a model to a SageMaker endpoint and an image URI needs to be chosen — including when the user says "deploy this LLM", "host this HuggingFace model", "serve this fine-tuned model", "deploy this embedding model", "host a reranker", "serve a sentence-transformers model", or when about to hardcode any container URI in deployment code. HuggingFace-curated Deep Learning Containers are ALWAYS preferred: HuggingFace vLLM (LLMs and generative rerankers), HuggingFace vLLM-Omni (multimodal), TEI (embeddings/cross-encoder rerankers), HF Inference Toolkit (other transformers). Generic images (AWS vLLM, DJL-LMI, SGLang) are used only when no HuggingFace image is compatible — never merely because they carry a newer version. Never hardcode a container URI from memory and never default to TGI. Prevents stale-image failures and wrong-region URIs.

  • hf_enrich_models.sh
  • hf_jobs_execution.md
  • hf-mem

    Hugging Face CLI to estimate the required memory to load Safetensors or GGUF model weights for inference from the Hugging Face Hub

  • hf_model_card_frontmatter.sh
  • hf_model_papers_auth.sh
  • how-quota-works.md
  • how-zerogpu-works.md
  • hub-discovery.md
  • hub_saving.md
  • huggingface-best

    Use when the user asks about finding the best, top, or recommended model for a task, wants to know what AI model to use, or wants to compare models by benchmark scores. Triggers on: "best model for X", "what model should I use for", "top models for \[task]", "which model runs on my laptop/machine/device", "recommend a model for", "what LLM should I use for", "compare models for", "what's state of the art for", or any question about choosing an AI model for a specific use case. Always use this skill when the user wants model recommendations or comparisons, even if they don't explicitly mention HuggingFace or benchmarks.

  • huggingface-community-evals

    Run evaluations for Hugging Face Hub models using inspect-ai and lighteval on local hardware. Use for backend selection, local GPU evals, and choosing between vLLM / Transformers / accelerate. Not for HF Jobs orchestration, model-card PRs, .eval\_results publication, or community-evals automation.

  • huggingface-datasets

    Use this skill for Hugging Face Dataset Viewer API workflows that fetch subset/split metadata, paginate rows, search text, apply filters, download parquet URLs, and read size or statistics.

  • huggingface-gradio

    Build Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners, layouts, or chatbots.

  • huggingface-llm-trainer

    Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV scripts with PEP 723 format, dataset preparation and validation, hardware selection, cost estimation, Trackio monitoring, Hub authentication, model selection/leaderboards and model persistence. Use for tasks involving cloud GPU training, GGUF conversion, or when users mention training on Hugging Face Jobs without local GPU setup.

  • huggingface-local-models

    Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm. Covers finding GGUFs, quant selection, running servers, exact GGUF file lookup, conversion, and OpenAI-compatible local serving.

  • huggingface-lora-space-builder

    Build and publish a Gradio demo on Hugging Face Spaces for a user-provided LoRA. Use when someone asks to create, generate, ship, or publish a Space, demo, Gradio app, or playground for a LoRA — including LoRAs for Qwen-Image, Qwen-Image-Edit, LTX-Video, Wan, FLUX, SDXL, or other diffusion base models. Also triggers when someone describes a LoRA they trained or hosts on the Hub and wants to share it. Covers picking the right base pipeline and `diffusers` inference recipe, designing a UI tailored to the LoRA's task and inputs (Union/multi-task control, edit, video, image, etc.), respecting model-card recommendations (trigger words, steps, guidance, LoRA scale, example inputs), and shipping to ZeroGPU hardware as a private Space by default.

  • huggingface-paper-publisher

    Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.

  • huggingface-papers

    Look up and read Hugging Face paper pages in markdown, and use the papers API for structured metadata such as authors, linked models/datasets/spaces, Github repo and project page. Use when the user shares a Hugging Face paper page URL, an arXiv URL or ID, or asks to summarize, explain, or analyze an AI research paper.

  • huggingface-spaces

    Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community grants. Use whenever the user asks to create or host an app on Hugging Face, port code onto ZeroGPU, fix a Space that won't build or run, or otherwise work with `hf spaces …`, `@spaces.GPU`, Space README frontmatter, or the `spaces` Python package.

  • huggingface-tool-builder

    Use this skill when the user wants to build tool/scripts or achieve a task where using data from the Hugging Face API would help. This is especially useful when chaining or combining API calls or the task will be repeated/automated. This Skill creates a reusable script to fetch, enrich or process data.

  • huggingface-trackio

    Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training diagnostics, or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, alerts with webhooks, HF Space syncing, and JSON output for automation.

  • huggingface-vision-trainer

    Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models — MobileNetV3, MobileViT, ResNet, ViT/DINOv3 — plus any Transformers classifier), and SAM/SAM2 segmentation using Hugging Face Transformers on Hugging Face Jobs cloud GPUs. Covers COCO-format dataset preparation, Albumentations augmentation, mAP/mAR evaluation, accuracy metrics, SAM segmentation with bbox/point prompts, DiceCE loss, hardware selection, cost estimation, Trackio monitoring, and Hub persistence. Use when users mention training object detection, image classification, SAM, SAM2, segmentation, image matting, DETR, D-FINE, RT-DETR, ViT, timm, MobileNet, ResNet, bounding box models, or fine-tuning vision models on Hugging Face Jobs.

  • huggingface-zerogpu

    AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU. Use when writing or reviewing code that uses `@spaces.GPU`, configuring `python_version` or `requirements.txt` for a ZeroGPU Space, or handling ZeroGPU-specific code constraints — pickle-based process isolation, `gr.State` semantics across the worker boundary, no `torch.compile` (use AoTI instead), CUDA wheel-only builds (no `nvcc` at build or runtime), large vs xlarge sizing, and dynamic duration callables. Make sure to use this skill whenever the user mentions ZeroGPU, `@spaces.GPU`, or the `spaces` Python package, or hits ZeroGPU-specific code errors like `PicklingError` across the worker boundary, `illegal duration`, or `flash-attn` wheel-build failures — even when the user does not explicitly ask for ZeroGPU coding guidance. Trigger on `import spaces` or `@spaces.GPU` in code.

  • image_classification_training_notebook.md
  • image_classification_training.py
  • inference-providers.md
  • inspect_eval_uv.py
  • inspect_vllm_uv.py
  • invoke_endpoint.py
  • known-errors.md
  • krea-2.md
  • lighteval_vllm_uv.py
  • local_training_macos.md
  • logging_metrics.md
  • losses_cross_encoder.md
  • losses_multi_vector_encoder.md
  • losses_sentence_transformer.md
  • losses_sparse_encoder.md
  • ltx.md
  • mine_hard_negatives.py
  • minimum-permissions.json
  • mirror_image.py
  • ml-report.md
  • model_architectures.md
  • MODEL_ARCHITECTURES.md
  • MODEL_REGISTRY.md
  • model-to-image.md
  • modern.md
  • object_detection_training_notebook.md
  • object_detection_training.py
  • paper_manager.py
  • PIPELINE_OPTIONS.md
  • prompts_and_instructions.md
  • quantization.md
  • quick_reference.md
  • qwen-image.md
  • README.md
  • reliability_principles.md
  • requirements.md
  • requirements.txt
  • retrieving_metrics.md
  • sam_segmentation_training.py
  • setup_env.py
  • standard.md
  • tasks.md
  • teardown.py
  • TEXT_GENERATION.md
  • timm_trainer.md
  • trackio_guide.md
  • train_cross_encoder_distillation_example.py
  • train_cross_encoder_example.py
  • train_cross_encoder_listwise_example.py
  • train_dpo_example.py
  • train_grpo_example.py
  • training_args.md
  • training_methods.md
  • training_patterns.md
  • train_multi_vector_encoder_example.py
  • train_sentence_transformer_distillation_example.py
  • train_sentence_transformer_example.py
  • train_sentence_transformer_make_multilingual_example.py
  • train_sentence_transformer_matryoshka_example.py
  • train_sentence_transformer_multi_dataset_example.py
  • train-sentence-transformers

    Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder, dense or static embedding model for retrieval, similarity, clustering, classification, paraphrase mining, dedup, multimodal), `CrossEncoder` (reranker, pair scoring for two-stage retrieval / pair classification), `SparseEncoder` (SPLADE, sparse embedding model for learned-sparse retrieval), and `MultiVectorEncoder` (ColBERT / late-interaction, per-token embeddings scored with MaxSim). Covers loss selection, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.

  • train_sentence_transformer_static_embedding_example.py
  • train_sentence_transformer_with_lora_example.py
  • train_sft_example.py
  • train_sparse_encoder_distillation_example.py
  • train_sparse_encoder_example.py
  • transformers-js

    Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks. Works in browsers and server-side runtimes (Node.js, Bun, Deno) with WebGPU/WASM using pre-trained models from Hugging Face Hub.

  • trl-training

    Post-train LLMs with TRL (Transformers Reinforcement Learning) — SFT, DPO, GRPO, KTO, and reward-model training. Use when writing or debugging training code with the TRL Python API or the trl CLI.

  • troubleshooting.md
  • trust-policy.json
  • unsloth.md
  • unsloth_sft_example.py
  • USAGE_EXAMPLES.md
  • zerogpu-and-publishing.md
  • zerogpu.md
Hugging Face MCP server — setup for Claude Code, Cursor and VS Code · connect0