How to integrate Hugging Face MCP with OpenClaw

OpenClaw is the fastest growing agent harness out there, which can work 24/7 to automate almost any kind of tasks. However, its capabilities are limited to the tools it has access to. Composio allows your OpenClaw to access Hugging Face with authentication management handled for you. You can execute actions on Hugging Face via your favorite OpenClaw interface (Telegram, WhatsApp, TUI, etc), whichever you prefer.

Hugging Face logoHugging Face
Api KeyOauth2

Hugging Face is an open-source platform for building, training, and deploying machine learning models. It empowers developers with easy access to state-of-the-art AI tools and model sharing.

143 Tools

Introduction

OpenClaw is the fastest growing agent harness out there, which can work 24/7 to automate almost any kind of tasks. However, its capabilities are limited to the tools it has access to. Composio allows your OpenClaw to access Hugging Face with authentication management handled for you. You can execute actions on Hugging Face via your favorite OpenClaw interface (Telegram, WhatsApp, TUI, etc), whichever you prefer.

Also integrate Hugging Face with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Handling Large tool responses out of LLM context to minimize context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

How to install Hugging Face with OpenClaw

Using Composio API Key and Setup Prompt

Copy the setup prompt from the OpenClaw dashboard
  • Run it in your OpenClaw chat interface.
  • Authenticate Hugging Face from the dashboard
  • Go back to your OpenClaw interface and start asking questions.

Using OpenClaw/Composio Plugin

1. Install OpenClaw Composio plugin

bash
openclaw plugins install @composio/openclaw-plugin

2. Copy the API Key from dashboard.composio.dev

3. Setup OpenClaw Config

bash
openclaw config set plugins.entries.composio.config.consumerKey "ck_your_key_here"

4. Restart OpenClaw

bash
openclaw gateway restart

5. Go to your chat interface and start asking questions.

6. When prompted, authenticate the app and you're all set.

How It Works

The plugin connects to Composio's MCP server at https://connect.composio.dev/mcp and registers all available tools directly into the OpenClaw agent. Tools are called by name — no extra search or execute steps needed.

If a tool returns an auth error, the agent will prompt you to connect that toolkit at dashboard.composio.dev.

Configuration

bash
{
  "plugins": {
    "entries": {
      "composio": {
        "enabled": true,
        "config": {
          "consumerKey": "ck_your_key_here"
        }
      }
    }
  }
}
OptionDescriptionDefault
enabledEnable or disable the plugintrue
consumerKeyYour Composio consumer key (ck_...)
mcpUrlMCP server URL (advanced)https://connect.composio.dev/mcp

What is the Hugging Face MCP server, and what's possible with it?

The Hugging Face MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Hugging Face account. It provides structured and secure access so your agent can perform Hugging Face operations on your behalf.

Conclusion

You've successfully integrated Hugging Face with OpenClaw using Composio plugin. Now interact with Hugging Face directly from your terminal, Web UI, or any messenger app using natural language commands.

Key benefits of this setup:

  • Seamless integration across TUI, Web UIs, and Messenger apps like Telegram, WhatsApp, Slack, etc.
  • Natural language commands for Hugging Face operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • Programmatic tool calling for complex tool chaining

Next steps:

  • Try asking OpenClaw to perform various Hugging Face operations
  • Explore cross-app workflows by connecting more toolkits like Calendar, Slack, Notion, etc.
  • Build complex automation scripts that leverage OpenClaw's 24/7 running capabilities
TOOLS

Supported Tools

Every Hugging Face action and event your agent gets out of the box.

Change Discussion Status

Tool to change the status of a Hugging Face repository discussion.

Check Dataset Validity

Tool to check whether a specific dataset is valid on Hugging Face Hub.

Check Models Upload Method

Tool to check if files should be uploaded through the Large File mechanism or directly.

Check Spaces Upload Method

Tool to check if files should be uploaded through the Large File mechanism or directly to Hugging Face Spaces.

Claim Paper Authorship

Tool to claim authorship of a paper on Hugging Face.

Request Repository Access

Tool to request access to a gated repository on Hugging Face Hub.

Create Collection

Tool to create a new collection on Hugging Face.

Create Datasets Branch

Tool to create a new branch in a Hugging Face dataset repository.

