NextFarm Developers
Connect to farm data
Let accounting software, produce marketplaces, co-op ERPs and AI assistants work with farms on NextFarm — securely, scoped, under the farm owner's control.
REST API · OAuth2 · MCP · Webhooks · SDK Node / Python · CLI
I run a farm
Connect your farm's own software (accounting, ERP) — create an API key in the app, pick scopes, use it now.
Start →Working for one farm? Start here too.
I build software for many farms
Self-serve sign-up, a Developer workspace with sample data, an App ID + App Secret instantly, test and Publish yourself.
Become a partner →I use AI (MCP)
Any MCP-capable AI assistant (ChatGPT, Claude, Copilot, Cursor, Gemini, Grok…) reads farm data.
Connect AI →Apps for many farms — 4 steps, all self-serve
- 1Sign up as a partner — get a Developer workspace with sample data that never expires.
- 2Create an app in My apps, pick Use cases, get an App ID + App Secret instantly.
- 3Try it in Test Console or API Explorer: Generate Access Token, call the API, read API Logs.
- 4Click Publish — the Publish checklist runs automatically; pass it and every farm sees the app in System › Apps.
Watch the whole flow in 4 minutes
Sign up → create an app → call the API → Publish, with voice-over.Vietnamese audio · 4:01Jump to a step
Done watching? Become a partner →
Start coding — farm data from code or the terminal
Node · Python SDK
Typed clients for maps & seasons, IoT, harvest & traceability and farm books, with token refresh and retries. Generated from the live OpenAPI document.
npm install @nextfarm/sdkpip install nextfarm-sdknextfarm CLI
Ask the farm assistant (nextfarm ai -p), /thoi-tiet, /sau-benh, call the API, forward webhooks to your machine, run in CI.
brew install nextx-organization/nextfarm/nextfarmnpm install -g nextfarmDeveloper workspace
Free plan + a sample farm (parcels, virtual devices, harvest batches); nothing can be sent outside (Zalo OA, email, farm mailbox).
OAuth2 App
Apps get an Access token with App ID + App Secret and call the API within the scopes the farm granted.
Per-operation scopes
22 scopes in 5 groups; farms grant scopes on install. No scope can control devices.
MCP · AI tools
Plug straight into ChatGPT, Claude, Copilot, Cursor, Gemini — 32 tools, none that control devices.
Webhooks
Sensor alerts, offline devices, harvest batches — Standard Webhooks, retried 7 times.
API reference
146 operations across 5 groups: maps & seasons, IoT, harvest & traceability, farm books.