huggingface-mcp

huggingface-mcp

3.2

If you are the rightful owner of huggingface-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a Model Context Protocol (MCP) server for interacting with the Hugging Face Hub API, focusing on managing Spaces.

The Hugging Face Hub MCP Server is designed to facilitate seamless interaction with the Hugging Face Hub API, specifically targeting the management of Spaces. This server provides a comprehensive suite of tools for users to efficiently manage their Spaces, including creating, updating, and deleting Spaces, as well as managing files within them. It also offers functionalities to retrieve logs and runtime information, search for Spaces, and modify Space settings such as hardware, privacy, and SDK options. The server is built using TypeScript and requires Node.js for installation and execution. It leverages a hardcoded API token for authentication, ensuring that all operations are securely performed under the authenticated user's account. This server is ideal for developers and organizations looking to automate and streamline their workflow with Hugging Face Spaces.

Features

  • List, create, update, and delete Hugging Face Spaces
  • Manage files within Spaces (list, get, upload, delete)
  • Get Space logs and runtime information
  • Search for Spaces
  • Change Space settings (hardware, privacy, SDK)

Tools

  1. list-my-spaces

    List all Hugging Face spaces for the authenticated user

  2. get-spaces-by-user

    List Hugging Face spaces by a specific user or organization

  3. get-space

    Get details about a specific Hugging Face space

  4. create-space

    Create a new Hugging Face space

  5. duplicate-space

    Duplicate an existing Hugging Face space

  6. update-space

    Update metadata of a Hugging Face space

  7. delete-space

    Delete a Hugging Face space

  8. rename-space

    Rename a Hugging Face space

  9. get-space-hardware

    Get available hardware options for Hugging Face spaces

  10. get-space-runtimes

    Get available runtime options for Hugging Face spaces

  11. restart-space

    Restart a Hugging Face space

  12. pause-space

    Pause a running Hugging Face space

  13. list-space-files

    List files in a Hugging Face space

  14. get-space-file

    Get the content of a file from a Hugging Face space

  15. upload-text-file

    Upload text content to a file in a Hugging Face space

  16. upload-file

    Upload a file from the local filesystem to a Hugging Face space

  17. delete-space-file

    Delete a file from a Hugging Face space

  18. get-space-logs

    Get logs for a Hugging Face space

  19. search-spaces

    Search for Hugging Face spaces