Create Datasets Commit

Tool to create a commit in a Hugging Face dataset repository.

Check Dataset File Upload Method

Tool to check if files should be uploaded via Large File Storage (LFS) or directly to a Hugging Face dataset repository.

Create Datasets Tag

Tool to create a tag on a Hugging Face dataset repository.

Create Discussion

Tool to create a new discussion on a Hugging Face repository (model, dataset, or Space).

Create Discussion Comment

Tool to create a new comment on a Hugging Face repository discussion.

Pin discussion

Tool to pin or unpin a discussion on a Hugging Face repository (model, dataset, or Space).

Create models branch

Tool to create a new branch in a Hugging Face model repository.

Create Models Commit

Tool to create a commit to a Hugging Face model repository.

Create Models Tag

Tool to create a tag on a Hugging Face model repository.

Create Paper Comment

Tool to create a new comment on a Hugging Face paper.

Create Papers Comment Reply

Tool to create a reply to a comment on a Hugging Face paper.

Create Papers Index

Tool to index a paper from arXiv by its ID on Hugging Face.

Create Repository

Tool to create a new repository (model, dataset, or Space) on Hugging Face Hub.

Create spaces branch

Tool to create a new branch in a Hugging Face space repository.

Create Spaces Commit

Tool to create a commit in a Hugging Face Space repository.

Create or update Space secret

Tool to create or update a secret in a Hugging Face Space.

Create Spaces Tag

Tool to create a tag on a Hugging Face space repository.

Create or update Space variable

Tool to create or update a variable in a Hugging Face Space.

Create SQL Console Embed

Tool to create a SQL Console embed for querying datasets on Hugging Face.

Create Webhook

Tool to create a webhook on Hugging Face that triggers on repository or discussion events.

Delete dataset branch

Tool to delete a branch from a Hugging Face dataset repository.

Delete Dataset Tag

Tool to delete a tag from a Hugging Face dataset.

Delete discussion

Tool to delete a discussion from a Hugging Face repository.

Delete network CIDR list

Tool to delete a network CIDR list entry from Hugging Face Inference Endpoints.

Delete notifications

Tool to delete notifications from Hugging Face.

Delete Settings Webhook

Tool to delete a webhook from Hugging Face settings.

Delete space branch

Tool to delete a branch from a Hugging Face space repository.

Delete space secret

Tool to delete a secret from a Hugging Face space.

Delete Spaces Tag

Tool to delete a tag from a Hugging Face space.

Delete space variable

Tool to delete a variable from a Hugging Face space.

Filter dataset rows

Tool to filter rows in a Hugging Face dataset split based on SQL-like query conditions.

Generate Chat Completion

Tool to generate a response given a list of messages in a conversational context.

Generate Text Embeddings

Tool to convert text into vector embeddings for feature extraction, semantic search, and similarity tasks.

Get Daily Papers

Tool to retrieve daily papers from Hugging Face.

Get Dataset Croissant Metadata

Tool to get Croissant metadata about a Hugging Face dataset.

Get Dataset First Rows

Tool to get the first 100 rows of a dataset split along with column data types and features.

Get Dataset Info

Tool to get general information about a dataset including description, citation, homepage, license, and features (column schemas).

Get Dataset Repository Info

Tool to retrieve detailed information about a Hugging Face dataset repository.

Get Dataset Rows

Tool to retrieve a slice of rows from a Hugging Face dataset split at any given location (offset).

Get Datasets Compare

Tool to get a comparison (diff) between two revisions of a Hugging Face dataset.

Get Dataset Size

Tool to get the size of a Hugging Face dataset including number of rows and size in bytes.

Get Datasets JWT

Tool to generate a JWT token for accessing a Hugging Face dataset repository.

Get Datasets Leaderboard

Tool to retrieve evaluation results ranked by score for a dataset's leaderboard.

Get Dataset Notebook URL

Tool to get a Jupyter notebook URL from a Hugging Face dataset repository.

Get Datasets Resolve

Tool to resolve and download a file from a Hugging Face dataset repository.

Get Dataset Security Scan

Tool to retrieve the security scan status of a Hugging Face dataset repository.

Get Dataset Tags by Type

Tool to retrieve all possible tags used for datasets on Hugging Face, grouped by tag type.

