# leafengines

Hands your agent USDA soil data, NOAA weather forecasts and carbon credit math. Useful when the project touches farming or field mapping.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: QWarranto
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/QWarranto/leafengines-claude-mcp
- Updated: 2026-07-12
- HTML: https://affpapa.org/en/nevibecode/mcp/leafengines

## What it does

leafengines is an MCP server bundling agricultural tools. It reads soil composition and N/P/K guidance from the SSURGO database, pulls water quality metrics from EPA sources, and serves historical weather plus climate trends from NOAA. On top of that sit crop selection for a given soil and climate, irrigation scheduling, pest identification, yield estimates and commodity prices. Carbon footprint and sustainability scoring cover environmental reporting.

The package is `@ancientwhispers54/leafengines-mcp-server`, started through `npx` over stdio. Core functionality is described as offline-first, so processing stays local for fields with poor connectivity. The TurboQuant hardware check runs without a key; everything else needs `LEAFENGINES_API_KEY` set. Register the server without that variable and it still starts, but data calls fail.

Clients include Claude, Codex, Cursor, GitHub Copilot, Windsurf, Cline, Zed and Gemini CLI. Cursor and Copilot take a JSON block in their settings file; the rest have add commands. The key travels as the `LEAFENGINES_API_KEY` environment variable at registration time.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `LEAFENGINES_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add leafengines -e LEAFENGINES_API_KEY=<LEAFENGINES_API_KEY> -- npx -y @ancientwhispers54/leafengines-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add leafengines --env LEAFENGINES_API_KEY=<LEAFENGINES_API_KEY> -- npx -y @ancientwhispers54/leafengines-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "leafengines": {
            "command": "npx",
            "args": [
                "-y",
                "@ancientwhispers54/leafengines-mcp-server"
            ],
            "env": {
                "LEAFENGINES_API_KEY": "<LEAFENGINES_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "leafengines": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@ancientwhispers54/leafengines-mcp-server"
            ],
            "env": {
                "LEAFENGINES_API_KEY": "<LEAFENGINES_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LEAFENGINES_API_KEY=<LEAFENGINES_API_KEY> leafengines npx -y @ancientwhispers54/leafengines-mcp-server
```
Replace <…> with your own values

## When to use it
- check soil composition and pH from USDA before planting
- pick crops that fit a specific field and climate
- schedule irrigation around a weather forecast
- estimate the carbon footprint of a field for reporting
- get yield and price estimates for a crop ahead of harvest

## Example prompts
- Analyze the soil for this field using USDA data and tell me what N/P/K is missing
- Recommend crops that fit this climate and soil type
- Build an irrigation schedule for the next month from the weather forecast

## Similar
- [commodities-list](https://affpapa.org/en/nevibecode/skills/commodities-list.md) — skill · 336 installs
- [earth2studio-discover](https://affpapa.org/en/nevibecode/skills/earth2studio-discover.md) — skill · 1900 installs
- [agrobr](https://affpapa.org/en/nevibecode/mcp/agrobr.md) — MCP server · ★ 29
- [FAOSTAT MCP](https://affpapa.org/en/nevibecode/mcp/faostat-mcp.md) — MCP server · ★ 18
- [Mycelium Emissions Database](https://affpapa.org/en/nevibecode/mcp/mycelium-emissions-database.md) — MCP server
- [voltcast](https://affpapa.org/en/nevibecode/mcp/voltcast.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
