data
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.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.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
hugging-face.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. |
hugging-face.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. |
hugging-face.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. |
hugging-face.huggingface_get_dataset | Read read | 1 | Get detailed information about a Hugging Face dataset, including card data, tags, downloads, likes, and files. |
hugging-face.huggingface_inference | Write write | 4 | Run inference on a Hugging Face model via the serverless Inference API. Supports text generation, summarization, translation, classification, image analysis, and more. The payload structure depends on the model's task; refer to the Hugging Face Inference API docs for model-specific formats. |
hugging-face.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. |
hugging-face.huggingface_get_space | Read read | 1 | Get detailed information about a Hugging Face Space, including SDK, runtime, tags, likes, and files. |
hugging-face.huggingface_get_current_user | Read read | 0 | Get the authenticated Hugging Face user's profile information, including name, username, type (user/org), and avatar. |
hugging-face.huggingface_list_commits | Read read | 3 | List commits for a Hugging Face model, dataset, or Space repository at a revision. |
hugging-face.huggingface_list_refs | Read read | 2 | List branches, tags, and refs for a Hugging Face model, dataset, or Space repository. |
hugging-face.huggingface_list_tree | Read read | 5 | List repository tree contents for a model, dataset, or Space at a revision and optional nested path. |
hugging-face.huggingface_get_scan_status | Read read | 2 | Get the Hugging Face Hub security scan status for a model, dataset, or Space repository. |
hugging-face.huggingface_list_model_tags | Read read | 0 | List Hugging Face model tags grouped by type, such as task, library, language, and license. |
hugging-face.huggingface_list_dataset_tags | Read read | 0 | List Hugging Face dataset tags grouped by type, such as task category, language, modality, and license. |
hugging-face.huggingface_list_space_hardware | Read read | 0 | List Hugging Face Space hardware options for creating or upgrading Spaces. |
hugging-face.huggingface_create_repo | Write write | 7 | Create a Hugging Face model, dataset, or Space repository. Use type values "model", "dataset", or "space". |
hugging-face.huggingface_api_get | Read read | 2 | Call a relative Hugging Face Hub API GET path, such as "/models-tags-by-type". Absolute URLs are rejected. |
hugging-face.huggingface_api_post | Write write | 2 | Call a relative Hugging Face Hub API POST path with a JSON body. Absolute URLs are rejected. |
hugging-face.huggingface_api_put | Write write | 2 | Call a relative Hugging Face Hub API PUT path with a JSON body. Absolute URLs are rejected. |
hugging-face.huggingface_api_delete | Write write | 2 | Call a relative Hugging Face Hub API DELETE path. Absolute URLs are rejected. |