CuratedMCP
✨
OpenAI Agents SDK
Free

How to Install Hugging Face MCP in OpenAI Agents SDK

Hugging Face's official MCP server for searching models, datasets, Spaces and papers.

What Hugging Face MCP does

Hugging Face's official remote MCP server. Lets an agent search the Hub for models, datasets, Spaces and papers, and call Gradio Spaces as tools. Works anonymously, or sign in with your Hugging Face account for more.

huggingface
models
datasets
inference
ml

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStreamableHttp

mcp_server = MCPServerStreamableHttp(params={"url": "https://huggingface.co/mcp"})

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain Hugging Face MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://www.curatedmcp.com/api/badge/hugging-face-mcp)](https://www.curatedmcp.com/marketplace/hugging-face-mcp)