All integrations
Hugging Face
Search models, datasets and spaces; run inference endpoints.
AI and models
How an agent reaches it
- MCP
Official MCP server. The agent lists its tools and calls them.
- REST API
Always available. The agent calls the API directly with your credential attached.
- CLI
No official command-line tool.
How you authenticate
- OAuth
- API key
How agents reach it
- Base URL
- https://huggingface.co/api
- Pagination
- link_header
- MCP server
- https://huggingface.co/mcp
Common endpoints
| who am I | GET /whoami-v2 |
| search models | GET /models?search={q}&limit=20 |
| search datasets | GET /datasets?search={q} |
Worth knowing
- Public model and dataset metadata needs no credential.
- Serverless inference is a different host (api-inference.huggingface.co) and cold-starts with a 503 plus estimated_time.