qualitycontrol-mcp
Connects ChatGPT/Claude with the QualityControl REST API, allowing users to query company information, sensor data, weather, harvest, exports, dispatches, and more using natural language.
README
QualityControl MCP Server
Servidor MCP (Model Context Protocol) que conecta ChatGPT/Claude con la API REST de QualityControl, permitiendo a los usuarios consultar información de su empresa mediante lenguaje natural.
Requisitos
- Node.js 20+ LTS
- npm 10+
Instalación
# Instalar dependencias
npm install
# Copiar variables de entorno
cp .env.example .env
# Generar ENCRYPTION_KEY
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Editar .env con la URL de la API y la ENCRYPTION_KEY generada
Compilar
npm run build
Ejecutar (desarrollo)
npm run dev
Configuración en ChatGPT / Claude Desktop
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"qualitycontrol": {
"command": "node",
"args": ["C:/Repositorio/MCP/QualityControl/dist/index.js"],
"env": {
"API_BASE_URL": "https://developers.cogrowers.cl/heladas",
"ENCRYPTION_KEY": "<tu-key-64-hex>",
"LOG_LEVEL": "info",
"LOG_DIR": "./logs",
"NODE_ENV": "production",
"SESSION_TTL_HOURS": "24",
"SESSION_CLEANUP_INTERVAL_MIN": "60",
"CACHE_TTL_SECONDS": "300",
"CACHE_MAX_ENTRIES": "1000",
"API_TIMEOUT_MS": "30000",
"API_VALIDATE_ENDPOINT": "api_toda_info.php",
"API_DEVICES_ENDPOINT": "api_toda_info.php",
"API_HISTORY_ENDPOINT": "api_toda_info.php",
"API_WEATHER_ENDPOINT": "api_toda_info.php"
}
}
}
}
ChatGPT (Custom GPT con Actions)
Para ChatGPT, se requiere un wrapper HTTP. Consulta la documentación de OpenAI para configurar un GPT Action que apunte al servidor MCP.
Herramientas Disponibles
| Tool | Descripción |
|---|---|
connect_company |
Conecta una empresa validando la API Key |
disconnect_company |
Desconecta la empresa y cierra sesión |
get_devices |
Lista dispositivos/sensores |
get_sensor_history |
Historial de lecturas |
get_weather |
Información climática |
get_bins_today |
Bins recolectados hoy |
get_harvest |
Información de cosecha |
get_exports |
Datos de exportación |
get_dispatches |
Despachos pendientes/completados |
company_info |
Info de empresa conectada |
healthcheck |
Estado del servidor |
Agregar Nuevos Tools
- Crear
src/tools/nuevo_tool.tssiguiendo la estructura existente - Importar y agregar al array en
src/tools/index.ts - Compilar:
npm run build
No se requiere modificar el servidor principal ni ningún otro módulo.
Arquitectura
Consultar ARCHITECTURE.md para el documento completo de arquitectura.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.