MCP Hfspace MCP Server

MCP Server to connect to Hugging Face spaces. Simple configuration, Claude Desktop friendly.

Local serverstdioPython

What is the MCP Hfspace MCP server?

If you want an AI assistant working directly with MCP Hfspace, the mcp hfspace mcp server is the bridge. MCP Server to connect to Hugging Face spaces. Simple configuration, Claude Desktop friendly.

What MCP Hfspace does

Read the introduction here llmindset.co.uk/resources/mcp-hfspace/

Tools it exposes

Once connected, the assistant can call these 3 tools directly:

  • Chat — The Chat tool exposed by this server
  • Prompts — Prompts for each Space are generated, and provide an opportunity to input. Bear in mind that often Spaces aren't configured with particularly helpful labels
  • Resources — A list of files in the WORK_DIR is returned, and as a convenience returns the name as "Use the file..." text. If you want to add something to Claude's context

Installing the mcp hfspace mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Where it fits

AI-service servers chain other models into your assistant, turning a single chat into a small production pipeline. MCP Hfspace sits in that group, and the shape of its toolset — Chat, Prompts, Resources — tells you what it is really for. Worth comparing against the other ai services servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by evalstate, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp hfspace mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
ChatThe Chat tool exposed by this server.
PromptsPrompts for each Space are generated, and provide an opportunity to input. Bear in mind that often Spaces aren't configured with particularly helpful labels etc. Claude is actually very good at figuring this out, and the
ResourcesA list of files in the WORK_DIR is returned, and as a convenience returns the name as "Use the file..." text. If you want to add something to Claude's context, use the paperclip - otherwise specify the filename for the M

How to install the MCP Hfspace MCP server

{
  "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)
        ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP Hfspace to Chat.
  • Use MCP Hfspace to Prompts.
  • Use MCP Hfspace to Resources.

Frequently asked questions

It connects MCP Hfspace to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Chat, Prompts, Resources) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Hfspace directly.