You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Hugging Face MCP (Model Context Protocol) Server connects your MCP‑compatible AI assistant (for example Cursor, VS Code extensions, Zed, or Claude Desktop) directly to the Hugging Face Hub. Once connected, your assistant can search and explore Hub resources and use community tools, all from within your editor.
4
-
5
-
<Tipwarning={true}>
6
-
This feature is experimental and will continue to evolve.
7
-
</Tip>
3
+
The Hugging Face MCP (Model Context Protocol) Server connects your MCP‑compatible AI assistant (for example Codex, Cursor, VS Code extensions, Zed, or Claude Desktop) directly to the Hugging Face Hub. Once connected, your assistant can search and explore Hub resources and use community tools, all from within your editor.
8
4
9
5
## What you can do
10
6
11
7
- Search and explore Hub resources: models, datasets, Spaces, and papers
12
-
- Run community tools via MCP‑compatible Gradio apps hosted on Spaces
8
+
- Run community tools via MCP‑compatible Gradio apps hosted on [Spaces](https://hf.co/spaces)
13
9
- Bring results back into your assistant with metadata, links, and context
14
10
15
11
## Get started
16
12
17
-
1) Open your MCP settings: visit https://huggingface.co/settings/mcp while logged in.
13
+
1. Open your MCP settings: visit https://huggingface.co/settings/mcp while logged in.
18
14
19
-
2) Pick your client: select your MCP‑compatible client (for example Cursor, VS Code, Zed, Claude Desktop). The page shows client‑specific instructions and a ready‑to‑copy configuration snippet.
15
+
2. Pick your client: select your MCP‑compatible client (for example Cursor, VS Code, Zed, Claude Desktop). The page shows client‑specific instructions and a ready‑to‑copy configuration snippet.
20
16
21
-
3) Paste and restart: copy the snippet into your client’s MCP configuration, save, and restart/reload the client. You should see “Hugging Face” (or similar) listed as a connected MCP server in your client.
17
+
3. Paste and restart: copy the snippet into your client’s MCP configuration, save, and restart/reload the client. You should see “Hugging Face” (or similar) listed as a connected MCP server in your client.
22
18
23
19
<Tip>
24
20
The settings page generates the exact configuration your client expects. Use it rather than writing config by hand.
@@ -28,19 +24,19 @@ The settings page generates the exact configuration your client expects. Use it
28
24
29
25
After connecting, ask your assistant to use the Hugging Face tools. Example prompts:
30
26
31
-
- “Search Hugging Face models for Llama‑3.1 fine‑tunes for summarization.”
27
+
- “Search Hugging Face models for Qwen 3 Quantizatizations.”
32
28
- “Find a Space that can transcribe audio files.”
33
29
- “Show datasets about weather time‑series.”
34
-
- “Look up papers on diffusion transformers and list recent ones.”
30
+
- “Create a 1024 x 1024 image of a dof anime style.”
35
31
36
-
Your assistant will call MCP tools exposed by the HF MCP Server and return results (titles, owners, downloads, links, and so on). You can then open the resource on the Hub or continue iterating in the same chat.
32
+
Your assistant will call MCP tools exposed by the HF MCP Server (including HF spaces) and return results (titles, owners, downloads, links, and so on). You can then open the resource on the Hub or continue iterating in the same chat.
37
33
38
34
## Add community tools (Gradio MCP)
39
35
40
36
You can extend your setup with MCP‑compatible Gradio apps built by the community:
41
37
42
-
- Explore Spaces with MCP support: https://huggingface.co/spaces?filter=mcp-server
43
-
-Follow your client’s instructions to add an additional MCP server by URL, or use the prompts in https://huggingface.co/settings/mcp if available in your client’s card.
38
+
- Explore Spaces with MCP support[here](https://huggingface.co/spaces?filter=mcp-server).
39
+
-Add the relevant space in your MCP settings on Hugging Face [here](https://huggingface.co/settings/mcp).
44
40
45
41
Gradio MCP apps expose their functions as tools (with arguments and descriptions) so your assistant can call them directly.
46
42
@@ -50,16 +46,9 @@ Gradio MCP apps expose their functions as tools (with arguments and descriptions
50
46
- Least surprise: tools only perform actions you prompt them to do in your assistant; browsing and lookups are read‑only.
51
47
- Privacy: results returned to your client are based on your account’s visibility and permissions (for example, private org content remains private).
52
48
53
-
## Troubleshooting
54
-
55
-
- Not showing up in client: re‑open https://huggingface.co/settings/mcp and re‑copy the configuration for your specific client, then restart the client.
56
-
- Auth or 401/403 errors: ensure you are signed in on the Hugging Face website in the same browser/profile you used to open the settings page; if your client supports tokens, update them and try again.
57
-
- Enterprise network issues: some clients use Server‑Sent Events (SSE) or websockets—ensure your network/proxy allows these connections.
58
-
59
49
## Learn more
60
50
61
51
- Settings and client setup: https://huggingface.co/settings/mcp
0 commit comments