Get Dataset Statistics

Tool to get comprehensive statistics about a dataset split including column statistics and data distribution information.

Get dataset repository size

Tool to get the total size of a Hugging Face dataset repository at a specific revision and path.

Get Datasets XET Read Token

Tool to get a read short-lived access token for XET from Hugging Face datasets.

Get Discussion Details

Tool to get detailed information about a specific discussion or pull request on Hugging Face Hub.

Get Discussion Details

Tool to retrieve discussion details from a Hugging Face repository.

Get Available Job Hardware

Tool to retrieve available hardware configurations for Hugging Face Jobs with their specifications and pricing.

Get Model Information

Tool to retrieve detailed information about a Hugging Face model repository.

Get Models Compare

Tool to compare two revisions of a Hugging Face model repository.

Get Models JWT

Tool to generate a JWT token for accessing a Hugging Face model repository.

Get Models Notebook

Tool to retrieve a Jupyter notebook URL from a Hugging Face model repository.

Get Model Security Scan Status

Tool to retrieve the security scan status of a Hugging Face model repository.

Get model repository size

Tool to get the total size of a Hugging Face model repository at a specific revision and path.

Get Model XET Read Token

Tool to retrieve a short-lived XET read access token for a Hugging Face model repository.

Get Model Tags By Type

Tool to retrieve all possible tags used for Hugging Face models, grouped by tag type.

Get Organization Avatar

Tool to retrieve the avatar URL for a Hugging Face organization.

Get Organization Members

Tool to retrieve a list of members for a Hugging Face organization.

Get Organization Social Handles

Tool to retrieve an organization's social media handles from Hugging Face.

Get Resolve

Tool to resolve a file in a Hugging Face repository.

Get Resolve Cache Datasets

Tool to resolve a file from cache in a Hugging Face dataset repository.

Get Resolve Cache Models

Tool to resolve and retrieve files from the Hugging Face model cache.

Get Resolve Cache Spaces

Tool to resolve and retrieve a file from Hugging Face Spaces cache.

Get Billing Usage

Tool to retrieve user billing usage for a given period from Hugging Face.

Get Jobs Usage

Tool to retrieve Jobs usage and billing information for the current subscription period from Hugging Face.

Get Live Billing Usage

Tool to retrieve live billing usage stream from Hugging Face.

Get Billing Usage V2

Tool to retrieve user billing usage for a custom date range from Hugging Face.

Get MCP Settings

Tool to retrieve MCP (Model Context Protocol) tools configuration for the authenticated user.

Get Settings Webhook

Tool to retrieve a specific webhook configuration from Hugging Face settings.

Get Space Info

Tool to retrieve detailed information about a Hugging Face Space repository.

Get Spaces Compare

Tool to compare two revisions of a Hugging Face Space repository.

Get Spaces Events

Tool to stream status updates for a Hugging Face Space using SSE protocol.

Get Spaces JWT

Tool to generate a JWT token for accessing a Hugging Face space repository.

Get Space Metrics

Tool to get live metrics for a specific Space in a streaming fashion, with SSE protocol, such as current Zero-GPU usage.

Get Spaces Notebook

Tool to retrieve a Jupyter notebook URL from a Hugging Face space repository.

Get Spaces Resolve

Tool to resolve and retrieve a file from a Hugging Face Space repository.

Get Space Security Scan Status

Tool to retrieve the security scan status of a Hugging Face space repository.

Get space repository size

Tool to get the total size of a Hugging Face space repository at a specific revision and path.

Get Space XET Read Token

Tool to retrieve a short-lived XET read access token for a Hugging Face Space repository.

Get Spaces XET Write Token

Tool to retrieve a short-lived XET write access token for a Hugging Face space repository.

Get Trending Repositories

Tool to retrieve trending repositories from Hugging Face.

Get User Avatar

Tool to retrieve the avatar URL for a Hugging Face user.

Get User Overview

Tool to retrieve a comprehensive overview of a Hugging Face user's profile.

Get User Social Handles

Tool to retrieve a user's social media handles from Hugging Face.

Get Authenticated User Info

Tool to get information about the authenticated Hugging Face user including username, email, organizations, and token details.

Handle Dataset User Access Request

Tool to handle a user's access request to a gated Hugging Face dataset.

