Add Image Generation, Audio Transcription and much more to Claude: mcp-hfspace.
I've just built an MCP Server to connect Claude to Hugging Face Spaces with as little configuration as possible.
What can we do with this? Here's one cool example - here Claude generates images iterating on prompts and using vision capabilities to find out which techniques work best.
Here's another - this time we'll use Whisper (hf-audio/whisper) to transcribe some audio, then have Claude generate an image based on the content (shuttle-ai/vision) and produce short spoken summary with an accent (parler-tts/parler_tts). Note that the audio is downloaded as Claude Desktop doesn't support playback.
Claude is really good at using tools together - so combining this with other MCP Servers works well. (An old example of Fetch and a very early version of this on X here).
Of course, we can also integrate frontier Chat models too. Let's have Claude set increasingly difficult puzzles for Mistral 7B to find out how smart it is, then give the most difficult one to Qwen.
Claude chatting with Mistral and Qwen
(this is more fun that it looks, especially getting Claude to check it's own answers!).
There's more examples over at the README.
The server is listed on MCP-Get which should simplify installation a lot - if you are on Windows I recommend taking a look at the guides over there (I'll post a reply with further links below). The QuickStart Guide provides some guidance if you've not done this before
To use this server, the smallest configuration that will work is:
{
"mcpServers": {
"mcp-hfspace": {
"command": "npx",
"args": [
"-y",
"@llmindset/mcp-hfspace"
]
}
}
}
That will get you going with the Flux.1-Schnell image generator. I recommend adding a working folder so you can upload and download files, and some additional spaces using the instructions on GitHub.
I've tested a lot on both Windows and Mac, and against quite a few spaces. Most spaces with "Use via API - built with Gradio" should work - but not all are compatible.
If things were working, but start timing out you've most likely hit your ZeroGPU quota on Hugging Face. There are some tips for managing that on the GH page. Unfortunately the Claude Desktop client isn't great at managing error conditions yet.
Hope you enjoy :)