Enables containerized deployment of the agricultural AI server with Docker support for easy cloud deployment and scaling.
Facilitates code repository management and deployment workflows, particularly for connecting repositories to cloud deployment platforms.
Provides cloud deployment capabilities for the agricultural AI server with built-in health checks and environment variable management.
🌾 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. Built for hackathons and deployed on Render.
🏆 Creative Docker MCP Gateway Usage
This project showcases innovative Docker MCP Gateway integration that goes beyond basic tool serving - demonstrating intelligent agricultural tool orchestration, dynamic server management, and production-ready MCP protocol implementation.
🎯 Why This Wins Hackathons
Our Docker MCP Gateway implementation demonstrates:
🧠 Intelligent Tool Routing: Gateway automatically selects optimal tools based on query context
🔄 Dynamic Server Management: Runtime addition/removal of agricultural intelligence servers
📊 Production Catalog System: Sophisticated server registry with metadata and versioning
🌐 Hybrid Architecture: Seamless HTTP + MCP protocol support for maximum compatibility
⚡ Real-time Tool Discovery: Gateway dynamically discovers and routes to available agricultural tools
🚀 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
🛡️ Production-Ready Architecture: Health checks, monitoring, and error handling
🛠️ Quick Start
Option 1: Docker MCP Gateway (Recommended for Hackathons)
1. Setup Docker MCP Gateway
2. Set Environment Variables
3. Deploy with Gateway
4. Access Services
MCP Gateway: http://localhost:8811
Direct API: http://localhost:10001
Health Check: http://localhost:10001/health
Option 2: Direct HTTP Server
1. Install Dependencies
2. Set Environment Variables
3. Build and Run
4. Test the API
🌐 API Endpoints
Docker MCP Gateway Endpoints
Tool Discovery and Management
HTTP Gateway Access
Gateway: http://localhost:8811
Tool Routing: Gateway automatically routes to optimal servers
Real-time Discovery: Dynamic tool registration and management
Direct HTTP API Endpoints
Crop Price Tool
POST /tools/crop-price
Parameters:
state
(optional): State filter (e.g., "Punjab", "Maharashtra")district
(optional): District filter (e.g., "Ludhiana", "Mumbai")commodity
(optional): Commodity filter (e.g., "Wheat", "Rice", "Cotton")limit
(optional): Max records (default: 50, max: 10000)offset
(optional): Records to skip (default: 0)
Search Tool
POST /tools/search
Parameters:
query
(required): Search querynum_results
(optional): Number of results (default: 5, max: 20)include_domains
(optional): Array of domains to includeexclude_domains
(optional): Array of domains to exclude
MCP Protocol Endpoints
POST
/mcp
- MCP protocol endpoint for AI clientsGET
/
- API documentation with MCP capabilitiesGET
/health
- Health check with protocol support info
🐳 Docker MCP Gateway Architecture
Creative Implementation Highlights
Our Docker MCP Gateway integration showcases several innovative patterns:
1. Intelligent Agricultural Tool Orchestration
2. Dynamic Server Management
3. Production-Ready Deployment
Traditional Docker Deployment
Build Image
Run Container
☁️ Cloud Deployment
Render (Recommended)
Push code to GitHub
Connect repo to Render
Set environment variables
Deploy!
See RENDER_DEPLOY.md for detailed instructions.
🤖 Agentic Chatbot Integration
Docker MCP Gateway Integration (Recommended)
Direct HTTP API Integration
MCP Protocol Integration
📊 Response Format
Success Response
Error Response
🔐 Security
Environment variables for API keys
Input validation and sanitization
CORS enabled for web access
Error handling for API failures
Rate limiting handled gracefully
� Crefative Docker MCP Gateway Features
What Makes This Implementation Special
1. Intelligent Tool Orchestration
Gateway automatically routes queries to optimal agricultural tools
Smart context analysis determines whether to use crop-price or search tools
Real-time tool discovery and registration
2. Production Catalog Management
3. Dynamic Server Management
Runtime addition/removal of agricultural intelligence servers
Health monitoring and automatic failover
Load balancing across multiple tool instances
4. Hybrid Architecture Innovation
Seamless HTTP REST + MCP protocol support
Gateway bridges traditional APIs with modern MCP clients
Backward compatibility with existing chatbot frameworks
5. Real-time Agricultural Intelligence
Gateway aggregates data from multiple sources
Intelligent caching and response optimization
Context-aware tool selection for agricultural queries
Demo Commands for Judges
🎯 Perfect for Hackathons
Technical Innovation
✅ Creative Docker MCP Gateway Usage - Intelligent agricultural tool orchestration
✅ Production-Ready Architecture - Real catalog management and server routing
✅ Dual Protocol Support - HTTP + MCP for maximum compatibility
✅ Dynamic Tool Management - Runtime server discovery and registration
Practical Value
✅ Real Agricultural Data - Government crop prices and market intelligence
✅ Comprehensive Search - Agricultural news, research, and insights
✅ 5-minute Deployment - Both local Docker and cloud deployment ready
✅ Live Demo URLs - Judges can test both gateway and direct API access
Hackathon Winning Factors
✅ Solves Real Problems - Addresses agricultural information access challenges
✅ Technical Depth - Sophisticated MCP Gateway integration patterns
✅ Production Ready - Health checks, monitoring, error handling
✅ Easy Integration - Works with any chatbot or AI framework
📝 License
MIT License - Perfect for hackathon projects!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides real-time crop price data from Indian government sources and agricultural web search capabilities. Enables AI chatbots to access comprehensive agricultural market information and news for farming-related queries.