Farmonaut MCP Server for Vercel AI SDK 12 tools — connect in under 2 minutes
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect Farmonaut through Vinkius and every tool is available as a typed function. ready for React Server Components, API routes, or any Node.js backend.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
async function main() {
const mcpClient = await createMCPClient({
transport: {
type: "http",
// Your Vinkius token. get it at cloud.vinkius.com
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "Using Farmonaut, list all available capabilities.",
});
console.log(text);
} finally {
await mcpClient.close();
}
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Farmonaut MCP Server
Connect your Farmonaut Satellite API to any AI agent and take full control of satellite-based crop monitoring, vegetation index analysis, weather tracking, AI crop advisory, and deforestation detection through natural conversation.
The Vercel AI SDK gives every Farmonaut tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 12 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
What you can do
- Field Management — List and register agricultural fields with boundaries, crop types, and planting dates
- NDVI Analysis — Calculate NDVI from Sentinel-2, Landsat, and PlanetScope for crop health monitoring
- NDWI Water Index — Monitor crop water content and irrigation needs with water index analysis
- EVI Enhanced Index — Track enhanced vegetation index for high-biomass and dense canopy crops
- Weather Data — Access historical and current weather data for agricultural decision making
- Weather Forecast — Get forecasts from 7 days to 3 months for agricultural planning
- Soil Moisture — Monitor soil moisture at different depths for irrigation scheduling
- Satellite Imagery — Retrieve true-color, false-color, and NDVI overlay images from multiple satellites
- AI Crop Advisory — Get AI-powered recommendations for irrigation, fertilizer, pest control, and harvest
- Deforestation Alerts — Detect land use changes and tree cover loss for conservation compliance
- SAR Analysis — All-weather monitoring using Synthetic Aperture Radar that penetrates clouds
- Multi-Satellite Support — Access Sentinel-2, Landsat, PlanetScope, and SAR satellite data
The Farmonaut MCP Server exposes 12 tools through the Vinkius. Connect it to Vercel AI SDK in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Farmonaut to Vercel AI SDK via MCP
Follow these steps to integrate the Farmonaut MCP Server with Vercel AI SDK.
Install dependencies
Run npm install @ai-sdk/mcp ai @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the script
Save to agent.ts and run with npx tsx agent.ts
Explore tools
The SDK discovers 12 tools from Farmonaut and passes them to the LLM
Why Use Vercel AI SDK with the Farmonaut MCP Server
Vercel AI SDK provides unique advantages when paired with Farmonaut through the Model Context Protocol.
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same Farmonaut integration everywhere
Built-in streaming UI primitives let you display Farmonaut tool results progressively in React, Svelte, or Vue components
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Farmonaut + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the Farmonaut MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query Farmonaut in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate Farmonaut tools and return structured JSON responses to any frontend
Chatbots with tool use: embed Farmonaut capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with Farmonaut through natural language queries
Farmonaut MCP Tools for Vercel AI SDK (12)
These 12 tools become available when you connect Farmonaut to Vercel AI SDK via MCP:
add_field
Accepts field boundary as GeoJSON polygon or coordinates, field name, crop type, and planting date. Returns the created field with ID, calculated area, and monitoring activation status. Essential for onboarding new fields into the monitoring system, expanding farm coverage, and setting up new crop seasons. AI agents should use this when users ask "add a new field for monitoring", "register this field boundary", or need to set up satellite monitoring for a new agricultural area. Register a new agricultural field for satellite monitoring
get_crop_advisory
Returns recommendations for irrigation, fertilization, pest control, harvest timing, and field operations. Essential for data-driven farm management, precision agriculture, and optimizing crop inputs. AI agents should use this when users ask "what should I do in my field this week", "get irrigation and fertilizer recommendations", or need AI-powered crop management advice. Get AI-powered crop management advisories and recommendations
get_deforestation_alerts
Uses satellite imagery to detect tree cover loss, land clearing, and vegetation changes over time. Essential for conservation compliance, environmental monitoring, carbon credit verification, and land use change detection. AI agents should reference this when users ask "show deforestation alerts in my area", "detect land use changes", or need environmental compliance monitoring. Get deforestation and land change detection alerts
get_evi
EVI is more sensitive in high-biomass regions and less affected by atmospheric conditions and soil background than NDVI. Essential for monitoring dense canopies, tropical crops, and areas with high atmospheric interference. Returns EVI values, statistics, satellite source, and acquisition dates. AI agents should use this when users ask "show me EVI trends for this field", "how is the canopy developing in high-biomass areas", or need enhanced vegetation index analysis for dense vegetation. Calculate EVI enhanced vegetation index for high-biomass crop monitoring
get_fields
Returns field names, boundaries (GeoJSON polygons), area in hectares/acres, crop type, planting dates, and current monitoring status. Essential for farm management overview, field inventory, and selecting target fields for satellite analysis. AI agents should use this when users ask "show me all my fields", "list monitored fields", or need to identify available fields for vegetation index or weather queries. List all agricultural fields monitored in your Farmonaut account
get_ndvi
NDVI measures vegetation health and vigor on a scale of -1 to 1, with higher values indicating healthier vegetation. Returns NDVI values, statistics (mean, min, max, std), satellite source, acquisition date, and cloud cover percentage. Essential for crop health assessment, growth stage monitoring, stress detection, and yield prediction. AI agents should use this when users ask "what is the NDVI for my rice field this month", "calculate vegetation health for field X", or need NDVI-based crop health analysis. Calculate NDVI vegetation index for crop health monitoring
get_ndwi
NDWI is sensitive to vegetation water content and soil moisture, making it essential for irrigation scheduling, drought monitoring, and water stress detection. Returns NDWI values, statistics, satellite source, and acquisition dates. AI agents should reference this when users ask "what is the water content in my crops", "do I need to irrigate", or need water stress analysis for irrigation planning. Calculate NDWI water index for crop water stress and irrigation monitoring
get_sar_analysis
SAR penetrates clouds and works day/night, making it essential for monitoring in cloudy or rainy conditions. Returns backscatter values, soil moisture estimates, crop structure information, and change detection analysis. Essential for all-weather monitoring, flood detection, soil moisture mapping, and crop structure analysis. AI agents should use this when users ask "get SAR analysis for my field during cloudy season", "monitor crops through cloud cover", or need all-weather satellite analysis. Get Synthetic Aperture Radar (SAR) analysis for all-weather crop monitoring
get_satellite_images
Returns true-color and false-color composites, NDVI overlays, and raw spectral bands. Essential for visual crop assessment, change detection, damage assessment, and downloading imagery for further processing. AI agents should reference this when users ask "show me satellite images of my field from last week", "get latest Sentinel-2 imagery", or need satellite imagery for visual assessment. Retrieve satellite imagery for agricultural fields from multiple sources
get_soil_moisture
Returns soil moisture levels at different depths (surface, root zone, deep soil), moisture anomalies, and irrigation recommendations. Essential for irrigation scheduling, drought monitoring, water stress detection, and water resource optimization. AI agents should use this when users ask "what is the soil moisture level in my field", "do I need to irrigate", or need soil moisture data for irrigation planning. Get soil moisture data for irrigation scheduling and drought monitoring
get_weather
Includes temperature (air, soil), precipitation, humidity, wind speed/direction, solar radiation, evapotranspiration, and growing degree days. Essential for irrigation planning, frost risk assessment, disease/pest pressure modeling, and yield prediction. AI agents should use this when users ask "what was the weather like on my field last month", "get temperature and rainfall data", or need historical weather analysis for crop management decisions. Get historical and current weather data for agricultural fields
get_weather_forecast
Includes temperature, precipitation, humidity, wind, and solar radiation forecasts. Essential for planting schedule optimization, harvest timing, irrigation planning, frost protection, and seasonal crop management. AI agents should reference this when users ask "what is the weather forecast for my field next week", "get seasonal precipitation forecast", or need forward-looking weather data for agricultural planning. Get weather forecasts for agricultural planning and irrigation scheduling
Example Prompts for Farmonaut in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with Farmonaut immediately.
"Show me the NDVI trend for my rice field over the last 3 months."
"What is the 7-day weather forecast and current soil moisture for my wheat field?"
"Get AI crop advisory recommendations for my cotton field this week."
Troubleshooting Farmonaut MCP Server with Vercel AI SDK
Common issues when connecting Farmonaut to Vercel AI SDK through the Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpFarmonaut + Vercel AI SDK FAQ
Common questions about integrating Farmonaut MCP Server with Vercel AI SDK.
How does the Vercel AI SDK connect to MCP servers?
createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.Can I use MCP tools in Edge Functions?
Does it support streaming tool results?
useChat and streamText that handle tool calls and display results progressively in the UI.Connect Farmonaut with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Farmonaut to Vercel AI SDK
Get your token, paste the configuration, and start using 12 tools in under 2 minutes. No API key management needed.
