KrishiArtha-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
KrishiArtha-MCP (MandiPulse) 🌾
Autonomous Covariate Mandi Arbitrage, Weather-Spoilage Physics & Statutory Distress-Credit Engine
A Multi-Agent Neuro-Symbolic Platform for Indian Agriculture
🏆 FORGE'26 Hackathon Submission Overview
Team: INFINITE LOOP (IIIT Guwahati)
Members: Abhilok Reddy Bellamkonda (Leader) & Nimmakayala Naga Venkata Shanmukha Sai Chandra
Chosen Track: Climate, Resource Infrastructure & Global Supply Resilience (with cross-cutting Digital Public Infrastructure & Governance impact)
🎯 Fast Links for Judges & Evaluators
Deliverable | Direct Link / Resource |
🌐 Live Prototype (SSL) | https://krishiartha-mcp.streamlit.app (24/7 Global Cloud Mirror) |
🚀 1-Click Cloud Deploy | |
📊 World-Class Pitch Deck (PPTX) | docs/KrishiArtha_MCP_Pitch_Deck.pptx (9-Slide Native Morph Presentation with Embedded QR Code) |
🖥️ Interactive Web Slide Deck | docs/PITCH_DECK.html (Press |
🎬 Official Demo Video (MP4) | |
📜 Video Walkthrough Script | |
📋 Official Portal Submission Copy | |
🧪 Pytest Verification Suite | tests/ (70+ Tests Passed, 100% Pass Rate) |
🛡️ FORGE'26 Rubric & Disqualification Rule Compliance
Rule 4 (No Dummy Data / Active Backends): KrishiArtha-MCP consumes real-time, active production backends with zero fake/mock data:
APMC Wholesale Prices:
https://mandi-api.onrender.com/v1/prices&api.data.gov.in(OGD Resource IDs:9ef84268-d588-465a-a308-a864a43d0070[Daily Mandi Clearing Prices] &35985678-0d79-46b4-9ed6-6f13308a1d24[Historical Arrivals]).Meteorological Weather Telemetry:
https://api.open-meteo.com/v1/forecast(7-day hourly precipitation, temperature, and relative humidity covariates calibrated against IMD weather models).Highway Distance & Logistics Matrix:
http://router.project-osrm.org/route/v1/driving/(OSRM highway topology & transit duration). (Note: Air-gapped snapshot atdata/offline_snapshots/nashik_tomato_glut.jsonserves strictly as an automated fallback if public APIs exceed a 2.5s network timeout, guaranteeing zero stage crash).
Rule 7a & 7c (Disqualification Safeguards):
Rule 7a (Authentic Live Telemetry): Every pipeline step executes genuine quantitative models (
amazon/chronos-2), real $Q_{10}$ microbial decay physics, and live LightRAG knowledge graph retrieval.Rule 7c (Verified Live Demo Execution): The demo video captures an authentic, unedited live screen recording of our end-to-end multi-agent system executing in real time—including the live LangGraph human-in-the-loop
interrupt()gate and a 1.21-second Playwright browser automation issuing a verified WDRA e-NWR sanction receipt. Zero simulated CGI or mock UI trickery.
Related MCP server: Agmarknet MCP Server
📌 The Problem
Smallholder farmers and Farmer Producer Organizations (FPOs) across India lose 25% to 40% of net crop value during unseasonal weather shifts and harvest gluts.
Existing government portals (Agmarknet 2.0, eNAM) fail because:
Backward-Looking: They display historical prices but cannot predict price crashes under approaching weather shocks.
Ignorant of Spoilage: They assume 0% crop loss, ignoring that hauling perishable commodities 200+ km under 32°C heat and 85% humidity in open tarp trucks causes rapid biological rot ($Q_{10}$ microbial decay).
Zero Safety Net: When local prices crash below production costs, portals offer zero actionable financial recourse.
💡 The Solution: Neuro-Symbolic Multi-Agent Architecture
KrishiArtha-MCP combines foundation time-series AI with thermodynamic transit decay physics and statutory warehouse pledge financing into an autonomous 4-node LangGraph pipeline:
flowchart TB
subgraph Client["Frontend Edge (Streamlit / Bhashini)"]
Voice["Bhashini Multilingual Speech / Audio Triggers (Marathi, Hindi, Telugu, English)"]
UI["Mission Control Cockpit & 3-Column Arbitrage Matrix"]
ShockSlider["What-If Unseasonal Rainfall Shock Slider (+0mm to +100mm)"]
end
subgraph FastMCP["FastMCP Ingestion & Telemetry"]
MandiAPI["mandi-api & data.gov.in (OGD 9ef84268...)"]
WeatherAPI["Open-Meteo API (7-Day Rain/Temp Covariates)"]
OSRMAPI["OSRM Routing (Highway Distance & Geometry)"]
end
subgraph CoreEngine["Quantitative Foundation Models & Physics"]
Chronos["amazon/chronos-2 (P10, P50, P90 Quantiles)"]
Spoilage["Arrhenius Q10 Decay + Round-Trip Diesel Math"]
end
subgraph Governance["LangGraph v1.2.18 Stateful Orchestration"]
Node1["Node 1: quant_arbitrage"]
Node2["Node 2: policy_graphrag (LightRAG Hybrid Mode)"]
Gate["Node 3: human_approval_gate (interrupt() Consent Gate)"]
Node4["Node 4: execute_enwr_browser (Playwright WDRA Agent)"]
end
Voice --> UI
UI --> Node1
Node1 <--> FastMCP
FastMCP --> MandiAPI & WeatherAPI & OSRMAPI
Node1 <--> CoreEngine
CoreEngine --> Chronos & Spoilage
Node1 --> Node2
Node2 --> Gate
Gate -- "Command(resume=True)" --> Node4
Node4 --> UI🔬 Mathematical & Physical Defensibility
1. Arrhenius $Q_{10}$ Biological Transit Decay
$$k(T_{\text{amb}}, RH) = k_{\text{base}} \cdot \left(Q_{10}\right)^{\frac{T_{\text{amb}} - 20.0}{10.0}} \cdot \left(1 + \alpha_{\text{hum}} \cdot \max\left(0, \frac{RH - 70}{100}\right)\right)$$
$Q_{10} = 2.2$, $k_{\text{base}} = 0.0065$ (Tomato), $\alpha_{\text{hum}} = 1.5$.
Total transit time: $t_{\text{transit}} = t_{\text{duration}} + 2.5\text{h}$ mandatory APMC unloading queue buffer.
Spoilage loss fraction: $L = 1 - \exp\left(-k \cdot t_{\text{transit}}\right)$.
2. Freight & Net Realizable Price ($\text{NRP}$)
$$C_{\text{transport}} = 2 \cdot d_{\text{km}} \cdot ₹22/\text{km} + Q \cdot ₹35/\text{qtl}$$ $$\text{NRP}m = \left[ P{50} \cdot (1 - L) \cdot (1 - \gamma_{\text{APMC}}) \right] - \frac{C_{\text{transport}}}{Q}$$
📊 The 3-Column Financial Arbitrage Matrix (Nashik 50 qtl Lot)
Metric | Option A: Local Panic Sale | Option B: Long-Distance Surat Transit | Option C: KrishiArtha Recommended (WDRA e-NWR) |
Market Destination | Pimpalgaon APMC (Local) | Surat APMC (234 km) | MSWC Scientific Cold Storage, Ozar (14.2 km) |
Nominal Quoted Price | ₹900 / quintal | ₹1,350 / quintal | Rebound: ₹1,480 / quintal (10 days post-glut) |
$Q_{10}$ Transit Spoilage | ₹945 (2.1% loss) | ₹12,420 (18.4% rotting loss) | ₹0 (Accredited cold storage fiduciary guarantee) |
Round-Trip Diesel Freight | ₹1,925 | ₹6,800 ($₹22/\text{km}$ round-trip) | ₹750 (Local mini-truck transfer) |
Instant Liquidity | ₹45,000 | ₹48,280 | ₹33,750 Immediate Cash (75% LTV @ 4% net interest) |
Final Net Take-Home | ₹45,000 | ₹48,280 | ₹68,400 Net |
Net Arbitrage Gain | Baseline | +₹3,280 (+7.3%) | +₹23,400 (+52.0% Income Surge) |
🛡️ Security Audit (AgentShield)
Audited via npx ecc-agentshield scan:
Grade: A (100/100)
Findings: 0 Critical, 0 High, 0 Medium, 0 Low, 0 Info
Secrets: 100/100 (Zero exposed API keys or tokens)
Permissions: 100/100 (Safe sandbox compliance)
⚡ Quick Start
1. Clone & Install Dependencies
git clone https://github.com/0xabhilok/krishiartha-mcp.git
cd krishiartha-mcp
pip install -r requirements.txt2. Run the Full Test Suite
# Run all 70 unit tests in offline stage safe mode
pytest3. Launch the Mission Control Cockpit
streamlit run frontend/app.pyOpen http://localhost:8501 in your browser, or visit the live deployment at https://krishiartha-mcp.streamlit.app.
📂 Project Organization
contracts/schemas.py: Frozen Pydantic v2 schemas.mcp_server/: FastMCP server, Chronos-2 quantiles, $Q_{10}$ transit spoilage math.policy_rag/: LightRAG hybrid knowledge graph & NABARD/WDRA circular citations.orchestrator/: 4-node LangGraph StateGraph,interrupt()consent gate, Playwright WDRA agent.frontend/: Streamlit dashboard, Bhashini multilingual speech triggers, 3-column matrix.data/offline_snapshots/: Air-gapped deterministic stage snapshot for zero-fail live demos.docs/: 9-Slide World-Class Pitch Deck (Native Morph & Scannable QR Code), 5-Minute Video Walkthrough Script, and Submission Copy.
This server cannot be deployed
Maintenance
Related MCP Connectors
Agent-first marketplace for real-world assets — agro and energy first; humans approve every write.
Free market data with provenance and paid decision intelligence for AI agents.
A2A + MCP hub for retail grocery procurement — 20 markets on the SCHEMA algo record. Trade only.
AI-powered organic supply chain verification: certification, OFAC, FDA import checks.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceEnables AI assistants to analyze farm locations, retrieve soil and weather data, access commodity market prices, and chat with an agricultural advisor for farming recommendations.MIT- AlicenseAqualityDmaintenanceProvides LLMs with real-time access to Indian agricultural commodity prices across 3,000+ markets via the government's Agmarknet database.25MIT
- FlicenseAqualityDmaintenanceEnables AI agents to discover verifiable DeFi yield opportunities, generate algorithmic portfolio plans, and track cryptographic proof receipts, bridging LLMs with blockchain yield protocols.9-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to seal, open, verify, and ingest verifiable agri-traceability data by description, with credentials and private keys kept out of the model's flow.16 npmMIT