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"}}'

πŸ“ 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

  • Direct API: http://165.232.190.215

  • MCP Gateway: http://165.232.190.215:8811

  • Health Check: http://165.232.190.215/health

πŸ† 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!

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

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/BishalJena/fs-gate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server