Hugging Face MCP Server
@nikolausm
关于 Hugging Face MCP Server
MCP server for Hugging Face API integration - Access Stable Diffusion and other AI models
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"huggingface": {
"command": "node",
"args": [
"/path/to/huggingface-mcp-server/index.js"
],
"env": {
"HUGGINGFACE_TOKEN": ""
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Hugging Face MCP Server?
An MCP (Model Context Protocol) server that provides access to Hugging Face's AI image generation models, including Stable Diffusion. It allows users to generate images from text prompts using multiple models, check API status, and manage tokens—all through the MCP interface.
How to use Hugging Face MCP Server?
Clone the repository and install dependencies with npm install. Obtain a free Hugging Face API token from your settings page and set it as the HUGGINGFACE_TOKEN environment variable. Then add the server to your Claude Desktop configuration (or any MCP client) pointing to the server's index.js file. Use the provided tools: generate_image, list_models, and check_status.
Key features of Hugging Face MCP Server
- Generate images using multiple Stable Diffusion models
- Support for negative prompts and guidance scale
- Save images locally or return as base64
- Check API status and token validity
- Free tier available with rate limits
- Model selection from SD2.1 to SDXL and more
Use cases of Hugging Face MCP Server
- Creating children's book illustrations with specific art styles
- Generating educational diagrams (e.g., anatomy posters)
- Rapid prototyping of fantasy or anime-style artwork
- Producing high-quality general-purpose images for content creation
FAQ from Hugging Face MCP Server
What models are available?
Stable Diffusion 2.1, Stable Diffusion XL, OpenJourney, Dreamlike Diffusion, and Anything v5 (anime/manga style).
Is there a free tier?
Yes, the free tier is rate-limited to approximately 10–20 requests per minute. Some models may experience queue times. For production use, upgrading to a paid plan is recommended.
How do I get a Hugging Face API token?
Go to https://huggingface.co/settings/tokens, create a new token (free), and copy it. Set it as the HUGGINGFACE_TOKEN environment variable.
How do I configure this server in Claude Desktop?
Add a mcpServers entry to ~/Library/Application Support/Claude/claude_desktop_config.json with command: "node", args: ["/path/to/index.js"], and env: { HUGGINGFACE_TOKEN: "your_token" }.
What parameters can I use for image generation?
prompt (required), model (defaults to sd-2.1), negative_prompt, guidance_scale (higher values follow prompt more closely), and save_path (to save locally instead of base64).
AI 与智能体 分类下的更多 MCP 服务器
MCP Client for Ollama (ollmcp)
joniglHarness the power of local LLMs with this TUI MCP Client for Ollama. Featuring all core MCP primitives (tools, prompts, resources), agent mode, multi-server, model switching, streaming responses, human-in-the-loop, thinking mode, model params config, system prompts, and saved pre
1Panel
1Panel-dev🔥 1Panel is a modern, open-source VPS control panel — and the only one with native AI agent support. Run Ollama models, deploy OpenClaw agents, and manage your entire server stack from one clean web interface.
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
评论