Back to Home
charanadi4u icon

huggingface_mcp_server

Verified Safe

by charanadi4u

Overview

Provides a Model Context Protocol (MCP) server for AI models to interact with Hugging Face Hub resources (models, datasets, spaces, papers, collections) via a Groq-powered conversational client.

Installation

Run Command
python server.py

Environment Variables

  • MODEL_NAME
  • GROQ_API_KEY

Security Notes

The server uses `json.loads` to parse tool call arguments from the Groq model's output. While `json.loads` itself is safe for JSON, the parsed data is then used in API calls to the Hugging Face API. The risk lies in potential malicious data within these arguments (e.g., unexpected values for parameters) that could trigger unforeseen behavior or vulnerabilities in the underlying Hugging Face API or `httpx` client. However, URL encoding is used where applicable (`quote_plus`), and no direct `eval` or command injection points for local execution are apparent. The server operates in a read-only manner for Hugging Face resources, which limits the potential impact of vulnerabilities.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-19

Tags

MCPHugging FaceAI AgentAPI GatewayTool Use