agroagent
Provides tools for storing and retrieving farmer history and planting records, enabling queries of past crops and registration of new plantings in a PostgreSQL database.
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., "@agroagent¿Cómo está el clima esta semana en Curicó y qué precio tiene el trigo?"
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.
AgroAgent
Agente de IA orientado al nicho agrícola chileno, construido con arquitectura de agentes vía Model Context Protocol (MCP). En vez de un backend monolítico, cuatro MCP servers independientes exponen tools especializadas que un orquestador coordina mediante un agent loop con el Anthropic SDK.
Arquitectura
apps/
web/ Next.js 16 + TypeScript + Tailwind v4 + Recharts
orchestrator/ FastAPI -- MCP host + agent loop (Anthropic SDK) + rutas REST de dashboard
mcp-servers/
mcp-weather/ tool: get_weather_forecast (Open-Meteo)
mcp-prices/ tool: get_commodity_price (datos abiertos ODEPA)
mcp-db/ tools: get_farmer_history, register_planting (PostgreSQL/SQLAlchemy async)
mcp-rag/ tool: search_sag_documents (RAG sobre normativa SAG -- Pinecone + Voyage AI)
packages/
shared-types/ Modelos Pydantic compartidos entre orchestrator y mcp-serversEl orquestador se conecta como cliente MCP a los 4 servers, agrega su catálogo de tools en uno solo, y expone:
POST /chat-- endpoint conversacional (Claude decide qué tools usar según el contexto)GET /weather,GET /farmers/{id}/history,GET /prices/trend-- rutas REST deterministas para el dashboard, que llaman las tools directo sin pasar por el LLM
El valor del proyecto no es exponer cada fuente por separado, sino que el agente las cruce: por ejemplo, relacionar el historial de cultivos de un agricultor con el pronóstico de su zona y el precio actual de su producto para sugerir decisiones concretas, citando la resolución SAG exacta cuando corresponde.
Related MCP server: leafengines-mcp-server
Stack
Backend: Python 3.12+, FastAPI,
mcpSDK (v2), SQLAlchemy async + asyncpg, Pinecone, Voyage AI, Anthropic SDK,uv(workspace de monorepo)Frontend: Next.js (App Router), TypeScript, Tailwind CSS v4, Recharts, pnpm
Datos: PostgreSQL (Docker), Open-Meteo API, ODEPA (CKAN datastore API), documentos normativos del SAG
Requisitos
Python 3.12+ y
uvNode 20+ y
pnpmDocker (para PostgreSQL)
API keys: Anthropic, Pinecone, Voyage AI
Setup
# Backend (Python workspace completo)
uv sync --all-packages
# Frontend
cd apps/web && pnpm install && cd ../..
# Base de datos
docker compose up -d postgresCrea apps/web/.env.local:
NEXT_PUBLIC_ORCHESTRATOR_URL=http://localhost:3001Levantar el proyecto (6 procesos)
# Terminal 1
uv run --package mcp-weather uvicorn mcp_weather.app:app --reload --port 4001
# Terminal 2
uv run --package mcp-prices uvicorn mcp_prices.app:app --reload --port 4002
# Terminal 3 (ajusta el puerto de Postgres si no usas el 5432 por defecto)
DATABASE_URL="postgresql+asyncpg://agroagent:agroagent@localhost:5432/agroagent" \
uv run --package mcp-db uvicorn mcp_db.app:app --reload --port 4004
# Terminal 4
PINECONE_API_KEY="..." VOYAGE_API_KEY="..." \
uv run --package mcp-rag uvicorn mcp_rag.app:app --reload --port 4005
# Terminal 5
ANTHROPIC_API_KEY="..." \
uv run --package orchestrator uvicorn orchestrator.app:app --reload --port 3001
# Terminal 6
cd apps/web && pnpm devFrontend en http://localhost:3000.
Decisiones de arquitectura
Transporte MCP: streamable-HTTP, no stdio -- cada MCP server es un servicio independiente con su propio puerto/contenedor, más fiel a un despliegue real de microservicios.
Backend en Python/FastAPI en vez de NestJS/TypeScript: decisión deliberada por demanda de mercado y para demostrar versatilidad políglota (frontend se mantuvo en TS/React).
RAG: chunking respeta la estructura numerada de las resoluciones legales chilenas (
2.1,3.1.1, etc.) en vez de cortar por cantidad fija de caracteres; metadata de cada chunk incluye número de resolución para que el agente pueda citar la fuente.Rutas REST separadas del agente: el dashboard no pasa por el LLM para datos deterministas (clima, historial, precios) -- evita costo y latencia innecesarios; ambas capas reutilizan las mismas tools MCP subyacentes.
Limitaciones conocidas / pendientes
Sin autenticación:
farmer_idse pasa explícito, no hay sesión de usuario.No existe ruta para crear agricultores nuevos (
POST /farmers) -- los registros de prueba se insertaron manualmente.mcp-ragno soporta PDFs escaneados sin capa de texto (requeriría OCR).No hay
Dockerfileindividual por servicio --docker-compose.ymlcubre solo PostgreSQL.Los nombres de cultivo en
mcp-dbno están normalizados contra los nombres de producto de ODEPA enmcp-prices.
This server cannot be installed
Maintenance
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
- AlicenseAqualityCmaintenanceAn MCP server that provides real-time access to Brazilian agricultural data, including commodity prices, crop estimates, climate information, and deforestation rates. It integrates data from 19 public sources like CEPEA, CONAB, and IBGE to enable LLMs to analyze the Brazilian agribusiness sector.1026MIT
- AlicenseNot gradedqualityBmaintenanceAgricultural intelligence MCP server providing soil analysis, crop recommendations, weather forecasts, and environmental impact assessment.5MIT
- AlicenseNot gradedqualityAmaintenanceEU Crop Intelligence MCP Server — Yield forecasts, weather analysis, and phenology models for 15 countries. AI agent-native, multi-source intelligence (NASA POWER, Eurostat, Open-Meteo).MIT
- AlicenseNot gradedqualityBmaintenanceMCP Server for accessing 36 Brazilian public data sources and 1 agent, enabling AI agents to query government data on economy, legislation, transparency, judiciary, elections, environment, health, and more.MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
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/craguila14/agroagent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server