mcp-hfspace  by evalstate

MCP server connects Hugging Face Spaces to Claude Desktop

Created 9 months ago
358 stars

Top 78.0% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a server to connect Claude Desktop with Hugging Face Spaces, enabling easy integration of various AI models for tasks like image generation, vision, and text-to-speech. It targets users of Claude Desktop seeking to leverage a wide array of Hugging Face models with minimal configuration.

How It Works

The server acts as a bridge, translating Claude's Model Context Protocol (MCP) requests into calls to Hugging Face Spaces. It automatically discovers and configures endpoints for specified Spaces, handling file uploads/downloads and model outputs. The default "Claude Desktop Mode" integrates model outputs directly into Claude's context or saves files to a specified working directory, optimizing the user experience.

Quick Start & Requirements

  • Install via NPM: @llmindset/mcp-hfspace
  • Requires NodeJS and Claude Desktop 0.78 or greater.
  • Configuration involves adding the server to claude_desktop_config.json.
  • Official documentation: llmindset.co.uk/resources/mcp-hfspace/

Highlighted Details

  • Supports image generation, vision models, text-to-speech, speech-to-text, and chat models.
  • Handles file I/O via a configurable working directory.
  • Supports private Hugging Face Spaces with a provided token.
  • Can specify exact API endpoints within a Space.

Maintenance & Community

  • Developed by evalstate.
  • No explicit community links (Discord/Slack) or roadmap are provided in the README.

Licensing & Compatibility

  • The README does not explicitly state a license. The NPM package name suggests it's available via NPM.

Limitations & Caveats

  • Endpoints with unnamed parameters are unsupported.
  • Complex Python type translations to MCP formats may have limitations.
  • Claude Desktop's error handling and timeouts (around 60s) can affect long-running jobs on ZeroGPU Spaces.
  • Hugging Face ZeroGPU quotas may be a bottleneck; using a personal HF token for dedicated hardware is recommended for production.
Health Check
Last Commit

3 months ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
1
Star History
11 stars in the last 30 days

Explore Similar Projects

Starred by Addy Osmani Addy Osmani(Head of Chrome Developer Experience at Google), Victor Taelin Victor Taelin(Author of Bend, Kind, HVM), and
2 more.

chatbox by chatboxai

0.5%
37k
Desktop client app for AI models/LLMs
Created 2 years ago
Updated 5 days ago
Feedback? Help us improve.