hf-mcp-server

Provides an MCP server for Hugging Face Hub and Search endpoints (plus Gradio tool integration via proxying) using multiple transports (STDIO, Streamable HTTP, Streamable HTTP JSON-RPC). Includes a management web UI for configuring/adding tools and supports optional authentication/tooling for OAuth-like flows.

Evaluated Mar 30, 2026 (21d ago)
Homepage ↗ Repo ↗ Ai Ml mcp hugging-face agents search hub integration tooling streamablehttp stdio typescript web-ui oauth
⚙ Agent Friendliness
62
/ 100
Can an agent use this?
🔒 Security
52
/ 100
Is it safe for agents?
⚡ Reliability
30
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
86
Documentation
78
Error Messages
0
Auth Simplicity
85
Rate Limits
10

🔒 Security

TLS Enforcement
70
Auth Strength
65
Scope Granularity
20
Dep. Hygiene
45
Secret Handling
55

Uses bearer-token auth patterns (HF_TOKEN) and runs over HTTPS when using the hosted endpoint (implied by https://huggingface.co/mcp and typical HTTP clients). No details are provided on TLS enforcement for self-hosted deployments, token storage/logging, rate limiting, or whether outbound checks are restricted beyond an ALLOW_INTERNAL_ADDRESS_HOSTS allowlist. Scope granularity is not documented; token permissions are likely delegated to Hugging Face token settings.

⚡ Reliability

Uptime/SLA
0
Version Stability
45
Breaking Changes
40
Error Recovery
35
AF Security Reliability

Best When

You want an agent-friendly MCP interface to Hugging Face Hub/Search and/or you need HTTP-based MCP (SSE) for multi-client session use with configurable heartbeats/timeouts.

Avoid When

You cannot securely manage and scope Hugging Face tokens, or you require comprehensive operational guarantees (SLA, documented rate limits, error-code conventions) beyond what is described here.

Use Cases

  • Connect an MCP-capable agent/IDE/desktop app to Hugging Face Hub resources (Hub API/search)
  • Enable agents to discover and call Hugging Face-related tools via MCP
  • Proxy additional StreamableHTTP-based MCP tool servers through a configurable CSV loader
  • Local development/testing of MCP tool integrations via STDIO or HTTP transports

Not For

  • Direct production-grade Hugging Face API access without MCP or without considering outbound network/security controls
  • Use cases requiring strict, published rate-limit guarantees (no rate limit details provided in README)
  • Environments where exposing OAuth/token flows or misconfigured token handling is unacceptable without additional security review

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: Authorization: Bearer <HF_TOKEN> via MCP client headers Optional AUTHENTICATE_TOOL to issue an OAuth challenge (details not included in README)
OAuth: Yes Scopes: No

README describes token-based header auth (HF token) and an optional Authenticate tool for OAuth-like flows, but does not describe fine-grained scopes or scope enforcement.

Pricing

Free tier: No
Requires CC: No

No pricing or cost model described in provided content; likely depends on Hugging Face usage and any hosting choices for the MCP server.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • In StreamableHTTPJSON mode, tools may not be listed on subsequent tool-list requests (tool listing behavior differs from stateful JSON-RPC mode).
  • Proxy tool loading via PROXY_TOOLS_CSV fetches endpoints once at startup and silently skips failures/sources returning no tools (agent may not find expected tools).
  • DEFAULT_HF_TOKEN fallback behavior: requests are serviced with HF_TOKEN from the Authorization header when present; otherwise DEFAULT_HF_TOKEN is used (avoid misconfiguration in production).
  • Some behavior is controlled by flags like GRADIO_SKIP_INITIALIZE and MCP_STRICT_COMPLIANCE; incorrect settings may change handshake/tool availability.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for hf-mcp-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered