Try Bifrost Enterprise free for 14 days.
Request access
[ Confirm upstream transport MCP ]

How to Use Hugging Face MCP Server with Bifrost

Connect to the Hugging Face Hub APIs programmatically: semantic search for spaces and papers, exploration of datasets and models, and access to all compatible MCP Gradio tool spaces!

[ MCP SERVER SUMMARY ]

Hugging Face MCP server summary

Connect to the Hugging Face Hub APIs programmatically: semantic search for spaces and papers, exploration of datasets and models, and access to all compatible MCP Gradio tool spaces! Connect Hugging Face through Bifrost MCP Gateway to centralize access control, virtual keys, and tool-call observability for your AI assistants.

PropertyDetails
CompanyUpstream maintainer
Connection typeConfirm upstream transport
AuthenticationVaries by upstream server
Package or endpointSee upstream documentation
CapabilitiesHugging Face tools over MCP, AI assistant connectivity, Governed tool access through Bifrost
Official documentationHugging Face MCP documentation

Before you start

  • Review the Hugging Face upstream documentation for its installation requirements
  • Obtain any credentials required by the upstream service
  • A running Bifrost MCP Gateway instance

What you can do with Hugging Face

  • Connect to the Hugging Face Hub APIs programmatically: semantic search for spaces and papers, exploration of datasets and models, and access to all compatible MCP Gradio tool spaces!
  • Expose Hugging Face tools to Claude, Cursor, and other MCP clients through one endpoint
  • Apply virtual keys, tool allowlists, and audit logging at the gateway
MCP ServerIntegration

[ HOW TO CONNECT ]

Connect Hugging Face to Bifrost in three steps

1

Install Bifrost

Start the gateway locally or deploy in your VPC.

npx -y @maximhq/bifrost
2

Add Hugging Face in MCP Gateway

Open MCP Gateway in the Bifrost dashboard, click New MCP Server, and select the transport documented by the upstream server. Or register via the API below.

• Confirm the transport, command or endpoint, and authentication requirements in the Hugging Face upstream documentation.

• Replace every placeholder in the example before sending the request.

3

Point clients at Bifrost /mcp

Configure Claude Desktop, Cursor, or Claude Code to use your Bifrost endpoint with a virtual key instead of connecting directly to Hugging Face.

{
  "mcpServers": {
    "bifrost": {
      "url": "http://localhost:8080/mcp",
      "headers": {
        "Authorization": "Bearer vk_your_virtual_key"
      }
    }
  }
}

[ EXAMPLE CONFIG ]

Register Hugging Face via API

Add this MCP client with a POST to /api/mcp/client. See Connecting to MCP Servers for full options.

# For a remote HTTP or SSE server:
curl -X POST http://localhost:8080/api/mcp/client \
  -H "Content-Type: application/json" \
  -d '{
    "name": "hugging-face",
    "connection_type": "<http|sse>",
    "connection_string": "<upstream MCP endpoint>",
    "tools_to_execute": ["*"]
  }'

# For a local STDIO server:
curl -X POST http://localhost:8080/api/mcp/client \
  -H "Content-Type: application/json" \
  -d '{
    "name": "hugging-face",
    "connection_type": "stdio",
    "stdio_config": {
      "command": "<upstream command>",
      "args": ["<arg>"]
    },
    "tools_to_execute": ["*"]
  }'

[ WHY BIFROST ]

Run Hugging Face through one governed gateway

Access control

Virtual keys, RBAC, and tool allowlists per team or agent.

Cost governance

Attribute MCP tool spend alongside LLM usage in one view.

Observability

Log every tool call with latency, server, and virtual key metadata.

Credential isolation

Upstream secrets stay in the gateway — not on every laptop.

[ FAQ ]

Common questions

What does the Hugging Face MCP server do?

Connect to the Hugging Face Hub APIs programmatically: semantic search for spaces and papers, exploration of datasets and models, and access to all compatible MCP Gradio tool spaces! The exact tools available depend on the upstream server version and configuration.

How do I connect Hugging Face to Bifrost?

Check the upstream documentation to determine whether Hugging Face uses STDIO, Streamable HTTP, or SSE. Then add it as an MCP client in Bifrost using the corresponding command or endpoint.

Does Bifrost replace the Hugging Face MCP server?

No. Bifrost connects to Hugging Face as an upstream MCP client and adds a governed gateway between that server and your AI assistants.

[ MCP GATEWAY ]

One gateway for Hugging Face and every other MCP server

Bifrost MCP Gateway gives you tool-level access control, audit logs, and up to 92% lower token costs when agents orchestrate multiple tools.