Skip to content

Commit 615fe30

Browse files
committed
up.
1 parent 48d4d70 commit 615fe30

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

docs/hub/hf-mcp-server.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
# HF MCP Server
1+
# Hugging Face MCP Server
22

3-
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-
<Tip warning={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.
84

95
## What you can do
106

117
- 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)
139
- Bring results back into your assistant with metadata, links, and context
1410

1511
## Get started
1612

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.
1814

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.
2016

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.
2218

2319
<Tip>
2420
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
2824

2925
After connecting, ask your assistant to use the Hugging Face tools. Example prompts:
3026

31-
- “Search Hugging Face models for Llama‑3.1 fine‑tunes for summarization.”
27+
- “Search Hugging Face models for Qwen 3 Quantizatizations.”
3228
- “Find a Space that can transcribe audio files.”
3329
- “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.”
3531

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.
3733

3834
## Add community tools (Gradio MCP)
3935

4036
You can extend your setup with MCP‑compatible Gradio apps built by the community:
4137

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).
4440

4541
Gradio MCP apps expose their functions as tools (with arguments and descriptions) so your assistant can call them directly.
4642

@@ -50,16 +46,9 @@ Gradio MCP apps expose their functions as tools (with arguments and descriptions
5046
- Least surprise: tools only perform actions you prompt them to do in your assistant; browsing and lookups are read‑only.
5147
- Privacy: results returned to your client are based on your account’s visibility and permissions (for example, private org content remains private).
5248

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-
5949
## Learn more
6050

6151
- Settings and client setup: https://huggingface.co/settings/mcp
6252
- Changelog announcement: https://huggingface.co/changelog/hf-mcp-server
63-
- Agents on the Hub overview: ./agents
64-
- MCP spec and ecosystem: https://github.com/modelcontextprotocol/spec
53+
- Agents on the Hub overview:
6554

0 commit comments

Comments
 (0)