{"type":"mcp_server","name":"mcp-hfspace","description":"This repository provides an MCP server that connects Claude Desktop to Hugging Face Spaces, enabling functionalities like image generation with minimal setup by specifying desired spaces and a working directory.","category":"AI","language":"TypeScript","stars":388,"forks":22,"owner":"evalstate","github_url":"https://github.com/evalstate/mcp-hfspace","homepage":"https://llmindset.co.uk/resources/mcp-hfspace/","setup":"## Setup\n\n1.  Install a recent version of [NodeJS](https://nodejs.org/en/download) for your platform.\n2.  Add the following to the `mcpServers` section of your `claude_desktop_config.json` file:\n\n```json\n    \"mcp=hfspace\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@llmindset/mcp-hfspace\"\n      ]\n    }\n```\n\n3.  Ensure you are using Claude Desktop 0.78 or greater.\n4.  Supply a list of HuggingFace spaces in the arguments.\n5.  Optionally, override the default working directory by specifying the `--work-dir=/your_directory` argument or `MCP_HF_WORK_DIR` environment variable.\n6.  To use private spaces, supply your Hugging Face Token with either the  `--hf-token=hf_...` argument or `HF_TOKEN` environment variable.\n7.  It's possible to run multiple server instances to use different working directories and tokens if needed.\n8.  To use with Claude Desktop, add the server config to `~/Library/Application Support/Claude/claude_desktop_config.json` (MacOS) or `%APPDATA%/Claude/claude_desktop_config.json` (Windows).","tools":"## Available Tools\n\n1.  Image Generation (Generates images based on prompts, allowing Claude to use its vision capabilities).\n2.  Vision Model (Queries images, either uploaded or specified by filename in the working directory, or via URL).\n3.  Text-to-Speech (Converts text to audio, saving the audio file in the WORK_DIR).\n4.  Speech-to-Text (Transcribes audio files, making the text available to Claude).\n5.  Image-to-Image (Processes images using models like OmniParser to generate annotated images and text descriptions).\n6.  Chat (Enables conversational interactions with models like Qwen, allowing Claude to set reasoning puzzles and ask follow-up questions).\n7.  File Handling (Manages files in the WORK_DIR, providing Claude with access to available resources).\n8.  Private Spaces (Supports access to private Hugging Face Spaces using a Hugging Face token).","faq":null,"created_at":"2024-12-03T17:39:34+00:00","updated_at":"2025-03-28T21:25:57+00:00","source_url":"https://model-context-protocol.com/servers/mcp-claude-huggingface-spaces-server","related_articles":[]}