Aerostack
electrical_services

Hugging Face MCP Server — Hosted for Any AI Agent

MCP Server language Hosted language Public

Search models, datasets, and Spaces on Hugging Face — browse trending AI models, check downloads, and run inference from any agent.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "huggingface": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-huggingface",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

+2 more

Natural Language Prompt

“Use the _ping tool to verify hugging face connectivity by fetching the authenticated user. used internally by aerostack to validate credentials

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

description Overview

mcp-huggingface — Hugging Face MCP Server

Search models, datasets, and Spaces on Hugging Face — browse trending AI models, check downloads, and run inference from any agent.

Give your AI agents access to the largest open-source AI model hub. Search 900K+ models and 200K+ datasets, inspect model cards and configs, browse Spaces, list repository files, and run serverless inference — all through natural language.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-huggingface


What You Can Do

  • Search models by keyword, task, library, or author
  • Get model details with tags, downloads, safetensors info, and model card
  • Search datasets by keyword or author with download stats
  • Browse Spaces (apps/demos) with SDK info and status
  • Run serverless inference on any supported model
  • List files in model repositories with LFS details

Available Tools

Tool Description
_ping Verify HF connectivity and show authenticated user
search_models Search models by keyword, task, library, author
get_model Get model details — tags, config, downloads, model card
search_datasets Search datasets by keyword or author
get_dataset Get dataset details — card, splits, features, downloads
search_spaces Search Spaces (apps) by keyword
run_inference Run inference on a model via serverless Inference API
list_model_files List files in a model repo with sizes and LFS info

Configuration

Variable Required Description How to Get
HUGGINGFACE_TOKEN Yes Hugging Face User Access Token with read permissions huggingface.co → Settings → Access Tokens → New token → select "Read" or "Fine-grained"

For inference: Your token needs Inference permission. Some models (gated) require accepting terms on the model page first.

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "Hugging Face" and click Add to Workspace
  3. Add HUGGINGFACE_TOKEN under Project → Secrets
Example Prompts
"Search for the most popular text-generation models"
"Show me details about meta-llama/Llama-3-8B-Instruct"
"Find datasets related to code generation"
"What are the trending Spaces right now?"
"Run inference on meta-llama/Llama-3-8B-Instruct: 'Explain quantum computing in one sentence'"
"List the files in the stabilityai/stable-diffusion-xl-base-1.0 model"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-huggingface \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-HUGGINGFACE-TOKEN: hf_xxxxxxxxxxxx' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_models","arguments":{"query":"text-generation","sort":"downloads","limit":10}}}'

Security Notes

  • HF tokens are injected at the Aerostack gateway layer — never stored in the worker
  • Inference API has rate limits based on your HF plan (free tier: limited, Pro: higher)
  • Gated models require accepting terms on the model page before inference works
  • Some models may not be available for serverless inference — check model page for availability

License

MIT

terminal Tools (8)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
_ping #1

Verify Hugging Face connectivity by fetching the authenticated user. Used internally by Aerostack to validate credentials.

terminal
search_models #2

Search Hugging Face models by keyword, task, library, or author — returns name, downloads, likes, tags, and pipeline task

terminal
get_model #3

Get detailed information about a Hugging Face model — description, config, tags, files, safetensors info, and model card

terminal
search_datasets #4

Search Hugging Face datasets by keyword, task type, or author — returns name, downloads, size, and tags

terminal
get_dataset #5

Get detailed information about a Hugging Face dataset — description, card content, size, splits, features, and download stats

terminal
search_spaces #6

Search Hugging Face Spaces (apps/demos) by keyword — returns name, SDK, status, likes, and URL

terminal
run_inference #7

Run inference on a Hugging Face model using the serverless Inference API. Supports text generation, summarization, classification, embeddings, and more.

terminal
list_model_files #8

List all files in a model repository with size, LFS status, and download URLs

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category API Connectors
terminal Tools 8

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-huggingface

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

More in API Connectors

Browse API Connectors MCPs →

Frequently asked questions

What is the Hugging Face MCP server and what can it do? +

The Hugging Face MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `search_models`, `get_model`, `search_datasets`, `get_dataset`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the Hugging Face MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the Hugging Face MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Hugging Face MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the Hugging Face MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-huggingface": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-huggingface"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Hugging Face MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-huggingface", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-huggingface"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Hugging Face MCP require authentication? +

Yes. Hugging Face requires authentication. Check the MCP's documentation for the required credentials.