Skill: qwarranto/leafengines (version 1.1.2)

--- name: leafengines version: 1.2.0 description: LeafEngines - Agricultural Intelligence with Free Tier & Founder Pricing. 1,092+ downloads. 3 tools for soil analysis, crop recommendations, and TurboQuant capabilities. Free tier available with x-free-tier header. homepage: https://app.soilsidekickpro.com/mcp source: https://github.com/QWarranto/leafengines-claude-mcp metadata: {"openclaw":{"emoji":"🌱","os":["darwin","linux"],"requires":{"bins":[]},"install":[{"id":"claude-desktop","kind":"manual","steps":["1. Open Claude Desktop settings","2. Navigate to Developer → MCP Servers","3. Add new server with URL: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server","4. Add header: x-free-tier: true (FREE) OR x-[REDACTED_SECRET] (Paid)"],"label":"Configure in Claude Desktop"},{"id":"openclaw-mcp","kind":"manual","steps":["1. Choose FREE tier (x-free-tier: true) or PAID tier (get API key from Stripe checkout)","2. Configure MCP server in OpenClaw config with appropriate header"],"label":"Configure in OpenClaw"}],"mcp":{"server":"https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server","headers":{"x-free-tier":"true"},"tools":[{"name":"analyze_soil","description":"Analyze soil characteristics and get recommendations for a specific location. Requires county_fips parameter (5-digit code).","inputSchema":{"type":"object","properties":{"county_fips":{"type":"string","description":"5-digit county FIPS code (e.g., '13067' for Fulton County, GA)"},"api_key":{"type":"string","description":"Optional API key for paid features (use x-api-key header instead)"}},"required":["county_fips"]}},{"name":"recommend_crop","description":"Get crop recommendations based on soil analysis.","inputSchema":{"type":"object","properties":{"county_fips":{"type":"string","description":"5-digit county FIPS code"},"api_key":{"type":"string","description":"Optional API key for paid features"}},"required":["county_fips"]}},{"name":"check_turboquant","description":"Check if TurboQuant capabilities are available for a location (FREE). No authentication required.","inputSchema":{"type":"object","properties":{"county_fips":{"type":"string","description":"5-digit county FIPS code"}},"required":["county_fips"]}}]}}} --- # LeafEngines MCP Server v1.2.0 **Agricultural Intelligence with Free Tier & Founder Pricing** for Claude and OpenClaw. **1,092+ downloads** since March 29. Free tier available with `x-free-tier: true` header. ## Features **Why 1,092+ Developers Choose Us:** - ✅ **Free tier available** - No API key required for testing - ✅ **Founder pricing** - $10→$49/month lifetime lock (first 100 customers) - ✅ **Simple integration** - 3 focused tools with clear parameters - ✅ **Proven adoption** - 1,092 organic downloads - ✅ **Active development** - Regular updates and improvements **3 Agricultural Intelligence Tools:** 1. **Analyze Soil** - Soil characteristics and recommendations (requires `county_fips`) 2. **Recommend Crop** - Crop suggestions based on soil analysis 3. **Check TurboQuant** - Verify optimization capabilities (FREE, no auth) ## Pricing Tiers ### Free Tier (No Payment Required) - **Header:** `x-free-tier: true` - **Tools:** `check_turboquant` (always free), limited `analyze_soil` - **Rate Limit:** Reasonable usage for testing and evaluation - **No API Key Needed** - Start immediately ### Founder Pricing (First 100 Customers - Lifetime Lock) **Limited time offer:** First 100 customers get lifetime pricing locked at intro rates. **Starter Plan:** - **Intro:** $10/month → **Lifetime:** $49/month (normally $149) - **Checkout:** https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02 **Pro Plan:** - **Intro:** $49/month → **Lifetime:** $149/month (normally $499) - **Checkout:** https://buy.stripe.com/cNi3cv1WuajZcfE7IOaMU03 **After 100 customers or 30 days:** Prices return to normal ($149/$499) ### Normal Pricing (After Founder Period) - **Starter:** $149/month - **Pro:** $499/month - **Enterprise:** $1,999/month (custom volume) ## Quick Start ### Option A: Free Tier (Start Immediately) **No API key required** - Use `x-free-tier: true` header 1. **Configure Claude Desktop:** - Open Claude Desktop settings - Navigate to Developer → MCP Servers - Add new server: - URL: `https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server` - Headers: `x-free-tier: true` 2. **Configure OpenClaw:** ```yaml mcpServers: leafengines: url: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server headers: x-free-tier: true ``` ### Option B: Paid Tier (Full Access) **Get Founder pricing** - First 100 customers get lifetime lock 1. **Get API Key:** - **Starter:** https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02 ($10→$49/month lifetime) - **Pro:** https://buy.stripe.com/cNi3cv1WuajZcfE7IOaMU03 ($49→$149/month lifetime) 2. **Configure Claude Desktop:** - Same URL as above - Headers: `x-[REDACTED_SECRET]` 3. **Configure OpenClaw:** ```yaml mcpServers: leafengines: url: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server headers: x-[REDACTED_SECRET] ``` **Join 1,092+ developers** using agricultural intelligence tools. ## Use Cases ### For Farmers & Agriculturists - **Crop planning** based on soil and climate - **Irrigation optimization** using weather forecasts - **Pest management** with detection tools - **Yield prediction** for harvest planning ### For Researchers & Students - **Environmental analysis** for studies - **Climate impact assessment** - **Agricultural data** for research projects - **Sustainability scoring** ### For Developers & AI Agents - **Agricultural intelligence** in applications - **Environmental data** for AI models - **Real-time weather** and soil data - **Integration** with farming IoT systems - **TurboQuant optimization** testing and deployment ### For TurboQuant Users - **Test optimization** on your hardware - **Verify performance** improvements (6x memory, 8x speed) - **Check compatibility** for Gemma 7B on 4GB devices - **Optimize deployment** for edge/offline scenarios ## Security & Privacy ### Data Handling & Security - **SSL/TLS Encryption:** All API calls use HTTPS with valid SSL certificates from Supabase - **Endpoint Security:** `https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server` - **Data Retention:** API request logs retained for 30 days for usage monitoring and abuse prevention - **No Personal Data Collection:** API does not collect or store personal information beyond necessary request data - **Supabase Infrastructure:** Enterprise-grade cloud platform with SOC 2 compliance ### Free Tier Privacy - **No Authentication Required:** Free-tier endpoints (`turbo_quant_capabilities`) require no API key - **Anonymous Usage Tracking:** Basic metrics collected for service improvement (request count, endpoint usage) - **No Cross-Site Tracking:** No third-party analytics or tracking scripts - **Data Minimization:** Only necessary agricultural parameters collected (latitude, longitude, soil type, etc.) ### API Key Privacy - **GitHub Issue Process:** Email and use case only requested for API key issuance - **No Sensitive Data:** Never request passwords, personal identifiers, or financial information - **Key Rotation:** API keys can be regenerated upon request - **Usage Limits:** Clear rate limits documented per pricing tier ## API Key Options ### 1. Free Tier (Recommended for Testing) - **Header:** `x-free-tier: true` - **Tools:** `check_turboquant` (always free), limited `analyze_soil` - **No Signup Required** - Start immediately - **Privacy:** No email collection, anonymous usage ### 2. Founder Pricing (Limited Time) **First 100 customers get lifetime pricing lock:** - **Starter:** $10/month → $49/month lifetime (normally $149) - Checkout: https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02 - **Pro:** $49/month → $149/month lifetime (normally $499) - Checkout: https://buy.stripe.com/cNi3cv1WuajZcfE7IOaMU03 ### 3. Normal Pricing (After Founder Period) - **Starter:** $149/month - **Pro:** $499/month - **Enterprise:** $1,999/month (custom) **No more GitHub issue requests** - All API keys via Stripe checkout for instant access. ## API Documentation **MCP Server URL:** `https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server` **Authentication Options:** 1. **Free Tier:** `x-free-tier: true` header 2. **Paid Tier:** `x-[REDACTED_SECRET]` header **Emergency API (Direct Calls):** - **Base URL:** `https://leafengines-emergency-api-1.onrender.com/v1/` - **Free Tier:** Same `x-free-tier: true` header - **Parameter:** `county_fips` (5-digit code required) **MCP Tools:** 1. **`analyze_soil`** - Soil analysis with recommendations - **Parameter:** `county_fips` (5-digit code) - **Free Tier:** Limited access with `x-free-tier: true` 2. **`recommend_crop`** - Crop recommendations - **Parameter:** `county_fips` (5-digit code) - **Paid Tier:** Full access with `x-api-key` 3. **`check_turboquant`** - TurboQuant capabilities check - **Parameter:** `county_fips` (5-digit code) - **Always FREE** - No authentication required ## Support & Community - **GitHub Repository:** https://github.com/QWarranto/leafengines-claude-mcp - **Documentation:** https://github.com/QWarranto/soil-sidekick-pro-guide - **Early Adopters:** 1,092+ MCP downloads, 476+ n8n downloads, 54+ QGIS downloads - **Support:** GitHub issues or email **Platform Downloads (as of April 20, 2026):** - **MCP Server:** 1,092+ downloads (since March 29) - **n8n Node:** 476+ downloads (since April 9) - **Node-RED:** 124+ downloads (since April 6) - **QGIS Plugin:** 54+ downloads (since April 14) - **Total:** ~1,746+ downloads across platforms ## License & Intellectual Property Proprietary - Commercial API service. Free tier available for testing including TurboQuant capabilities check - **used by 1,092+ developers**. ## TurboQuant Technology **Powered by Google's TurboQuant research:** 6x memory compression for LLMs enabling Gemma 7B to run on 4GB devices with 8x faster inference for agricultural analysis tasks. --- **Updated:** April 20, 2026 **Version:** 1.2.0 **Key Changes:** - Corrected tool list (3 tools, not 10) - Added Free Tier instructions (`x-free-tier: true`) - Updated pricing to Founder model (first 100 customers) - Removed outdated GitHub issue API key process - Added accurate download statistics (1,092+ MCP downloads) - Fixed Quick Start with dual paths (Free vs Paid)