List Collections

Tool to list collections on the Hugging Face Hub.

List Dataset Parquet Files

Tool to get the list of Parquet files for a dataset.

List Dataset Paths Info

Tool to list detailed information about specific paths in a Hugging Face dataset repository.

List Datasets

Tool to list datasets on the Hugging Face Hub.

List Dataset Commits

Tool to list commits from a Hugging Face dataset repository.

List Dataset Splits

Tool to get the list of subsets and splits of a dataset.

List Dataset References

Tool to list all references (branches, tags, converts, pull requests) in a Hugging Face dataset repository.

List datasets tree

Tool to list the content of a Hugging Face dataset repository tree with pagination support.

List Dataset Access Requests

Tool to list access requests for a gated Hugging Face dataset repository.

List Discussions

Tool to list discussions for a Hugging Face repository.

List Repository Discussions

Tool to list discussions and pull requests for a Hugging Face repository.

List Available Documentation

Tool to retrieve the list of available documentation from Hugging Face.

List Inference Endpoints

Tool to list Hugging Face Inference Endpoints for a specific user or organization.

List models on Hugging Face Hub

Tool to list models on the Hugging Face Hub with filtering options.

List Model Commits

Tool to list commits from a Hugging Face model repository.

List Model Paths Info

Tool to list detailed information about specific paths in a Hugging Face model repository.

List Model References

Tool to list all references (branches, tags, converts, and optionally pull requests) in a Hugging Face model repository.

List model repository tree

Tool to list the contents of a Hugging Face model repository tree at a specific revision and path, with pagination support.

List Notifications

Tool to list notifications for the authenticated Hugging Face user.

List Repository Commits

Tool to list commits for a Hugging Face repository.

List repository files

Tool to get the file tree of a Hugging Face repository with pagination support.

List Webhooks

Tool to list all webhooks configured in Hugging Face settings.

List Spaces on Hugging Face Hub

Tool to list Spaces on the Hugging Face Hub with filtering options.

List Space Commits

Tool to list commits from a Hugging Face Space repository.

List Available Space Hardware

Tool to retrieve available hardware configurations for Hugging Face Spaces with their specifications and pricing.

List Space LFS Files

Tool to list LFS (Large File Storage) files from a Hugging Face Space repository.

List Space Paths Info

Tool to list detailed information about specific paths in a Hugging Face space repository.

List Space References

Tool to list all references (branches, tags, converts, pull requests) in a Hugging Face space repository.

List spaces tree

Tool to list the content of a Hugging Face space repository tree with pagination support.

List Cloud Provider Vendors

Tool to list available cloud provider vendors for Hugging Face Inference Endpoints.

Search dataset

Tool to search text in a dataset split on Hugging Face.

Search Documentation

Tool to search Hugging Face documentation across all products and libraries.

Search Papers

Tool to perform hybrid semantic/full-text search on papers in Hugging Face.

Squash Dataset Commits

Tool to squash all commits in a dataset ref into a single commit with the given message.

Squash Spaces Commits

Tool to squash all commits in a space ref into a single commit with the given message.

Update Dataset Settings

Tool to update settings for a Hugging Face dataset repository.

Update Discussion Title

Tool to change the title of an existing discussion on a Hugging Face repository (model, dataset, or Space).

Update Model Repository Settings

Tool to update settings for a Hugging Face model repository.

Update Notification Settings

Tool to update notification settings for the authenticated Hugging Face user.

Update Watch Settings

Tool to update watch settings for your Hugging Face account.

Update Webhook

Tool to update an existing webhook in Hugging Face settings.

Update Spaces Repository Settings

Tool to update settings for a Hugging Face Spaces repository.

Update SQL Console Embed

Tool to update an existing SQL console embed for a Hugging Face dataset.

Enable or Disable Webhook

Tool to enable or disable a webhook on Hugging Face.

FAQ

Frequently asked questions

With a standalone Hugging Face MCP server, the agents and LLMs can only access a fixed set of Hugging Face tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Hugging Face and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. OpenClaw fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Hugging Face tools.

Yes, absolutely. You can configure which Hugging Face scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Hugging Face data and credentials are handled as safely as possible.

Start with Hugging Face.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Hugging Face tool your agent needs.Free to start.

Start building