CultivarIA MCP Server
Provides tools and resources for accessing and managing cultivation data stored in Firebase Realtime Database, including live telemetry, historical trends, and control of actuators and irrigation systems.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CultivarIA MCP ServerGet live telemetry for module flora-01"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CultivarIA - Servidor MCP (Model Context Protocol)
Servidor MCP (Model Context Protocol) oficial para la plataforma CultivarIA (https://cultivaria-9673f.web.app/).
Este servidor expone Herramientas (Tools) y Recursos (Resources) estandarizados a través de transporte HTTP con SSE (Server-Sent Events) para permitir que asistentes de Inteligencia Artificial (como Gemini Spark, Antigravity, Claude, etc.) consulten telemetría en tiempo real, analicen tendencias históricas y ejecuten comandos de control sobre módulos y actuadores de cultivo.
1. Requisitos Previos
Node.js: v18.0.0 o superior.
npm: v9.0.0 o superior.
Related MCP server: production-grade-mcp-agentic-system
2. Instalación y Compilación
Ingresa a la carpeta del servidor MCP:
cd mcp-serverInstala las dependencias:
npm installCompila el código TypeScript a JavaScript en
./dist:npm run buildInicia el servidor en modo producción:
npm start(Opcional) Inicia en modo desarrollo con auto-recarga:
npm run dev
3. Variables de Entorno (.env)
Crea un archivo .env en la raíz de mcp-server/ basado en .env.example:
PORT=3001
CULTIVARIA_MCP_TOKEN=cultivaria_mcp_secret_token_2026
BACKEND_URL=https://cultivaria-9673f-default-rtdb.firebaseio.com4. Configuración del Conector para Clientes MCP (Gemini Spark / Antigravity / Claude)
Conexión HTTP / SSE (Remota o Local)
Agrega la siguiente configuración en la sección de MCP Servers de tu cliente o entorno:
{
"mcpServers": {
"cultivaria": {
"url": "http://localhost:3001/sse",
"headers": {
"Authorization": "Bearer cultivaria_mcp_secret_token_2026"
}
}
}
}5. Despliegue 24/7 en la Nube de Google (Google Cloud Run)
Para alojar el servidor MCP encendido las 24 horas del día en la infraestructura global de Google:
Ve al panel de Google Cloud: Google Cloud Run Console.
Haz clic en el botón "Crear Servicio" (Create Service).
Conecta tu repositorio de GitHub o suba la carpeta
mcp-servercon elDockerfileoptimizado incluido.En la pestaña Variables de entorno y secreto, agrega:
CULTIVARIA_MCP_TOKEN=cultivaria_mcp_secret_token_2026BACKEND_URL=https://cultivaria-9673f-default-rtdb.firebaseio.com
En Ingreso / Autenticación, marca "Permitir peticiones sin autenticar" (la autenticación de seguridad es manejada internamente por el Bearer Token del MCP).
Al hacer clic en Crear, Google te asignará una URL pública HTTPS permanente de 24/7 (ejemplo:
https://cultivaria-mcp-server-xyz-uc.a.run.app).
6. Alternativa Gratuita 24/7 en Render.com
Si deseas una opción 24/7 de 1 solo clic en una nube gratuita:
Ve a render.com y crea un Web Service gratuito conectando este repositorio.
Render detectará automáticamente el archivo
render.yamlincluido enmcp-server/.Obtendrás una URL pública de 24/7 como
https://cultivaria-mcp-server.onrender.com/sse.
7. Exposición Remota Temporal para Desarrollo (Túnel con ngrok)
Para permitir que Gemini Spark o cualquier cliente MCP remoto se conecte a tu servidor MCP local mientras desarrollas:
Ejecuta el comando de túnel incluido:
npm run tunnel(O usa
npx ngrok http 3001directamente).Obtendrás una URL pública segura (ej.
https://a1b2-34-56-78-90.ngrok-free.app).Actualiza la URL en tu cliente MCP:
{ "mcpServers": { "cultivaria": { "url": "https://a1b2-34-56-78-90.ngrok-free.app/sse", "headers": { "Authorization": "Bearer cultivaria_mcp_secret_token_2026" } } } }
6. Ejemplos de Prueba con cURL y Postman
A. Health Check
curl http://localhost:3001/healthRespuesta: {"status":"ONLINE","server":"CultivarIA MCP Server","version":"1.0.0"}
B. Iniciar Conexión SSE (Requiere Token Bearer)
curl -i -N \
-H "Authorization: Bearer cultivaria_mcp_secret_token_2026" \
http://localhost:3001/sseSi no envías el token, el servidor responderá 401 Unauthorized.
C. Probar Invocación de Herramienta por POST (JSON-RPC)
Envía un mensaje JSON-RPC al endpoint /messages?sessionId=<SESSION_ID> retornado en el evento SSE endpoint:
curl -X POST \
"http://localhost:3001/messages?sessionId=<SESSION_ID>" \
-H "Authorization: Bearer cultivaria_mcp_secret_token_2026" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_live_telemetry",
"arguments": {
"module_id": "flora-01"
}
}
}'7. Catálogo de Herramientas (MCP Tools)
Herramienta | Descripción | Parámetros Clave |
| Lecturas de sensores en vivo |
|
| Serie de tiempo e historial de tendencias |
|
| Salud vegetal y capturas ESP32 |
|
| Actualiza metas de pH, EC, Temp, VPD |
|
| Controla electroválvula de riego |
|
| Ajusta modos de climatización |
|
| Cambia variedad y semana de cultivo |
|
8. Recursos MCP (MCP Resources)
cultivaria://system_status: Resumen del sistema, salud de nodos ESP32 y alertas.cultivaria://modules: Módulos de cultivo registrados y resumen de sensores.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server and CLI for controlling FarmBot hardware, enabling AI agents to manage gardening tasks through tools like gantry movement and device status monitoring. It supports executing Lua scripts and core hardware commands like homing and emergency stops via the Model Context Protocol.Last updated3MIT
- Alicense-qualityDmaintenanceA production-grade MCP server designed for multi-tenant, authenticated, and observable AI agent systems, enabling secure tool execution across heterogeneous data sources.Last updated54MIT
- Alicense-qualityDmaintenanceMCP server for interacting with QUADS infrastructure systems via API, enabling resource management and automation through LLM applications.Last updatedMIT
- AlicenseAqualityBmaintenanceMCP server for Smart Compost platform that lets LLM agents list composting processes/devices and pull measurements as read-only tools.Last updated69Apache 2.0
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Saigorio/cultivaria-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server