KosmoKrator

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.

6 functions 5 read 1 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
hugging-face
route_slug
hugging-face
package
hugging-face
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Hugging Face MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Hugging Face.

Hugging Face CLI Matrix

Use these pages for direct Hugging Face CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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_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_current_user Read read 0 Get the authenticated Hugging Face user's profile information, including name, username, type (user/org), and avatar.