Hugging Face MCP Server

Official

The ML hub in your context window — search models, datasets, papers and run Spaces from the official server.

Remote serverstreamable-httpTypeScriptMIT 400

What is the Hugging Face MCP server?

Hugging Face is where machine learning actually lives — a million-plus models, hundreds of thousands of datasets, the daily papers feed, and Spaces running working demos of all of it. The official MCP server at hf.co/mcp brings that hub to your assistant, no local install required.

Research workflows benefit first. "Find the current best small embedding model with a commercial-friendly license" is a live query against the Hub with filters that matter — downloads, license, size — rather than a model recommendation frozen at training time. Dataset discovery works the same way, and the papers integration means "summarise this week's notable papers on quantization" pulls from the actual feed.

The sleeper feature is Spaces as tools. Thousands of community Spaces are runnable through MCP — image generators, TTS engines, background removers — and your MCP settings on Hugging Face let you pick which Spaces mount as tools in your assistant. That effectively makes the server extensible: the community builds demos, you cherry-pick them as capabilities. Free-tier usage covers search and metadata generously; Space runs consume the Space owner's hardware quota or your PRO allowance.

For ML practitioners the pairing with Replicate is natural: Hugging Face for finding and evaluating models, datasets and papers; Replicate for production-running a chosen model. The OAuth remote setup takes under a minute, which for the breadth on offer is the best effort-to-capability ratio in this category.

Making the Hub work harder

  • Keep the mounted Spaces list short. Every enabled Space adds its own tool definitions to the connection, and a dozen of them crowds out the search tools you reach for daily.
  • Search by pipeline_tag and library rather than free text. "sentence-similarity, sorted by downloads, Apache-2.0" produces a usable shortlist where a keyword search for "embedding model" produces noise.
  • Model cards expose the licence, but gated repositories still need their terms accepted in a browser under your account — the server surfaces the gate rather than routing around it.
  • Community Spaces run on their owner's hardware and can be asleep, queued or rate-limited. Duplicate any Space you intend to depend on so its uptime becomes your problem rather than a stranger's.

What you can do with it

Model selection with live data

License-aware, size-aware model shortlists from the actual Hub, not stale memory.

Paper triage

The daily ML firehose filtered and summarised on request.

Spaces as capabilities

Mount community demos (image gen, TTS) as tools in your assistant.

Available tools

ToolWhat it does
model_searchSearch models with filters (task, license, size, downloads)
dataset_searchFind datasets by domain and format
paper_searchSearch and summarise ML papers
hub_repo_detailsRead model/dataset cards and metadata
gr1_* (Spaces)Run community Spaces you've enabled — image generation, TTS and more

How to install the Hugging Face MCP server

claude mcp add --transport http hugging-face https://huggingface.co/mcp

Sign in with your HF account; configure which Spaces mount as tools at hf.co/settings/mcp.

Configuration

A Hugging Face account (free). OAuth sign-in; Space usage follows compute quotas.

Example prompts to try

  • Find embedding models under 500M params with Apache/MIT licenses, ranked by downloads.
  • What datasets exist for instruction-tuning in the legal domain?
  • Summarise this week's papers on efficient long-context attention.

Frequently asked questions

Search, metadata and paper tools are free with an account. Running Spaces consumes compute quota — free-tier friendly for light use, PRO for more.