path: README.md
content: # LeafEngines ClawHub Skill

## 🚀 FREE TIER: NO API KEY NEEDED!nn**Immediate access with test key:** `leaf-test-370df0a2e62e`nn### ✅ Try It Now (No Waiting):nn1. **Use test key:** `leaf-test-370df0a2e62e`n2. **Immediate access** to all featuresn3. **No forms, no waiting, no approval**n4. **Works across all platforms**nn**Test key gives you:**n- Full soil analysis capabilitiesn- Crop recommendationsn- Weather datan- Environmental impact assessmentn- All free tier featuresnn---nn**Want higher limits or commercial use?** Get instant API keys via [Stripe checkout](https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02) (Starter: $49 Founder Pricing).

🌱 **Patent-Protected Agricultural Intelligence for OpenClaw Agents** - The only MCP server with patented algorithms. 755+ developers agree.

## 🎯 Strategic Vision: From AgTech to Universal Infrastructure

## 🚀 FREE TIER: NO API KEY NEEDED!nn**Immediate access with test key:** `leaf-test-370df0a2e62e`nn### ✅ Try It Now (No Waiting):nn1. **Use test key:** `leaf-test-370df0a2e62e`n2. **Immediate access** to all featuresn3. **No forms, no waiting, no approval**n4. **Works across all platforms**nn**Test key gives you:**n- Full soil analysis capabilitiesn- Crop recommendationsn- Weather datan- Environmental impact assessmentn- All free tier featuresnn---nn**Want higher limits or commercial use?** Get instant API keys via [Stripe checkout](https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02) (Starter: $49 Founder Pricing).

