The hf MCP server connects AI agents to Hugging Face Hub, allowing access to models, datasets, and spaces. It provides tools for model inference, dataset loading, and Gradio app integration. Developers use it to deploy and interact with Hugging Face resources in AI workflows.
The hf MCP server connects AI agents to Hugging Face Hub, allowing access to models, datasets, and spaces. It provides tools for model inference, dataset loading, and Gradio app integration. Developers use it to deploy and interact with Hugging Face resources in AI workflows.
npx -y hf-mcpAdd this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"huggingface-hf-mcp-server-github": {
"command": "npx",
"args": [
"-y",
"npx -y hf-mcp"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from hf?"
API Key Required
This server requires an API key from hf. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| HF_API_KEY | Yes | Your hf API key |
"What resources are available in hf?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in hf"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in hf with [details]"
Claude will use the appropriate tool to create the resource and confirm success.
We build custom MCP integrations for B2B companies. From simple connections to complex multi-tool setups.