Hugging Face MCP by usefulapi

Search the Hub, papers and Spaces; list repo files, credits and notifications in Hugging Face.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
88%
Naming quality
77%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (2)

  • LOWTool 'huggingface_get_organization_credits' name length outside 3-30 rangein huggingface_get_organization_credits
  • LOWTool 'huggingface_list_organization_members' name length outside 3-30 rangein huggingface_list_organization_members

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~2,282Tokens (tool definitions)
~1.2 KBTypical response size
Moderate attention impact (1.78% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "huggingface": {
      "url": "https://huggingface.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://huggingface.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (14)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢huggingface_whoami

Show the Hugging Face account this token belongs to and the token's role. Good first call to confirm the connection. Hub API: GET /api/whoami-v2.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_get_credits

Show the account's credits balance (USD), billing mode and the purchased, granted and monthly included balances with expiry dates. Hub API: GET /api/settings/billing/credits.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_get_organization_credits(organization)

Show an organization's credits balance and billing mode. Needs a token with access to billing for that organization. Hub API: GET /api/organizations/{name}/billing/credits.

Input Schema

{
  "type": "object",
  "properties": {
    "organization": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    }
  },
  "required": [
    "organization"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_list_organization_members(organization, search, limit, cursor)

List the members of an organization, with optional search by name. Needs an organization admin token. Hub API: GET /api/organizations/{name}/members.

Input Schema

{
  "type": "object",
  "properties": {
    "organization": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    },
    "search": {
      "description": "Filter members by username or name.",
      "type": "string"
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    },
    "cursor": {
      "description": "nextCursor from the previous page's response, to fetch the next page.",
      "type": "string"
    }
  },
  "required": [
    "organization"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_list_notifications(page, readStatus, repoType, mention)

List the account's notifications (discussions, pull requests, papers, mentions), newest first. Hub API: GET /api/notifications.

Input Schema

{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number, starting at 0.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "readStatus": {
      "description": "Show all notifications or only unread ones.",
      "type": "string",
      "enum": [
        "all",
        "unread"
      ]
    },
    "repoType": {
      "description": "Only notifications for this repository kind.",
      "type": "string",
      "enum": [
        "model",
        "dataset",
        "space",
        "bucket",
        "kernel",
        "container"
      ]
    },
    "mention": {
      "description": "Filter by how the account is involved.",
      "type": "string",
      "enum": [
        "all",
        "participating",
        "mentions"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_quicksearch(query, type, limit)

Search the Hub for models, datasets, Spaces, users, papers and collections with one query. Pass type to narrow the kinds, for example model or dataset. Hub API: GET /api/quicksearch.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Search text, for example a model name or topic.",
      "type": "string"
    },
    "type": {
      "description": "Result kinds to include, for example [\"model\"] or [\"dataset\"].",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_search_spaces(query, category, includeNonRunning)

Semantic search over Hugging Face Spaces (demo apps), by what they do. Optionally filter by category and include Spaces that are not running. Hub API: GET /api/spaces/semantic-search.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "What the Space should do, in plain words."
    },
    "category": {
      "description": "Category filter, for example text-generation or image-generation.",
      "type": "string"
    },
    "includeNonRunning": {
      "description": "Also return Spaces that are not running now.",
      "type": "boolean"
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_search_papers(query, limit)

Search research papers indexed on Hugging Face (hybrid semantic and full-text search). Hub API: GET /api/papers/search.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Search text, for example a method or a task."
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_get_paper(paperId, field)

Get one paper by its arXiv-style id (for example 2310.06825). Optionally add comments or the submission deadline. Hub API: GET /api/papers/{paperId}.

Input Schema

{
  "type": "object",
  "properties": {
    "paperId": {
      "type": "string",
      "minLength": 1,
      "description": "Paper id, for example 2310.06825."
    },
    "field": {
      "description": "Extra field to include.",
      "type": "string",
      "enum": [
        "submissionDeadline",
        "comments"
      ]
    }
  },
  "required": [
    "paperId"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_list_collections(query, owner, sort, limit, cursor)

List or search Hub collections (curated lists of models, datasets, Spaces and papers), by text, owner or sort order. Hub API: GET /api/collections.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Search text for the collection title or description.",
      "type": "string"
    },
    "owner": {
      "description": "Only collections owned by these users or organizations.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sort": {
      "description": "Sort order.",
      "type": "string",
      "enum": [
        "upvotes",
        "lastModified",
        "trending"
      ]
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    },
    "cursor": {
      "description": "nextCursor from the previous page's response, to fetch the next page.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_get_collection(namespace, slug, id)

Get one collection with its items. The URL slug is the collection's name part plus its id (for example slug 'semantic-search', id 'abc123'). Hub API: GET /api/collections/{namespace}/{slug}-{id}.

Input Schema

{
  "type": "object",
  "properties": {
    "namespace": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "description": "Collection name part of the URL slug, without the id."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "Collection id, the last part of the URL slug."
    }
  },
  "required": [
    "namespace",
    "slug",
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_get_user_overview(username)

Show a public user's profile overview: name, Pro status and counts of their models, datasets, Spaces and discussions. Hub API: GET /api/users/{username}/overview.

Input Schema

{
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    }
  },
  "required": [
    "username"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_list_user_likes(username, limit, cursor)

List the public repositories (models, datasets, Spaces and others) a user has liked, with pagination. Hub API: GET /api/users/{username}/likes.

Input Schema

{
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    },
    "cursor": {
      "description": "nextCursor from the previous page's response, to fetch the next page.",
      "type": "string"
    }
  },
  "required": [
    "username"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢huggingface_list_repo_files(repoType, namespace, repo, revision, path, ...)

List the files and folders of a model, dataset or Space at a branch or revision, optionally inside one folder. Leave path empty for the root. Hub API: GET /api/{models|datasets|spaces}/{namespace}/{repo}/tree/{rev}/{path}.

Input Schema

{
  "type": "object",
  "properties": {
    "repoType": {
      "type": "string",
      "enum": [
        "model",
        "dataset",
        "space"
      ],
      "description": "Kind of repository."
    },
    "namespace": {
      "type": "string",
      "minLength": 1,
      "description": "Hugging Face user or organization name, as shown in its URL."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, without the namespace."
    },
    "revision": {
      "description": "Branch, tag or commit. Default: main.",
      "type": "string",
      "minLength": 1
    },
    "path": {
      "description": "Folder inside the repository. Empty or omitted means the root.",
      "type": "string"
    },
    "limit": {
      "description": "Maximum number of results to return.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    },
    "cursor": {
      "description": "nextCursor from the previous page's response, to fetch the next page.",
      "type": "string"
    }
  },
  "required": [
    "repoType",
    "namespace",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded14 tools