Back to Home
huggingface icon

hf-mcp-server

by huggingface

Overview

Connects LLMs to the Hugging Face Hub and Gradio AI applications, enabling access to models, datasets, documentation, and job management.

Installation

Run Command
npx @llmindset/hf-mcp-server

Environment Variables

  • DEFAULT_HF_TOKEN
  • TRANSPORT
  • USER_CONFIG_API
  • LOGGING_DATASET_ID
  • LOGGING_HF_TOKEN
  • HF_API_TIMEOUT

Security Notes

The server uses `child_process.spawn` and `shell-quote` for the `hf_jobs` tool, which can execute arbitrary commands on the host. While input is validated with Zod, direct shell execution of user-supplied commands is an inherent high-risk area. The `DEFAULT_HF_TOKEN` is explicitly warned about in the README, indicating awareness, but its presence as a fallback for unauthenticated requests still carries risk. All external network calls are to trusted Hugging Face domains, mitigating certain network risks.

Similar Servers

Stats

Interest Score62
Security Score5
Cost ClassMedium
Avg Tokens2500
Stars157
Forks40
Last Update2025-12-05

Tags

HuggingFaceLLM-IntegrationGradioAI-ToolsAPI-Server