OfficialDev & code hostingremote HTTP

Hugging Face MCP Server

Connects agents to the Hugging Face Hub to search models, datasets, papers and Spaces and to call Gradio apps.

Install

Claude Code

claude mcp add hf-mcp-server -t http https://huggingface.co/mcp?login

Gemini CLI

gemini mcp add -t http huggingface https://huggingface.co/mcp?login

Cursor

"huggingface": {"url":"https://huggingface.co/mcp","headers":{"Authorization":"Bearer <YOUR_HF_TOKEN>"}}

Copilot (VS Code)

"huggingface": {"url":"https://huggingface.co/mcp","headers":{"Authorization":"Bearer <YOUR_HF_TOKEN>"}}

Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.

Hugging Face MCP Server is Hugging Face’s official server at huggingface.co/mcp.

The Hugging Face MCP server connects agents to the Hugging Face Hub to search models, datasets, papers and Spaces and to call Gradio apps. Hugging Face hosts it over remote HTTP at huggingface.co/mcp, with sign-in through OAuth (the ?login URL) or a bearer HF token. The open-source code is MIT-licensed and can be self-hosted. The steps below cover Claude Code, Gemini CLI, Cursor and Copilot in VS Code.

Built-in tools search models, datasets, Spaces and papers and query the Hub documentation, and you can add Gradio Spaces as extra tools from your HF MCP settings page.

Questions

What can the Hugging Face MCP server search?
Its built-in tools search models, datasets, Spaces and papers and query the Hub documentation.
How do I sign in to the Hugging Face MCP server?
Use OAuth through the ?login URL, or pass an HF token as a bearer token.
Can I add Gradio apps as tools?
Yes. You add Gradio Spaces as extra tools from your HF MCP settings page.
Can I self-host the Hugging Face MCP server?
Yes. The open-source code can also be self-hosted.

Sources

Checked October 2, 2026.

Dev & code hosting

View all
Aftergradient

What are you looking for?

Search commands, errors, tools