Hugging Face MCP by usefulapi
Search the Hub, papers and Spaces; list repo files, credits and notifications in Hugging Face.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWhuggingface_get_organization_credits에서
- LOWhuggingface_list_organization_members에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"huggingface": {
"url": "https://huggingface.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://huggingface.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (14)
🟢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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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}.
입력 스키마
{
"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.
입력 스키마
{
"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}.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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}.
입력 스키마
{
"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"
}커뮤니티
증거