**Watch our 7-minute strategic expansion plan:**

[![LeafEngines Strategic Expansion](https://img.youtube.com/vi/bBHVLbh3tx0/0.jpg)](https://youtu.be/bBHVLbh3tx0)

### **The Strategic Pivot:**
LeafEngines is executing a calculated pivot from vertical AgTech to **horizontal infrastructure platform**. We're exploiting a critical global vulnerability: the fragility of satellite-based Positioning, Navigation, and Timing (PNT).

### **Core Mission:**
> **"Space gives the picture. We give the truth."**

### **Key Markets Identified:**
- **Disaster Response** - GPS-denied environments
- **Mining & Forestry** - Remote operations
- **Industrial Automation** - GPS-denied factories
- **Power Grids** - High-precision timing
- **Finance** - MiFID II-compliant timestamps
- **Defense/Intelligence** - Assured PNT in contested theaters

### **Our Advantage:**
- **Offline-first architecture** - Works anywhere, anytime
- **CIP Patent protection** - Inertial Dead Reckoning + Kalman logic
- **Community arbitrage** - Zero-CAC distribution through n8n/Node-RED/MCP
- **Quality transparency** - v3.0.0 confidence scoring & audit trails

### **The Vision:**
Transforming our core technology into a **foundational trust layer for autonomous physical AI** - the mandatory infrastructure for a world requiring GPS-independent verification.

### **💡 How to Use This Video (Developer Tool):**
This video serves as a **non-traditional sales and marketing tool** you can leverage:
- **Internal Stakeholder Alignment:** Share with your team to explain the strategic vision
- **Client Presentations:** Demonstrate the company behind the technology
- **Investor Briefings:** Show the $1.2T horizontal market opportunity
- **Community Building:** Educate other developers about the broader ecosystem

### **🎬 Cinematic Scene Guide:**
**Scene 1: Devices on Bench (0:45-1:15)** - Show hardware integration proof
**Scene 2: Developer Embedding (1:30-2:15)** - Demonstrate integration process
**Scene 3: Buy→Resell→Market (2:30-3:45)** - Explain business model
**Scene 4: Strategic Vision (4:00-5:30)** - Share market opportunity

### **🌐 The Offline AI Economy:**
**Read our philosophical manifesto:** [THE_OFFLINE_AI_ECONOMY.md](https://github.com/soilsidekick/leafengines/blob/main/THE_OFFLINE_AI_ECONOMY.md)

**Core Thesis:** "While much of the AI industry focuses on the size of cloud-based models, those models are unable to execute physical tasks without ground truth integrity."

**Three-Layer Solution:**
1. **Sensor Fusion** - Local dead reckoning without satellites
2. **Kalman Gate** - Uncertainty gating prevents database corruption
3. **Offline-First MCP** - Enables local AI decisions without cloud

**Business Model Revolution:**
- **Filtered Byte Pricing** - Charge for prevented corruption
- **Pay-Per-Agent Action** - Bill for successful high-value tasks
- **Outcome-Based Pricing** - Shift from access to utility

---

## Overview

This ClawHub skill enables OpenClaw agents to access LeafEngines' **patent-protected agricultural intelligence platform** (SoilSidekick architecture), providing tools for soil analysis, weather forecasting, crop recommendations, and environmental impact assessment. 

**Why 755 developers chose us in 4 days:**
- ✅ **Patent-protected algorithms** (not just another API wrapper)
- ✅ **TurboQuant technology** for 6x memory reduction
- ✅ **Edge AI intelligence** vs. generic cloud APIs
- ✅ **Proven demand** - 755 organic downloads without marketing

## Features

### 🚀 **TurboQuant Performance**
- **6x memory reduction** with Google TurboQuant optimization
- **8x faster inference** for agricultural analysis
- **Gemma 7B on 4GB devices** (previously required 8GB+)
- **Cloud-equivalent performance** on edge devices

### 🌾 **Agricultural Intelligence Tools**
1. **Soil Analysis** - Composition and recommendations
2. **Weather Forecast** - 7-day agricultural weather data
3. **Crop Recommendations** - Based on soil and climate conditions
4. **Environmental Impact** - Sustainability and carbon footprint analysis
5. **TurboQuant Capabilities** - FREE hardware optimization check


## 🆓 Free Tier - Test Immediately

**Zero friction to try:** No email, no credit card, no commitment.

### **Two Ways to Test Free:**
1. **Test Key:** `leaf-test-370df0a2e62e` (works immediately)
2. **Free Tier Header:** `x-free-tier: true` (no API key needed)

### **What You Get:**
- Basic soil analysis with county FIPS codes
- USDA soil data access
- Limited requests for evaluation
- Perfect for prototyping and testing

**No risk, no commitment.** Test before buying.

### 💰 **Pricing Tiers**
- **FREE Tier:** `turbo_quant_capabilities` tool (no API key required) - **Used by 755+ developers**
- **Paid Tiers:** From $0.001/call for patent-protected soil analysis, weather forecasts, etc.
- **Monthly Plans:** Save 30-70% with Starter ($149), Pro ($499), or Enterprise ($1,999) plans

## Installation

### For OpenClaw Users
```bash
# Install via ClawHub - Join 755+ developers using patent-protected agricultural AI

## 🎯 QGIS Plugin Officially Approved!

**Plugin ID:** 4987 (LeafEngines Agricultural Intelligence)  
**Version:** 1.0.2 Experimental  
**Status:** ✅ **PUBLICLY AVAILABLE**  
**Download:** https://plugins.qgis.org/plugins/qgis_leafengines/version/1.0.2/download/

### Key Features:
- **USDA soil data** - Soil composition, pH, N/P/K recommendations
- **EPA water quality** - Water quality metrics and analysis
- **NOAA climate data** - Historical weather patterns and agricultural forecasting
- **Satellite vegetation indices** - NDVI, water-stress overlays from NASA MODIS
- **AI-powered crop recommendations** - Tailored to exact field polygons
- **Carbon credit calculations** - Environmental impact scoring for regulatory compliance
- **Offline-first architecture** - Works in remote/"deep canopy" areas
- **GPS-denied capabilities** - Military-proven algorithms for contested environments

### Strategic Advantages for Partners:
1. **Pre-vetted, low-risk integration** - Officially approved by QGIS after rigorous review
2. **Seamless future-proofing** - Aligns with QGIS release cycles (QGIS 4.0.0+ ready)
3. **Instant credibility** - Discoverable by 500,000+ QGIS users in agriculture sector
4. **Regulatory advantage** - Preferred for government/EPA/USDA-related procurements
5. **Ecosystem power** - Integrates with thousands of complementary QGIS plugins

### For OEM Partners:
Embed LeafEngines agricultural intelligence directly into your hardware or software platforms with confidence. The official QGIS approval eliminates weeks of custom validation, security audits, and compatibility testing.

*Approved: April 14, 2026*

clawhub install leafengines

# Or manually add to skills directory
```

### For Developers
```bash
# Clone the repository
git clone https://github.com/QWarranto/leafengines-claude-mcp.git
cd leafengines-claude-mcp/leafengines-clawhub-skill

# The skill is ready to use with OpenClaw
```

## Configuration

### 1. Get API Key
**Test API (Try Now):** Use test key: `leaf-test-370df0a2e62e`

**Or request production key:** Visit [https://app.soilsidekickpro.com/api-docs](https://app.soilsidekickpro.com/api-docs)

### 2. Configure OpenClaw
Add to your OpenClaw configuration:

```yaml
skills:
  leafengines:
    enabled: true
    config:
      [REDACTED_SECRET]
      base_url: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server-v2
```

### 3. Environment Variables
```bash
export LEAFENGINES_API_KEY="leaf-test-370df0a2e62e"
```

**Works with just county_fips:**
```json
{
  "county_fips": "12086"
}
```

**No signup required - works immediately!**

## Usage Examples

### Soil Analysis
```yaml
# Agent request pattern
- tool: leafengines_soil_analysis
  params:
    latitude: 33.7490
    longitude: -84.3880
    soil_type: "loam"
```

### Weather Forecast
```yaml
- tool: leafengines_weather_forecast
  params:
    latitude: 33.7490
    longitude: -84.3880
    days: 3
```

### Crop Recommendation
```yaml
- tool: leafengines_crop_recommendation
  params:
    latitude: 33.7490
    longitude: -84.3880
    season: "spring"
```

### FREE TurboQuant Check
```yaml
- tool: leafengines_turbo_quant_capabilities
  params:
    check_hardware: true
    get_optimization_status: true
```

## Use Cases

### For Agricultural Agents
- **Farm planning** and crop selection
- **Weather-based** irrigation scheduling
- **Soil health** monitoring and recommendations
- **Environmental compliance** and sustainability reporting

### For Research Agents
- **Agricultural data** analysis and research
- **Climate impact** studies
- **Crop yield** prediction models
- **Environmental policy** analysis

### For Development Agents
- **API integration** testing
- **Performance benchmarking** with TurboQuant
- **Agricultural application** development
- **IoT system** integration

## API Integration

### MCP Server (Model Context Protocol)
LeafEngines is also available as an MCP server for Claude Desktop and other MCP-compatible clients:

```bash
# Install MCP server globally
npm install -g @ancientwhispers54/leafengines-mcp-server

# Run the server
leafengines-mcp-server
```

### MCP Registry Listing
- **Name:** `io.github.QWarranto/leafengines`
- **Version:** 1.1.6 (latest), 7 versions published
- **Registry:** [https://registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io)
- **Status:** ✅ **Active** with 755+ downloads in first 4 days

## Support & Resources

### Documentation
- **API Documentation:** [https://app.soilsidekickpro.com/api-docs](https://app.soilsidekickpro.com/api-docs)
- **MCP Documentation:** [https://app.soilsidekickpro.com/mcp](https://app.soilsidekickpro.com/mcp)
- **MCP Server:** [https://www.npmjs.com/package/@ancientwhispers54/leafengines-mcp-server](https://www.npmjs.com/package/@ancientwhispers54/leafengines-mcp-server)
- **GitHub Repository:** [https://github.com/QWarranto/leafengines-claude-mcp](https://github.com/QWarranto/leafengines-claude-mcp)

### Community
- **GitHub Discussions:** [Join 755+ developers sharing use cases](https://github.com/QWarranto/leafengines-claude-mcp/discussions)
- **GitHub Issues:** Bug reports and feature requests
- **Twitter:** @LeafEnginesAI for updates
- **Early Adopters:** 755+ developers already deployed

### Getting Help
1. Check the [API documentation](https://app.soilsidekickpro.com/api-docs) or [MCP documentation](https://app.soilsidekickpro.com/mcp)
2. Open a [GitHub issue](https://github.com/QWarranto/leafengines-claude-mcp/issues)
3. Test with the FREE `turbo_quant_capabilities` tool first

## License & Intellectual Property

This skill integrates with the LeafEngines API service. The skill code is open source, while the API service has commercial terms and **patent-protected algorithms**.

- **Skill Code:** Open source (see LICENSE file)
- **API Service:** Commercial with FREE tier available
- **Core Algorithms:** **Patent-protected** (SoilSidekick architecture)
- **TurboQuant Technology:** Based on Google research (6x memory compression)
- **Market Validation:** 755+ downloads in first 4 days

## Changelog

### v1.1.0 (Current)
- Initial ClawHub skill release
- Integration with LeafEngines MCP server v1.1.6
- **Patent-protected agricultural AI algorithms**
- TurboQuant performance optimization
- 5 agricultural intelligence tools
- FREE tier with `turbo_quant_capabilities`
- **755+ downloads in first 4 days**

## Contributing

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

## Related Projects

- **LeafEngines MCP Server:** [npm package](https://www.npmjs.com/package/@ancientwhispers54/leafengines-mcp-server)
- **LeafEngines Claude Integration:** [GitHub](https://github.com/QWarranto/leafengines-claude-mcp)
- **SoilSidekick Pro:** [Web Application](https://app.soilsidekickpro.com)
- **MCP Documentation:** [https://app.soilsidekickpro.com/mcp](https://app.soilsidekickpro.com/mcp)

---

🌱 **Happy farming with AI!** Powered by TurboQuant technology.
## 💳 Pricing for ClawHub Skill

**Subscription Plans (Recommended):**

| Region | Starter (Monthly) | Pro (Monthly) | Local Payment Methods |
|--------|-------------------|---------------|----------------------|
| **United States** | $49 | $149 | Card, Apple Pay, Google Pay, Affirm |
| **European Union** | €45 (VAT incl.) | €135 (VAT incl.) | Klarna (DE), iDEAL (NL), EPS (AT), Apple/Google Pay |
| **United Kingdom** | £38 (VAT incl.) | £115 (VAT incl.) | Afterpay/Clearpay, Apple/Google Pay |
| **Australia** | AU$75 (GST incl.) | AU$225 (GST incl.) | Afterpay, Apple/Google Pay |

**Pay-As-You-Go (Commoditized Pricing):**
- **Exclusive:** $0.50/request
- **Proprietary:** $0.25/request  
- **Enhanced:** $0.10/request
- **Commoditized:** $0.01/request

**Why Subscription is Better:**
- Predictable monthly costs
- Local payment methods available
- Tax-inclusive pricing
- Better value for regular use

**Free Testing:** Skill includes test key `leaf-test-370df0a2e62e`
**Founder Pricing:** First 100 customers get lifetime pricing lock


path: _meta.json
content: ownerId: kn72krez0zbdcj5qzacd0ccrv583m54f
slug: leafengines
version: 1.1.0
publishedAt: 1774920835356

path: references/API_REFERENCE.md
content: # LeafEngines API Reference

## Base URL
`https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/`

## Authentication
All requests require an `x-api-key` header with your API key.

## Rate Limits
Based on your subscription tier:

| Tier | Requests/Month | Rate Limit |
|------|----------------|------------|
| Starter | 50,000 | 10 req/sec |
| Pro | 200,000 | 25 req/sec |
| Enterprise | 1,000,000 | 100 req/sec |

## Endpoints

### Health Check
`GET /api/health`

Check API service status.

**Response:**
```json
{
  "status": "healthy",
  "timestamp": "2026-03-26T08:00:00Z",
  "version": "1.0.0"
}
```

### Soil Analysis
`POST /soil-analysis`

Analyze soil composition and provide recommendations.

**Request Body:**
```json
{
  "latitude": 33.7490,
  "longitude": -84.3880,
  "soil_type": "loam",
  "depth_cm": 30,
  "organic_matter_percent": 2.5
}
```

**Response:**
```json
{
  "analysis": {
    "ph_level": 6.8,
    "nitrogen_ppm": 45,
    "phosphorus_ppm": 22,
    "potassium_ppm": 180,
    "organic_matter": 2.5,
    "texture": "loam",
    "moisture_percent": 18.5
  },
  "recommendations": [
    "Add 50 lbs/acre of nitrogen fertilizer",
    "Maintain current phosphorus levels",
    "Consider cover cropping for organic matter"
  ],
  "suitable_crops": ["corn", "soybeans", "wheat", "cotton"]
}
```

### Weather Forecast
`GET /weather-forecast`

Get weather forecast for location.

**Query Parameters:**
- `latitude` (required): Latitude coordinate
- `longitude` (required): Longitude coordinate  
- `days` (optional): Forecast days (1-7, default: 3)

**Example:**
`GET /weather-forecast?latitude=33.7490&longitude=-84.3880&days=5`

**Response:**
```json
{
  "location": {
    "latitude": 33.7490,
    "longitude": -84.3880,
    "name": "Atlanta, GA"
  },
  "forecast": [
    {
      "date": "2026-03-26",
      "high_c": 22,
      "low_c": 12,
      "precipitation_mm": 0,
      "humidity_percent": 65,
      "wind_speed_kmh": 15,
      "conditions": "Sunny"
    }
  ]
}
```

### Crop Recommendation
`POST /crop-recommendation`

Recommend crops based on soil and climate.

**Request Body:**
```json
{
  "latitude": 33.7490,
  "longitude": -84.3880,
  "season": "spring",
  "water_availability": "medium",
  "market_demand": ["vegetables", "grains"]
}
```

**Response:**
```json
{
  "recommended_crops": [
    {
      "name": "Corn",
      "suitability_score": 0.85,
      "planting_window": "April 15 - May 15",
      "expected_yield_kg_ha": 9500,
      "water_requirement_mm": 500,
      "market_price_usd_kg": 0.18
    }
  ],
  "rotation_suggestions": [
    "Corn → Soybeans → Wheat",
    "Cotton → Peanuts → Cover crop"
  ]
}
```

### Pest Detection
`POST /pest-detection`

Identify common pests from symptoms.

**Request Body:**
```json
{
  "crop": "tomato",
  "symptoms": ["yellow leaves", "holes in leaves", "stunted growth"],
  "location": "southeast_us",
  "photos": ["base64_encoded_image_data"]
}
```

**Response:**
```json
{
  "detected_pests": [
    {
      "name": "Tomato Hornworm",
      "confidence": 0.92,
      "treatment": "Apply Bacillus thuringiensis (Bt)",
      "prevention": "Use row covers, handpick larvae"
    }
  ],
  "integrated_pest_management": {
    "biological": "Release Trichogramma wasps",
    "chemical": "Neem oil application",
    "cultural": "Crop rotation with non-solanaceous plants"
  }
}
```

### Irrigation Scheduling
`POST /irrigation-schedule`

Optimize water usage.

**Request Body:**
```json
{
  "crop": "corn",
  "growth_stage": "vegetative",
  "soil_moisture_percent": 45,
  "weather_forecast": "hot_dry",
  "irrigation_system": "drip"
}
```

**Response:**
```json
{
  "schedule": {
    "next_irrigation": "2026-03-27T06:00:00Z",
    "duration_minutes": 120,
    "water_volume_liters": 4500,
    "efficiency_score": 0.88
  },
  "recommendations": [
    "Water in early morning to reduce evaporation",
    "Consider adding mulch to retain soil moisture",
    "Monitor soil moisture daily during hot periods"
  ]
}
```

### Yield Prediction
`POST /yield-prediction`

Predict crop yield.

**Request Body:**
```json
{
  "crop": "wheat",
  "planting_date": "2026-10-15",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "management_practices": ["no-till", "cover_crops", "precision_fert"]
}
```

**Response:**
```json
{
  "predicted_yield": {
    "kg_per_hectare": 4200,
    "confidence_interval": [3950, 4450],
    "comparison_to_average": "+12%"
  },
  "key_factors": [
    {"factor": "Soil quality", "impact": "high", "direction": "positive"},
    {"factor": "Spring rainfall", "impact": "medium", "direction": "unknown"}
  ]
}
```

### Market Prices
`GET /market-prices`

Get agricultural commodity prices.

**Query Parameters:**
- `commodity` (optional): Specific commodity (corn, wheat, soybeans, etc.)
- `location` (optional): Market location
- `date` (optional): Historical date (YYYY-MM-DD)

**Example:**
`GET /market-prices?commodity=corn&location=chicago`

**Response:**
```json
{
  "prices": [
    {
      "commodity": "Corn",
      "market": "Chicago Board of Trade",
      "price_usd_per_bushel": 4.85,
      "change_percent": 1.2,
      "date": "2026-03-26",
      "unit": "bushel"
    }
  ],
  "trend": "upward",
  "seasonal_average": 4.65
}
```

### Sustainability Score
`POST /sustainability-score`

Calculate environmental impact score.

**Request Body:**
```json
{
  "farm_size_ha": 100,
  "crops": ["corn", "soybeans", "wheat"],
  "practices": ["no-till", "cover_crops", "integrated_pest_mgmt"],
  "water_source": "rainfall",
  "energy_source": "solar"
}
```

**Response:**
```json
{
  "score": 78,
  "breakdown": {
    "soil_health": 85,
    "water_use": 72,
    "biodiversity": 65,
    "carbon_footprint": 82,
    "economic_sustainability": 76
  },
  "improvements": [
    "Add buffer strips along waterways (+5 points)",
    "Implement rotational grazing (+8 points)",
    "Install solar panels for irrigation (+6 points)"
  ]
}
```

### Farm Planning
`POST /farm-planning`

Create seasonal farm plan.

**Request Body:**
```json
{
  "farm_size_ha": 50,
  "location": {"latitude": 38.9072, "longitude": -77.0369},
  "goals": ["maximize_yield", "reduce_input_costs", "improve_soil_health"],
  "budget_usd": 50000
}
```

**Response:**
```json
{
  "annual_plan": {
    "spring": ["Plant corn", "Apply fertilizer", "Start irrigation"],
    "summer": ["Monitor pests", "Weed control", "Harvest wheat"],
    "fall": ["Plant cover crops", "Soil testing", "Equipment maintenance"],
    "winter": ["Planning", "Training", "Infrastructure repairs"]
  },
  "budget_allocation": {
    "seeds": 12000,
    "fertilizer": 8000,
    "labor": 15000,
    "equipment": 10000,
    "contingency": 5000
  },
  "expected_outcomes": {
    "revenue_usd": 85000,
    "profit_margin": 0.41,
    "soil_health_improvement": "+15%"
  }
}
```

## Error Responses

All errors return JSON with:

```json
{
  "error": {
    "code": "invalid_api_key",
    "message": "Invalid or missing API key",
    "details": "Please check your x-api-key header"
  }
}
```

**Common Error Codes:**
- `invalid_api_key` - Missing or invalid API key
- `rate_limit_exceeded` - Too many requests
- `invalid_parameters` - Missing or invalid parameters
- `service_unavailable` - API temporarily unavailable
- `insufficient_quota` - Monthly request limit reached

## SDKs and Libraries

### Python
```python
import requests

[REDACTED_SECRET]"
headers = {"x-api-key": api_key}

response = requests.get(
    "https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/api/health",
    headers=headers
)
```

### JavaScript/Node.js
```javascript
const response = await fetch(
  'https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/api/health',
  {
    headers: {
      'x-api-key': 'your_api_key_here'
    }
  }
);
```

### cURL
```bash
curl -H "x-[REDACTED_SECRET]" \
  https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/api/health
```

## Support
- GitHub: https://github.com/QWarranto/leafengines-claude-mcp
- Discord: #mcp channel in Claude Discord
- Email: Support via GitHub issues

path: scripts/install.sh
content: #!/bin/bash
# LeafEngines MCP Server installation script
# For OpenClaw skill installation

set -e

echo "🌱 Installing LeafEngines MCP Server skill..."

# Check for required tools
if ! command -v curl &> /dev/null; then
    echo "❌ curl is required but not installed"
    exit 1
fi

# Create configuration directory
CONFIG_DIR="$HOME/.openclaw/config"
mkdir -p "$CONFIG_DIR"

# Check if OpenClaw config exists
if [ ! -f "$CONFIG_DIR/config.yaml" ] && [ ! -f "$CONFIG_DIR/config.yml" ]; then
    echo "⚠️  OpenClaw config not found. Creating basic config..."
    cat > "$CONFIG_DIR/config.yaml" << EOF
# OpenClaw Configuration
# LeafEngines MCP Server added $(date)

mcpServers:
  leafengines:
    url: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server
    headers:
      x-[REDACTED_SECRET]
    description: Agricultural Intelligence API for soil analysis, weather forecasting, and crop recommendations

# Add your API key after getting it from:
# https://github.com/QWarranto/leafengines-claude-mcp/issues/new?template=get-api-key.md
EOF
    echo "✅ Created OpenClaw config at $CONFIG_DIR/config.yaml"
else
    echo "✅ OpenClaw config found"
fi

# Create API key instructions
cat > "API_KEY_INSTRUCTIONS.md" << 'EOF'
# 🌱 LeafEngines API Key Setup

## Get Your API Key

1. **Visit GitHub:** https://github.com/QWarranto/leafengines-claude-mcp
2. **Click "New Issue"**
3. **Select "🌱 Get Agricultural Intelligence API" template**
4. **Fill out the form** with your email and use case
5. **Submit** - You'll receive an API key via email

## Configure OpenClaw

Edit your OpenClaw config (`~/.openclaw/config/config.yaml`):

```yaml
mcpServers:
  leafengines:
    url: https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server
    headers:
      x-[REDACTED_SECRET]  # ← Replace with your key
```

## Configure Claude Desktop

1. Open Claude Desktop
2. Go to Settings → Developer → MCP Servers
3. Add new server:
   - URL: `https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/mcp-server`
   - Headers: `x-[REDACTED_SECRET]`

## Test Your Setup

```bash
# Test API key
curl -H "x-[REDACTED_SECRET]" \
  https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/api/health
```

## Support
- GitHub Issues: https://github.com/QWarranto/leafengines-claude-mcp/issues
- Discord: #mcp channel in Claude Discord
EOF

echo "✅ Created API key instructions: API_KEY_INSTRUCTIONS.md"

# Test connection to API
echo "🔧 Testing connection to LeafEngines API..."
if curl -s -o /dev/null -w "%{http_code}" "https://wzgnxkoeqzvueypwzvyn.supabase.co/functions/v1/api/health" | grep -q "200"; then
    echo "✅ LeafEngines API is reachable"
else
    echo "⚠️  Could not reach LeafEngines API (may require API key)"
fi

echo ""
echo "🎉 Installation complete!"
echo ""
echo "📋 Next steps:"
echo "1. Get your API key from GitHub:"
echo "   https://github.com/QWarranto/leafengines-claude-mcp/issues/new?template=get-api-key.md"
echo "2. Configure OpenClaw with your API key"
echo "3. Restart OpenClaw to load the MCP server"
echo ""
echo "📚 Full instructions in: API_KEY_INSTRUCTIONS.md"
echo "🌐 Website: https://github.com/QWarranto/leafengines-claude-mcp"

Security scan verdicts — ClawScan: clean | static analysis: suspicious | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)