
shreyaskarnik/huggingface-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
shreyaskarnik/huggingface-mcp-server는 MCP 서버 후보자가 https://github.com/shreyaskarnik/huggingface-mcp-server.에서 수입되었습니다
개요
shreyaskarnik/huggingface-mcp-server는 MCP 서버 후보자가 https://github.com/shreyaskarnik/huggingface-mcp-server.에서 수입되었습니다
개요(AI 번역)
Hugging Face Hub API에 대한 읽기 전용 액세스를 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 Claude와 같은 LLMs가 Hugging Face의 모델, 데이터 세트, 공간, 종이 및 컬렉션과 상호 작용할 수 있습니다.
부품
자원
서버는 대중적인 Hugging 얼굴 자원을 드러냅니다:
- Custom
hf://URI 자원을 접근하기위한 계획 hf://model/{model_id}모델 한국어hf://dataset/{dataset_id}와 데이터셋 한국어hf://space/{space_id}와 공간 한국어- 모든 리소스에는 descriptive 이름과 JSON 내용 유형이 있습니다.
# # # Prompts를
서버는 2개의 신속한 템플렛을 제공합니다:
-
compare-models: 다수 Hugging 얼굴 모형 사이 비교를 창조하십시오 -
model_ids인수 (모델 ID) -
모델을 검색하고 비교할 형식
-
summarize-paper: Hugging Face의 연구 논문 요약 -
필수
arxiv_id서류 식별 -
선택
detail_level] 인수 (brief/detailed) 요약 깊이를 제어하기 -
구현 세부 사항과 종이 메타데이터 결합
도구
서버는 여러 도구 범주를 구현합니다.
- 모형 도구
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
🤗 Hugging Face MCP Server 🤗
A Model Context Protocol (MCP) server that provides read-only access to the Hugging Face Hub APIs. This server allows LLMs like Claude to interact with Hugging Face’s models, datasets, spaces, papers, and collections.
Components
Resources
The server exposes popular Hugging Face resources:
- Custom
hf://URI scheme for accessing resources - Models with
hf://model/{model_id}URIs - Datasets with
hf://dataset/{dataset_id}URIs - Spaces with
hf://space/{space_id}URIs - All resources have descriptive names and JSON content type
Prompts
The server provides two prompt templates:
-
compare-models: Generates a comparison between multiple Hugging Face models- Required
model_idsargument (comma-separated model IDs) - Retrieves model details and formats them for comparison
- Required
-
summarize-paper: Summarizes a research paper from Hugging Face- Required
arxiv_idargument for paper identification - Optional
detail_levelargument (brief/detailed) to control summary depth - Combines paper metadata with implementation details
- Required
Tools
The server implements several tool categories:
-
Model Tools
search-models: Search models with filters for query, author, tags, and limitget-model-info: Get detailed information about a specific model
-
Dataset Tools
search-datasets: Search datasets with filtersget-dataset-info: Get detailed information about a specific dataset
-
Space Tools
search-spaces: Search Spaces with filters including SDK typeget-space-info: Get detailed information about a specific Space
-
Paper Tools
get-paper-info: Get information about a paper and its implementationsget-daily-papers: Get the list of curated daily papers
-
Collection Tools
search-collections: Search collections with various filtersget-collection-info: Get detailed information about a specific collection
Configuration
The server does not require configuration, but supports optional Hugging Face authentication:
- Set
HF_TOKENenvironment variable with your Hugging Face API token for:- Higher API rate limits
- Access to private repositories (if authorized)
- Improved reliability for high-volume requests
Quickstart
Install
Installing via Smithery
To install huggingface-mcp-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @shreyaskarnik/huggingface-mcp-server --client claude
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
설치
npx -y @smithery/cli install @shreyaskarnik/huggingface-mcp-server --client claude설정
"mcpServers": {
"huggingface": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/huggingface-mcp-server",
"run",
"huggingface_mcp_server.py"
],
"env": {
"HF_TOKEN": "your_token_here" // Optional
}
}
}