> [!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 ToolListChangedNotifications too. 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: 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\ Text Output: david bowie _If you are uploading something to Claude's context use the Paperclip Attachment button, otherwise specify the filename for the Server to send directly._ We can also supply a URL. For example : use paligemma to detect humans in https://e3.365dm.com/24/12/1600x900/skynews-taylor-swift-eras-tour_6771083.jpg?20241209000914 -> One person is detected in the image - Taylor Swift on stage. Example 3 - Text-to-Speech (Download Audio) In _Claude Desktop Mode_, the audio file is saved in the WORK_DIR, and Claude is notified of the creation. If not in desktop mode, the file is returned as a base64 encoded resource to the Client (useful if it supports embedded Audio attachments). Example 4 - Speech-to-Text (Upload Audio) Here, we use hf-audio/whisper-large-v3-turbo to transcribe some audio, and make it available to Claude. Example 5 - Image-to-Image In this example, we specify the filename for microsoft/OmniParser to use, and get returned an annotated Image and 2 separate pieces of text: descriptions and coordinates. The prompt used was use omniparser to analyse ./screenshot.png and use the analysis to produce an artifact that reproduces that screen. DawnC/Pawmatch is also good at this. Example 6 - Chat In this example, Claude sets a number of reasoning puzzles for Qwen, and asks follow-up questions for clarification. Specifying API Endpoint If you need, you can specify a specific API Endpoint by adding it to the spacename. So rather than passing in Qwen/Qwen2.5-72B-Instruct you would use Qwen/Qwen2.5-72B-Instruct/model_chat. Claude Desktop Mode This can be disabled with the option --desktop-mode=false or the environment variable CLAUDE_DESKTOP_MODE=false. In this case, content as returned as an embedded Base64 encoded Resource.