Hugging Face MCP by usefulapi

v1.2.1
io.usefulapi/huggingface Checked 3 days ago Published 2 days ago

Search 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.

ParameterTypeDescription
organization *stringHugging 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.

ParameterTypeDescription
organization *stringHugging Face user or organization name, as shown in its URL.
cursorstringnextCursor from the previous page's response, to fetch the next page.
limitintegerMaximum number of results to return.
searchstringFilter 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.

ParameterTypeDescription
mentionstringFilter by how the account is involved.
pageintegerPage number, starting at 0.
readStatusstringShow all notifications or only unread ones.
repoTypestringOnly 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.

ParameterTypeDescription
limitintegerMaximum number of results to return.
querystringSearch text, for example a model name or topic.
typearrayResult 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.

ParameterTypeDescription
query *stringWhat the Space should do, in plain words.
categorystringCategory filter, for example text-generation or image-generation.
includeNonRunningbooleanAlso 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.

ParameterTypeDescription
query *stringSearch text, for example a method or a task.
limitintegerMaximum 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}.

ParameterTypeDescription
paperId *stringPaper id, for example 2310.06825.
fieldstringExtra 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.

ParameterTypeDescription
cursorstringnextCursor from the previous page's response, to fetch the next page.
limitintegerMaximum number of results to return.
ownerarrayOnly collections owned by these users or organizations.
querystringSearch text for the collection title or description.
sortstringSort 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}.

ParameterTypeDescription
id *stringCollection id, the last part of the URL slug.
namespace *stringHugging Face user or organization name, as shown in its URL.
slug *stringCollection 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.

ParameterTypeDescription
username *stringHugging 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.

ParameterTypeDescription
username *stringHugging Face user or organization name, as shown in its URL.
cursorstringnextCursor from the previous page's response, to fetch the next page.
limitintegerMaximum 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}.

ParameterTypeDescription
namespace *stringHugging Face user or organization name, as shown in its URL.
repo *stringRepository name, without the namespace.
repoType *stringKind of repository.
cursorstringnextCursor from the previous page's response, to fetch the next page.
limitintegerMaximum number of results to return.
pathstringFolder inside the repository. Empty or omitted means the root.
revisionstringBranch, tag or commit. Default: main.