Calling Hugging Face Spaces from Claude Code as Agent Tools
Melvin Vivas · X video post · 2026-04-19 · 0:23 · 89 views · Open on X
Topics: AI Agents, Tool Use & MCP, AI Dev Tools & Productivity · Level: intermediate
Summary
A short demo post (no narration) showing Claude Code calling Hugging Face Spaces directly as tools. The quoted Hugging Face post says the Hub is becoming a platform where agents use and build AI. Agents can now reach about 1M Spaces and use the specialized models hosted there, such as image, audio and vision models, without you writing the integration code.
Key points
- Hugging Face Spaces (hosted ML demo apps) can be called as tools by a coding agent like Claude Code.
- Per the quoted post, agents can call roughly 1M HF Spaces, which gives them the abilities of the latest specialized models (image generation, speech, OCR, vision and so on).
- Hugging Face presents itself as a platform where agents both use AI and build it, not only a place for humans to browse models.
- Practical effect: instead of wiring up each model API yourself, you let Claude Code find and call a Space that already does the task.
- The video has no speech, and the post doesn't explain the setup. In practice this kind of integration is usually done through Hugging Face's MCP server connected to Claude Code; check the HF docs for the current setup steps.
- Free Spaces can be slow or rate-limited (shared hardware, queues, ZeroGPU quotas), so expect some variance when an agent calls them.
Resources mentioned
- Hugging Face · website · huggingface.co · free · recommended by both Bashiri Smith & Melvin Vivas
Named in the prompt as a beginner-friendly but powerful AI platform for models used in AI projects.
Also in: llama.app: Run Local Models on a Mac Without the llama.cpp CLI (Melvin Vivas on X · notes), Grok Bot workflow: turn model-release posts into Colab notebooks (Melvin Vivas on X · notes), Generate Portfolio AI Project Ideas with Claude and Hugging Face Tasks (Bashiri Smith on Facebook · notes), EmbeddingGemma 2 released on Hugging Face (Melvin Vivas on X · notes) and 48 more - Hugging Face Spaces · tool · huggingface.co · free · recommended by both Bashiri Smith & Melvin Vivas
Deploy demos publicly for free so recruiters can see them.
Also in: Every Hugging Face Space Now Has AGENTS.md for Coding Agents (Melvin Vivas on X · notes), Hugging Face Pro Spaces Credits for Image Generation (Melvin Vivas on X · notes) - Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: First impressions: Claude Code in the cloud is good and fast (Melvin Vivas on X · notes), Why Claude Code feels faster: gzipped turns and instant cloud sessions (Melvin Vivas on X · notes), Watch What Fills Your Coding Agent's Context and When to Clear (Melvin Vivas on X · notes), Claude Code's Right Sidebar and Context Breakdown (Melvin Vivas on X · notes) and 124 more
Try this
- Connect Hugging Face to Claude Code (for example through Hugging Face's MCP server) and try having it call a Space for a task like image generation or transcription.
- Browse Hugging Face Spaces to find specialized models your agent could use as tools.
- Build a Claude Code workflow that hands off specialized subtasks (image generation, speech-to-text, OCR) to Hugging Face Spaces and then combines the results.
More in AI Agents, Tool Use & MCP
- Cursor SDK: Build Agents on Cursor's Runtime, Harness and Models
- skillsbento: Free Open-Source Agent Skills for Claude
- Every Hugging Face Space Now Has AGENTS.md for Coding Agents
- A2UI v0.9: A Portable Standard for Agent-Generated UI
- Gemma 4 Running Agentic Tasks Fully On-Device on a Phone
- Gemini CLI Adds Subagents with Separate Context Windows