MCP.so
ログイン

mcp-hfspace MCP Server

@evalstate

基本情報

カテゴリ

AI とエージェント

最終更新

ライセンス

MIT

トランスポート

stdio

作者

evalstate

mcp-hfspace MCP Server について

MCP Server to Use HuggingFace spaces, easy configuration and Claude Desktop mode.

mcp-hfspace MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-hfspace": {
      "command": "npx",
      "args": [
        "-y",
        "@llmindset/mcp-hfspace"
      ]
    }
  }
}

mcp-hfspace MCP Server のツール

3

A list of available file and resources. If the User requests things like 'most recent image' or 'the audio' use this tool to identify the intended resource.This tool returns 'resource uri', 'name', 'size', 'last modified' and 'mime type' in a markdown table

Use semantic search to find an endpoint on the `Hugging Face Spaces` service. The search term will usually be 3-7 words describing a task or activity the Person is trying to accomplish. The results are returned in a markdown table. Present all results to the Person. Await specific guidance from the Person before making further Tool calls.

Call the FLUX.1-schnell endpoint /infer

概要

What is mcp-hfspace?

mcp-hfspace is an MCP server that connects Claude Desktop and other MCP clients to Hugging Face Spaces, enabling access to thousands of AI models and applications. It is designed for developers and researchers who want to integrate Hugging Face’s AI capabilities into their workflows with minimal setup.

How to use mcp-hfspace?

Install NodeJS, then add the server to your claude_desktop_config.json with the command npx -y @llmindset/mcp-hfspace. Supply a list of Hugging Face Space names as arguments. Optionally set a working directory via --work-dir or MCP_HF_WORK_DIR, and supply a Hugging Face token for private spaces via --hf-token or HF_TOKEN.

Key features of mcp-hfspace

  • Connects to any Hugging Face Space automatically
  • Default space: black-forest-labs/FLUX.1-schnell for image generation
  • Supports file upload, download, and URL inputs
  • Private spaces supported with Hugging Face token
  • Multiple server instances for different tokens/working directories
  • Claude Desktop Mode with embedded image returns

Use cases of mcp-hfspace

  • Generate and compare images using different models (e.g., FLUX.1-schnell vs shuttle-3.1-aesthetic)
  • Use vision models to analyze images from files or URLs
  • Convert text to speech or transcribe audio with speech-to-text spaces
  • Perform image-to-image tasks like background removal and annotation
  • Run chat models like Qwen for reasoning tasks

よくある質問

1

What has replaced this project?

The 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 with SSE support.

2

What are the runtime requirements?

Requires NodeJS and Claude Desktop 0.78 or greater. The server is installed via npm as `@llmindset/mcp-hfspace`.

3

How does file handling work?

In Claude Desktop Mode, images are returned in tool responses; other files are saved in the working directory with their path returned. URLs can also be supplied as inputs.

4

What limitations exist?

Endpoints with unnamed parameters are unsupported. Some complex Python types may not fully translate to MCP formats. Claude Desktop may timeout on long jobs (hard 60s limit). Check the working directory for results produced after timeout.

5

How do I configure private spaces and tokens?

Supply a Hugging Face token via `--hf-token=hf_...` or the `HF_TOKEN` environment variable. Private spaces are supported, and the token is used to download generated content.

コメント

「AI とエージェント」の他のコンテンツ