Agricultural AI MCP Server
by BishalJena
README.md
# š¾ 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
```bash
# 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
```bash
./scripts/setup/quick-setup.sh
```
### Option 2: DigitalOcean Deployment
```bash
./scripts/deployment/check-digitalocean.sh
```
### Option 3: Creative MCP Gateway
```bash
./scripts/testing/creative-gateway-demo.sh
```
## š Documentation
- **[Setup Guide](docs/guides/quick-start.md)** - Get started in 30 seconds
- **[DigitalOcean Deployment](docs/deployment/DIGITALOCEAN_DEPLOYMENT.md)** - Production deployment
- **[Creative MCP Gateway](docs/guides/MCP_GATEWAY_CREATIVE.md)** - Advanced patterns
- **[Chatbot Integration](examples/chatbot/)** - Ready-to-use examples
## š¤ Chatbot Integration
```javascript
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!
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues