ai
Hugging Face MCP, CLI, and Lua Integration for AI Agents
Hugging Face integration docs for AI agents: MCP gateway setup, Hugging Face CLI commands, Lua API reference, credentials, and function schemas.
7 functions 7 read 0 write Bearer token auth
Hugging Face for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
huggingface- route_slug
huggingface- package
huggingface- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Hugging Face CLIHeadless setup and direct function calls. Hugging Face MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Hugging Face MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Hugging Face.
Claude Code Hugging Face MCP setup for Claude Code. Cursor Hugging Face MCP setup for Cursor. Codex Hugging Face MCP setup for Codex. OpenAI Agents Hugging Face MCP setup for OpenAI Agents SDK. Claude Agent SDK Hugging Face MCP setup for Claude Agent SDK. Vercel AI SDK Hugging Face MCP setup for Vercel AI SDK. LangChain Hugging Face MCP setup for LangChain. LangGraph Hugging Face MCP setup for LangGraph. CrewAI Hugging Face MCP setup for CrewAI. MCP clients Hugging Face MCP setup for Generic MCP Clients.
Hugging Face CLI Matrix
Use these pages for direct Hugging Face CLI workflows in scripts, CI, cron, and agent wrappers.
CI Hugging Face CLI for CI. Cron Jobs Hugging Face CLI for cron jobs. Shell Scripts Hugging Face CLI for shell scripts. Headless Automation Hugging Face CLI for headless automation. Coding Agents Hugging Face CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
huggingface.huggingface_list_models | Read read | 8 | Search and list AI models on the Hugging Face Hub. Filter by text search, author, task (e.g. "text-generation", "image-classification"), tags, and sort by downloads, likes, or recent activity. |
huggingface.huggingface_get_model | Read read | 1 | Get detailed information about a specific Hugging Face model, including its card, tags, pipeline tag, library, downloads, likes, and file listing. |
huggingface.huggingface_list_datasets | Read read | 7 | Search and list datasets on the Hugging Face Hub. Filter by text search, author, tags, and sort by downloads, likes, or recent activity. |
huggingface.huggingface_get_dataset | Read read | 1 | Get detailed information about a specific Hugging Face dataset, including its card, tags, downloads, likes, and file listing. |
huggingface.huggingface_list_spaces | Read read | 7 | Search and list Spaces on the Hugging Face Hub. Filter by text search, author, tags, SDK, and sort by downloads, likes, or recent activity. |
huggingface.huggingface_get_space | Read read | 1 | Get detailed information about a specific Hugging Face Space, including its SDK, hardware, runtime status, and settings. |
huggingface.huggingface_get_current_user | Read read | 0 | Get the authenticated Hugging Face user's profile information, including name, username, type (user/org), and avatar. |