Skip to main content
Glama
BishalJena

Agricultural AI MCP Server

by BishalJena

🌾 Agricultural AI MCP Server

A production-ready HTTP server providing crop price data and web search capabilities for agricultural AI chatbots. Features creative Docker MCP Gateway integration for intelligent tool routing and management.

šŸš€ Quick Start

# 1. Quick setup (30 seconds)
./scripts/setup/quick-setup.sh

# 2. Test intelligent routing
curl -X POST http://localhost:8811/tools/call \
  -H "Content-Type: application/json" \
  -d '{"name": "crop-price", "arguments": {"state": "Punjab"}}'

Related MCP server: Alumnx MCP Server

šŸ“ Project Structure

ā”œā”€ā”€ šŸ“š docs/                    # Documentation
│   ā”œā”€ā”€ deployment/             # Deployment guides
│   ā”œā”€ā”€ integration/            # Integration guides  
│   └── guides/                 # Feature guides
ā”œā”€ā”€ šŸ”§ scripts/                 # Automation scripts
│   ā”œā”€ā”€ setup/                  # Setup scripts
│   ā”œā”€ā”€ deployment/             # Deployment scripts
│   └── testing/                # Testing scripts
ā”œā”€ā”€ āš™ļø config/                  # Configuration files
│   ā”œā”€ā”€ docker/                 # Docker configurations
│   ā”œā”€ā”€ nginx/                  # Nginx configurations
│   └── catalogs/               # MCP catalogs
ā”œā”€ā”€ šŸ¤– examples/                # Integration examples
│   ā”œā”€ā”€ chatbot/                # Chatbot integrations
│   └── integration/            # API examples
└── šŸ’» src/                     # Source code

šŸŽÆ Features

Core Agricultural Intelligence

  • Crop Price Data: Real-time agricultural commodity prices from data.gov.in

  • Web Search: Agricultural news and information via EXA API

  • HTTP API: RESTful endpoints for easy integration

  • Health Checks: Built-in monitoring endpoints

Docker MCP Gateway Integration

  • šŸŽÆ Intelligent Tool Routing: Gateway routes queries to optimal agricultural tools

  • šŸ“‹ Production Catalog Management: Sophisticated server registry with metadata

  • šŸ”„ Dynamic Server Discovery: Runtime tool registration and management

  • 🌐 Dual Protocol Support: Both HTTP REST and MCP protocol endpoints

  • ⚔ Real-time Tool Orchestration: Gateway manages multiple agricultural intelligence servers

šŸ› ļø Setup Options

Option 1: Local Development

./scripts/setup/quick-setup.sh

Option 2: DigitalOcean Deployment

./scripts/deployment/check-digitalocean.sh

Option 3: Creative MCP Gateway

./scripts/testing/creative-gateway-demo.sh

šŸ“š Documentation

šŸ¤– Chatbot Integration

const AgriculturalAI = require('./examples/chatbot/your-chatbot-config.js');
const agriAI = new AgriculturalAI();

// Ready to use!
const response = await agriAI.processQuery("What are wheat prices in Punjab?");

šŸŽÆ Live Endpoints

šŸ† Perfect for Hackathons

  • āœ… Creative Docker MCP Gateway Usage - Intelligent agricultural tool orchestration

  • āœ… Production-Ready Architecture - Real catalog management and server routing

  • āœ… Real Agricultural Data - Government crop prices and market intelligence

  • āœ… Easy Integration - Works with any chatbot or AI framework

  • āœ… Live Demo Ready - Judges can test both gateway and direct API access

šŸ“ License

MIT License - Perfect for hackathon projects!

Related MCP Connectors

Related MCP Servers