🌾 农业AI MCP服务器
一个已准备就绪的生产级HTTP服务器,为农业AI聊天机器人提供作物价格数据和网页搜索功能。特点包括: 创新的Docker MCP网关集成 用于智能工具路径规划与管理。
🚀 快速入门
# 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"}}'📁 项目结构
├── 📚 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🎯 功能
核心农业情报
- 作物价格数据来自data.gov.in的实时农产品价格
- 网络搜索通过EXA API获取的农业新闻和信息
- HTTP API便于集成的RESTful端点
- 健康检查内置监控端点
Docker MCP网关集成
- 🎯 智能工具路径规划网关将查询路由至最优农业工具
- 📋 生产目录管理带有元数据的高级服务器注册表
- 🔄 动态服务器发现运行时工具的注册与管理
- 🌐 双协议支持HTTP REST和MCP协议端点均支持
- ⚡ 实时工具编排网关管理多个农业智能服务器
🛠️ 设置选项
选项1:本地开发
./scripts/setup/quick-setup.sh选项2:DigitalOcean部署
./scripts/deployment/check-digitalocean.sh选项3:创意MCP网关
./scripts/testing/creative-gateway-demo.sh📚 文档
- 安装指南 - 30秒内快速上手
- DigitalOcean 部署 - 生产环境部署
- 创意MCP网关 - 高级图案
- 聊天机器人集成 - 即开即用的示例
🤖 聊天机器人集成
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?");🎯 实时终端点
- 直接APIhttp://165.232.190.215
- MCP网关http://165.232.190.215:8811
- 健康检查http://165.232.190.215/health 翻译为中文可以是:“http://165.232.190.215/健康”(但需注意,网址本身在中文语境下通常不直接翻译,这里仅对路径部分进行翻译以符合中文表达习惯,实际使用时网址保持原样)。不过,更自然的表达可能是直接说明这是一个指向健康相关页面的网址,如:“这是一个指向健康页面的网址:http://165.232.190.215/health”
🏆 非常适合黑客马拉松
- ✅ 创意性使用Docker MCP网关 - 智能农业工具协同调度
- ✅ 生产就绪架构 - 实时目录管理和服务器路由
- ✅ 真实农业数据 - 政府作物价格及市场情报
- ✅ 易于集成 - 与任何聊天机器人或人工智能框架兼容
- ✅ 现场演示准备就绪 裁判可以测试网关和直接API访问
📝 许可证
MIT 许可证 - 非常适合黑客马拉松项目!
