Hugging Face MCP by usefulapi
v1.2.1Search the Hub, papers and Spaces; list repo files, credits and notifications in Hugging Face.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
huggingface_whoami Who am I
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.
huggingface_get_credits Get my 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.
huggingface_get_organization_credits Get organization credits
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.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Hugging Face user or organization name, as shown in its URL. |
huggingface_list_organization_members List organization members
List the members of an organization, with optional search by name. Needs an organization admin token. Hub API: GET /api/organizations/{name}/members.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Hugging Face user or organization name, as shown in its URL. |
cursor | string | nextCursor from the previous page's response, to fetch the next page. |
limit | integer | Maximum number of results to return. |
search | string | Filter members by username or name. |
huggingface_list_notifications List notifications
List the account's notifications (discussions, pull requests, papers, mentions), newest first. Hub API: GET /api/notifications.
| Parameter | Type | Description |
|---|---|---|
mention | string | Filter by how the account is involved. |
page | integer | Page number, starting at 0. |
readStatus | string | Show all notifications or only unread ones. |
repoType | string | Only notifications for this repository kind. |
huggingface_quicksearch Quick search the Hub
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return. |
query | string | Search text, for example a model name or topic. |
type | array | Result kinds to include, for example ["model"] or ["dataset"]. |
huggingface_search_spaces Search Spaces
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | What the Space should do, in plain words. |
category | string | Category filter, for example text-generation or image-generation. |
includeNonRunning | boolean | Also return Spaces that are not running now. |
huggingface_search_papers Search papers
Search research papers indexed on Hugging Face (hybrid semantic and full-text search). Hub API: GET /api/papers/search.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search text, for example a method or a task. |
limit | integer | Maximum number of results to return. |
huggingface_get_paper Get a paper
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}.
| Parameter | Type | Description |
|---|---|---|
paperId * | string | Paper id, for example 2310.06825. |
field | string | Extra field to include. |
huggingface_list_collections List collections
List or search Hub collections (curated lists of models, datasets, Spaces and papers), by text, owner or sort order. Hub API: GET /api/collections.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page's response, to fetch the next page. |
limit | integer | Maximum number of results to return. |
owner | array | Only collections owned by these users or organizations. |
query | string | Search text for the collection title or description. |
sort | string | Sort order. |
huggingface_get_collection Get a collection
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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Collection id, the last part of the URL slug. |
namespace * | string | Hugging Face user or organization name, as shown in its URL. |
slug * | string | Collection name part of the URL slug, without the id. |
huggingface_get_user_overview Get a user overview
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.
| Parameter | Type | Description |
|---|---|---|
username * | string | Hugging Face user or organization name, as shown in its URL. |
huggingface_list_user_likes List a user's likes
List the public repositories (models, datasets, Spaces and others) a user has liked, with pagination. Hub API: GET /api/users/{username}/likes.
| Parameter | Type | Description |
|---|---|---|
username * | string | Hugging Face user or organization name, as shown in its URL. |
cursor | string | nextCursor from the previous page's response, to fetch the next page. |
limit | integer | Maximum number of results to return. |
huggingface_list_repo_files List repository files
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}.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Hugging Face user or organization name, as shown in its URL. |
repo * | string | Repository name, without the namespace. |
repoType * | string | Kind of repository. |
cursor | string | nextCursor from the previous page's response, to fetch the next page. |
limit | integer | Maximum number of results to return. |
path | string | Folder inside the repository. Empty or omitted means the root. |
revision | string | Branch, tag or commit. Default: main. |