Skip to main content
MCP server CX Codex

Hugging Face · huggingface — Claude Code MCP server: features and setup

Search Hugging Face models, datasets, Spaces, papers and documentation from an AI coding client, or generate an image from a prompt.

no license 2,405 installs updated 2026-03-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http huggingface https://huggingface.run.tools
Open on GitHub

What Hugging Face does

The server lets an agent search model and dataset repositories, discover Spaces and machine learning papers, and retrieve repository details. Separate tools search Hugging Face and Gradio documentation, then fetch pages. Another tool creates an image from a prompt and generation settings.

It connects over HTTP and supports clients including Claude Code, Codex, Cursor and Gemini CLI. The hf_whoami tool explains how to authenticate; anonymous requests may be rate limited. Keep that limit in mind if your workflow makes repeated requests.

What it helps with

  • find models and datasets by query
  • retrieve details for a Hugging Face repository
  • discover Spaces or machine learning papers
  • search Hugging Face documentation
  • generate an image from a text prompt

Example prompts for the agent

  • Find Hugging Face models for image classification.
  • Show details for the dataset owner/dataset-name.
  • Generate an image from this description.

How to install Hugging Face

Platform CLI: remote server

claude mcp add --transport http huggingface https://huggingface.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Hugging Face

How do I install Hugging Face in Claude Code?

Run claude mcp add --transport http huggingface https://huggingface.run.tools to add the server over HTTP.

What does the Hugging Face MCP server do?

It searches models, datasets, Spaces and research papers, retrieves repository details, and helps find documentation. It can also generate images from prompts.

Do I need to authenticate?

The hf_whoami tool provides instructions for connecting an account. Anonymous requests may be rate limited.

Similar MCP servers

All MCP servers for AI and ML →

Hugging Face by other authors comes first.

Hugging Face docker Hands your coding agent Hugging Face models, datasets and research papers without leaving the chat. Useful when model code and model data live in the same task. CX Codex +1 hugging-face-model-trainer patchy631 The hugging-face-model-trainer skill guides language-model training and fine-tuning with TRL on Hugging Face Jobs. Use it for cloud GPU jobs or GGUF conversion. CX Codex +1 1installs hugging-face-jobs patchy631 Run Python workloads on Hugging Face Jobs, from data processing to GPU experiments. Useful when a task needs cloud compute instead of a local setup. CX Codex +1 ★ 42,059repo stars hugging-science K-Dense-AI A skill to find and evaluate scientific datasets, models, and interactive demos via the Hugging Science catalog. Use it when you need an ML resource for biology, chemistry, genomics, materials science, climate, or physics. CX Codex +1 2,000installs face-morphing eachlabs face-morphing blends facial portraits via external image links, renders gradual video morphs, and predicts family traits through each::sense AI. CX Codex +1 212installs hugging-face-cli huytran1120 hugging-face-cli is a Claude Code skill that enables interaction with the Hugging Face Hub via the hf tool. It handles model downloads, dataset uploads, buckets, and cache management. CX Codex +1 ★ 85repo stars hugging-face-ui-skills design-skills hugging-face-ui-skills is a Claude Code skill that sets rules for Hugging Face-style interfaces. It applies to dark screens using Inter and a 4px spacing grid. CX Codex +1 266installs

Project sponsors

Companies that keep this analytics open