Before you start
- A Leaf account.
- Cursor IDE installed (version 0.40+ with MCP support).
Step 1: Add the MCP server to Cursor
Open Cursor Settings (Cmd+, on Mac, Ctrl+, on Windows/Linux) and navigate to MCP Servers. Click Add new MCP Server and configure it:- Name:
leaf-mcp - Type:
HTTP - URL:
https://mcp.withleaf.io/mcp
Step 2: Verify the connection
Open a new Cursor chat (Agent mode) and ask:get_docs_index tool and returns a list of all documentation topics available through the MCP server. If you see the index, the connection is working.
Step 3: Find a grower
search_growers. A unique match includes a leaf_user_id; multiple matches return candidates so you can choose the correct grower.
Step 4: Query fields for the grower
<leaf_user_id> with the UUID from the previous step. Cursor calls search_fields with the Leaf user, fuzzy name, provider, and status filters. It returns field summaries with links to the matching dashboard pages. For an unfiltered first page, ask Cursor to call list_fields.
Step 5: Pull harvest operations
list_operations with the grower ID, operation_type=harvested, sort_by=start_time, and sort_direction=desc. Sorting happens before pagination, so the first page contains the newest matching operations. Each summary includes an operation_id and dashboardUrl.
To dig into a specific operation:
get_operation with include: ["summary"]. Open the returned dashboardUrl to continue in the Leaf Dashboard.
Step 6: Explore additional tools
The MCP server exposes customer-path tools across these areas:
You can ask Cursor natural-language questions and it will pick the right tool. For example:
- “What’s the weather forecast for field X?”
- “Show me the processing status of file Y”
- “Pull the API documentation for field operations”

