npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zkarmor/hf-mcp-godmode

v1.0.1

Published

Hugging Face MCP GOD Mode - Complete CRUD operations for Spaces and Datasets via MCP Protocol

Readme

Hugging Face MCP GOD Mode

Un servidor Model Context Protocol (MCP) completo y poderoso para Hugging Face que permite operaciones CRUD completas en Spaces y Datasets.

🚀 Características

Spaces (Espacios)

  • Crear spaces con diferentes SDKs (Streamlit, Gradio, FastAPI, Docker, Static)
  • Leer detalles de spaces específicos
  • Listar todos tus spaces
  • Actualizar metadatos (descripción, privacidad)
  • Eliminar spaces
  • Subir archivos a spaces

Datasets

  • Crear datasets con tags y configuración
  • Leer detalles de datasets específicos
  • Listar todos tus datasets
  • Actualizar metadatos (descripción, privacidad, tags)
  • Eliminar datasets
  • Subir archivos a datasets

📋 Requisitos

  • Node.js 18+
  • npm o yarn
  • Token de API de Hugging Face

🔧 Instalación

Opción 1: Con NPX (Recomendado - No requiere instalación)

# Ejecutar directamente sin instalar
npx @zkarmor/hf-mcp-godmode

Opción 2: Instalación Global

# Instalar como comando global
npm install -g @zkarmor/hf-mcp-godmode

# Ejecutar
hf-mcp-godmode

Opción 3: Instalación Local

cd hf-mcp-godmode
npm install

⚙️ Configuración

  1. Copia el archivo .env.example a .env:
cp .env.example .env
  1. Edita .env y agrega tu token de Hugging Face:
HF_API_TOKEN=hf_your_token_here
HF_API_BASE_URL=https://huggingface.co/api
HF_INFERENCE_API_URL=https://api-inference.huggingface.co

🏗️ Construcción

npm run build

🚀 Ejecución

npm start

📝 Herramientas Disponibles

Spaces Tools

hf_create_space

Crea un nuevo space en Hugging Face.

Parámetros:

  • name (requerido): Nombre del space
  • sdk (requerido): Tipo de SDK - docker, static, streamlit, gradio, fastapi
  • description: Descripción del space
  • private: Si es privado (default: false)

Ejemplo:

{
  "name": "mi-awesome-app",
  "sdk": "streamlit",
  "description": "Mi aplicación Streamlit increíble",
  "private": false
}

hf_get_space

Obtiene detalles de un space específico.

Parámetros:

  • space_id (requerido): ID del space en formato username/space-name

hf_list_spaces

Lista todos tus spaces.

Parámetros:

  • limit: Número máximo de spaces a retornar (default: 50)

hf_update_space

Actualiza metadatos de un space.

Parámetros:

  • space_id (requerido): ID del space
  • description: Nueva descripción
  • private: Cambiar privacidad

hf_delete_space

Elimina un space.

Parámetros:

  • space_id (requerido): ID del space

hf_upload_to_space

Sube archivos a un space.

Parámetros:

  • space_id (requerido): ID del space
  • file_path (requerido): Ruta local del archivo
  • repo_path: Ruta en el repositorio (opcional)

Datasets Tools

hf_create_dataset

Crea un nuevo dataset en Hugging Face.

Parámetros:

  • name (requerido): Nombre del dataset
  • description: Descripción del dataset
  • private: Si es privado (default: false)
  • tags: Array de tags

Ejemplo:

{
  "name": "mi-dataset-genial",
  "description": "Dataset de entrenamiento para NLP",
  "tags": ["text-classification", "spanish", "benchmark"],
  "private": false
}

hf_get_dataset

Obtiene detalles de un dataset específico.

Parámetros:

  • dataset_id (requerido): ID del dataset en formato username/dataset-name

hf_list_datasets

Lista todos tus datasets.

Parámetros:

  • limit: Número máximo de datasets a retornar (default: 50)

hf_update_dataset

Actualiza metadatos de un dataset.

Parámetros:

  • dataset_id (requerido): ID del dataset
  • description: Nueva descripción
  • private: Cambiar privacidad
  • tags: Nuevos tags

hf_delete_dataset

Elimina un dataset.

Parámetros:

  • dataset_id (requerido): ID del dataset

hf_upload_to_dataset

Sube archivos a un dataset.

Parámetros:

  • dataset_id (requerido): ID del dataset
  • file_path (requerido): Ruta local del archivo
  • repo_path: Ruta en el repositorio (opcional)

🔐 Seguridad

  • El token de API se carga desde variables de entorno
  • Nunca commits .env a control de versiones
  • Usa tokens con permisos específicos (no tokens generales)

📚 Estructura del Proyecto

hf-mcp-godmode/
├── src/
│   ├── index.ts              # Servidor MCP principal
│   ├── tools/
│   │   ├── spaces.ts         # Herramientas para Spaces
│   │   └── datasets.ts       # Herramientas para Datasets
│   └── utils/
│       └── hf-client.ts      # Cliente de Hugging Face
├── dist/                     # Código compilado
├── package.json
├── tsconfig.json
└── .env.example

🛠️ Desarrollo

Para desarrollo con hot reload:

npm run dev

📦 Integración con Claude/AI

Este MCP puede integrarse con Claude o cualquier cliente MCP compatible agregando la configuración en tu cline_mcp_config.json o equivalente:

{
  "mcpServers": {
    "hf-godmode": {
      "command": "node",
      "args": ["/ruta/a/hf-mcp-godmode/dist/index.js"],
      "env": {
        "HF_API_TOKEN": "tu_token_aqui"
      }
    }
  }
}

🚨 Limitaciones Actuales

  • La API de Hugging Face puede tener límites de tasa (rate limiting)
  • Algunos endpoints pueden estar en versión beta
  • Los permisos dependen del token de API proporcionado

🤝 Contribuciones

Las contribuciones son bienvenidas. Por favor:

  1. Fork el repositorio
  2. Crea una rama para tu feature (git checkout -b feature/AmazingFeature)
  3. Commit tus cambios (git commit -m 'Add some AmazingFeature')
  4. Push a la rama (git push origin feature/AmazingFeature)
  5. Abre un Pull Request

📄 Licencia

MIT

📞 Soporte

Para problemas o preguntas:

  1. Revisa la documentación de Hugging Face: https://huggingface.co/docs
  2. Consulta los issues del proyecto
  3. Crea un nuevo issue con detalles específicos

🔮 Próximas Mejoras

  • [ ] Soporte para Models CRUD
  • [ ] Operaciones de Git (commit, push, pull)
  • [ ] Gestión de colecciones
  • [ ] Webhooks
  • [ ] Integración con MLOps
  • [ ] Descarga de datasets
  • [ ] Búsqueda avanzada
  • [ ] Configuración de permisos granulares