
evalstate/mcp-hfspace
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP Server для использования пространств HuggingFace, простой настройки и режима Claude Desktop.
Обзор
Вы можете получить доступ и настраивать сервисы Hugging Face MCP напрямую в https://hf.co/mcp,, включая пространства Gradio. Этот проект был заменён официальными серверами Hugging Face MCP и конечными точками Gradio MCP. В качестве альтернативы можно запускать hf-mcp-server локально как STDIO сервер или с надежной поддержкой SSE, потокового HTTP и потокового HTTP JSON режима. Он также запускает локальный интерфейс для выбора инструментов и конечных точек и поддерживает ToolListChangedNotifications тоже. Прочитайте введение здесь llmindset.co.uk/resources/mcp-hfspace/ Подключайтесь к Hugging Face Spaces с минимальными настройками — просто добавляйте свои пространства и начинайте! По умолчанию он подключается к black-forest-labs/FLUX.1-schnell, предоставляя возможности генерации изображений для Claude Desktop. Gradio 5.28 теперь имеет интегрированую поддержку MCP через SSE: https://huggingface.co/blog/gradio-mcp. Проверьте, поддерживает ли ваш целевое пространство MCP!
Обзор (машинный перевод)
[! СОВЕТ]
Вы можете получить доступ и настраивать сервисы Hugging Face MCP напрямую в https://hf.co/mcp,, включая пространства Gradio.
Этот проект был заменён официальными серверами Hugging Face MCP и конечными точками Gradio MCP.
В качестве альтернативы можно запускать hf-mcp-server локально как STDIO сервер или с надёжной поддержкой SSE, Streaming HTTP и Streaming HTTP JSON Mode. Он также запускает локальный интерфейс для выбора инструментов и конечных точек и поддерживает
ToolListChangedNotifications.
hf.co/mcp
MCP-HFSPACE
Прочитайте введение здесь llmindset.co.uk/resources/mcp-hfspace/
Подключайтесь к Hugging Face Spaces с минимальными настройками — просто добавляйте свои пространства и начинайте!
По умолчанию он подключается к black-forest-labs/FLUX.1-schnell, предоставляя возможности генерации изображений для Claude Desktop.
Поддержка Gradio MCP
[! СОВЕТ] Gradio 5.28 теперь имеет интегрированную поддержку MCP через SSE: https://huggingface.co/blog/gradio-mcp. Проверьте, поддерживает ли ваш целевое пространство MCP!
Установка
Пакет NPM — @llmindset/mcp-hfspace.
Установите последнюю версию NodeJS для вашей платформы, затем добавьте следующее в раздел mcpServers вашего файла claude_desktop_config.json:
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
mcp-hfspace MCP Server 🤗
[!TIP]
You can access and configure Hugging Face MCP services directly at https://hf.co/mcp, including Gradio spaces.
This project has been superceded by the official Hugging Face MCP Server and Gradio MCP Endpoints.
Alternatively you can run hf-mcp-server locally as a STDIO Server, or with robust support for SSE, Streaming HTTP and Streaming HTTP JSON Mode. This also runs a local UI for selecting tools and endpoints and supports
ToolListChangedNotificationstoo.
hf.co/mcp
mcp-hfspace
Read the introduction here llmindset.co.uk/resources/mcp-hfspace/
Connect to Hugging Face Spaces with minimal setup needed - simply add your spaces and go!
By default, it connects to black-forest-labs/FLUX.1-schnell providing Image Generation capabilities to Claude Desktop.
Gradio MCP Support
[!TIP] Gradio 5.28 now has integrated MCP Support via SSE: https://huggingface.co/blog/gradio-mcp. Check out whether your target Space is MCP Enabled!
Installation
NPM Package is @llmindset/mcp-hfspace.
Install a recent version of NodeJS for your platform, then add the following to the mcpServers section of your claude_desktop_config.json file:
"mcp-hfspace": {
"command": "npx",
"args": [
"-y",
"@llmindset/mcp-hfspace"
]
}
Please make sure you are using Claude Desktop 0.78 or greater.
This will get you started with an Image Generator.
Basic setup
Supply a list of HuggingFace spaces in the arguments. mcp-hfspace will find the most appropriate endpoint and automatically configure it for usage. An example claude_desktop_config.json is supplied below.
By default the current working directory is used for file upload/download. On Windows this is a read/write folder at \users\\AppData\Roaming\Claude\<version.number\, and on MacOS it is the is the read-only root: /.
It is recommended to override this and set a Working Directory for handling the upload and download of images and other file-based content. Specify either the --work-dir=/your_directory argument or MCP_HF_WORK_DIR environment variable.
An example configuration for using a modern image generator, vision model and text to speech, with a working directory set is below:
"mcp-hfspace": {
"command": "npx",
"args": [
"-y",
"@llmindset/mcp-hfspace",
"--work-dir=/Users/evalstate/mcp-store",
"shuttleai/shuttle-jaguar",
"styletts2/styletts2",
"Qwen/QVQ-72B-preview"
]
}
Установка
npx -y @llmindset/mcp-hfspaceКонфигурация
{
"mcpServers": {
"mcp-hfspace": {
"command": "npx"
"args": [
"-y",
"@llmindset/mcp-hfspace",
"--work-dir=~/mcp-files/ or x:/temp/mcp-files/",
"--HF_TOKEN=HF_{optional token}"
"Qwen/Qwen2-72B-Instruct",
"black-forest-labs/FLUX.1-schnell",
"space/example/specific-endpint"
(... and so on)
]
}
}
}