https://mcp.withleaf.io/mcp. It is a tool reference, not a REST API reference, and it groups the available capabilities by product area.
Overview
The Leaf MCP (Model Context Protocol) server exposes tools that AI assistants can call to interact with Leaf programmatically. Instead of making REST calls directly, your MCP-compatible client (such as Cursor, Claude, Grok Bot, or any other agent) invokes typed tools and receives structured, assistant-friendly summaries.The MCP server is a tool server, not a REST API. Configure the MCP endpoint
https://mcp.withleaf.io/mcp in your client; the server handles communication with Leaf services on your behalf.Configuration
Point your MCP client at the remote Leaf server. The hosted server uses OAuth and prompts you to sign in with your Leaf account; no token header is required.Available tools
The server groups its tools into the categories below. Each tool returns structured summaries, links, and structured errors rather than copying raw Leaf API responses. See MCP Tools Reference for exact parameters, include values, and result behavior.Account context
Growers and fields
Field operations
GeoJSON and GeoParquet includes each return an expiring
downloadUrl and an imageRecipe that agents can use with their available plotting tools. The MCP server does not render the image.
For a grower’s latest harvests, call list_operations with operation_type: "harvested", sort_by: "start_time", and sort_direction: "desc". See MCP Tools Reference for the full search criteria and guardrails.
Machine files
Batch uploads
Weather
Weather tools accept optional
start_time, end_time, model, and units parameters. Daily tools use YYYY-MM-DD dates; hourly tools use ISO 8601 timestamps.Billing
Documentation
For configuration context, use
get_org_context or get_grower with include: ["pipeline"]. For provider status, use get_grower with include: ["providers"].
