OpenWeather Agro 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 OpenWeather Agro 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 OpenWeather Agro, 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 OpenWeather Agro MCP Server
Connect your OpenWeather Agro API to any AI agent and take full control of satellite-based vegetation monitoring, weather-driven agricultural insights, and precision farming data through natural conversation.
The Vercel AI SDK gives every OpenWeather Agro 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
- NDVI Analysis — Monitor crop vegetation health with satellite-derived NDVI values
- EVI Monitoring — Track enhanced vegetation index for high-biomass and dense canopy areas
- Soil Temperature — Check soil thermal conditions for seed germination and root activity
- Evapotranspiration — Calculate crop water use for precision irrigation scheduling
- Current Weather — Get real-time weather conditions for daily farming decisions
- Weather Forecast — Access 5-day forecasts for planting and harvest planning
- Historical Weather — Retrieve past weather data for crop performance analysis
- Growing Degree Days — Track heat accumulation for crop development staging
- Satellite Imagery — Access satellite imagery for visual field assessment
- Historical NDVI — Analyze vegetation health trends over growing seasons
- Crop Health Index — Get comprehensive crop condition scores
- Frost Risk — Assess frost danger for crop protection planning
The OpenWeather Agro 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 OpenWeather Agro to Vercel AI SDK via MCP
Follow these steps to integrate the OpenWeather Agro 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 OpenWeather Agro and passes them to the LLM
Why Use Vercel AI SDK with the OpenWeather Agro MCP Server
Vercel AI SDK provides unique advantages when paired with OpenWeather Agro 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 OpenWeather Agro integration everywhere
Built-in streaming UI primitives let you display OpenWeather Agro 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
OpenWeather Agro + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the OpenWeather Agro MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query OpenWeather Agro in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate OpenWeather Agro tools and return structured JSON responses to any frontend
Chatbots with tool use: embed OpenWeather Agro capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with OpenWeather Agro through natural language queries
OpenWeather Agro MCP Tools for Vercel AI SDK (12)
These 12 tools become available when you connect OpenWeather Agro to Vercel AI SDK via MCP:
get_crop_health_index
CHI provides a single metric for overall crop health, making it easier to track field conditions over time and compare across fields. Essential for quick field health assessment, prioritizing scouting missions, and communicating crop status to stakeholders. AI agents should use this when users ask "what is the overall crop health score for my field", "get a quick health assessment", or need a simplified crop condition metric. Date format: YYYY-MM-DD. Get Crop Health Index (CHI) for comprehensive crop condition assessment
get_current_weather
Essential for daily farming decisions, spray application timing, harvest planning, and frost protection. AI agents should use this when users ask "what is the weather like at my farm right now", "should I spray pesticides today", or need current weather data for agricultural operations. Get current weather conditions for agricultural decision making
get_evapotranspiration
ET combines soil evaporation and plant transpiration, providing the most accurate measure of crop water use. Essential for precision irrigation scheduling, water resource management, and drought assessment. AI agents should reference this when users ask "what is the evapotranspiration rate for my field", "calculate irrigation needs", or need crop water use data for irrigation planning. Date format: YYYY-MM-DD. Get evapotranspiration rates for irrigation scheduling and water management
get_evi
EVI is more sensitive than NDVI in high-biomass regions and less affected by atmospheric conditions and soil background. Essential for monitoring dense canopies, tropical crops, and areas with high vegetation cover. AI agents should reference this when users ask "what is the EVI for my dense crop area", "monitor high-biomass vegetation", or need enhanced vegetation index for areas where NDVI saturates. Date format: YYYY-MM-DD. Get EVI (Enhanced Vegetation Index) for high-biomass crop monitoring
get_frost_risk
Returns risk levels (low, moderate, high, critical), predicted frost timing, and recommended protection measures. Essential for frost-sensitive crops (fruits, vegetables, vineyards), irrigation-based frost protection, and crop insurance documentation. AI agents should reference this when users ask "is there frost risk for my orchard tonight", "assess frost danger for my crops", or need frost warning data for crop protection planning. Get frost risk assessment for crop protection planning
get_growing_degree_days
GDD measures heat accumulation used to predict crop development stages, pest emergence, and harvest timing. Essential for phenology tracking, variety selection, and timing agricultural operations. AI agents should reference this when users ask "calculate GDD for my corn field this season", "track crop development stages", or need heat unit accumulation data for agricultural planning. Date format: YYYY-MM-DD. Calculate Growing Degree Days (GDD) for crop development tracking
get_historical_ndvi
Returns time-series NDVI values showing vegetation health progression, stress detection, and recovery patterns. Essential for seasonal crop performance comparison, drought impact assessment, and long-term field health monitoring. AI agents should reference this when users ask "show me NDVI trends for my field over the growing season", "compare vegetation health between seasons", or need historical vegetation index data for agricultural trend analysis. Date format: YYYY-MM-DD. Get historical NDVI trends for seasonal vegetation health analysis
get_ndvi
NDVI ranges from -1 to 1, with higher values (0.6-0.9) indicating healthy dense vegetation and lower values (0.2-0.5) indicating stressed or sparse vegetation. Essential for crop health monitoring, growth stage assessment, and yield prediction. AI agents should use this when users ask "what is the NDVI for my field on this date", "check crop vegetation health", or need satellite-based vegetation index data for agricultural analysis. Date format: YYYY-MM-DD. Get NDVI (Normalized Difference Vegetation Index) for crop health assessment
get_satellite_imagery
Returns imagery metadata and access URLs for visual crop assessment, field boundary verification, and change detection analysis. Essential for remote field monitoring, damage assessment, and visual crop health evaluation. AI agents should use this when users ask "get satellite imagery for my field", "show me the latest satellite view of my farm", or need visual imagery for agricultural monitoring. Date format: YYYY-MM-DD. Zoom: 1-16. Get satellite imagery for visual crop assessment and field monitoring
get_soil_temperature
Soil temperature is critical for seed germination timing, root activity assessment, and nutrient uptake optimization. Essential for planting decisions, irrigation scheduling, and soil health monitoring. AI agents should use this when users ask "what is the soil temperature for planting", "check if soil is warm enough for germination", or need soil thermal data for agricultural planning. Date format: YYYY-MM-DD. Get satellite-derived soil temperature for seed germination and root activity assessment
get_weather_forecast
Essential for planting schedules, harvest timing, spray application windows, and irrigation planning. AI agents should reference this when users ask "what is the weather forecast for my farm this week", "will it rain in the next 5 days", or need forward-looking weather data for agricultural planning. Get multi-day weather forecast for agricultural planning
get_weather_history
Essential for comparing current conditions with historical patterns, analyzing crop performance under past weather conditions, and validating crop models. AI agents should use this when users ask "what was the weather like on this date last year", "show me historical weather for my field", or need past weather data for agricultural analysis. Date format: Unix timestamp (seconds since 1970). Get historical weather data for crop analysis and trend assessment
Example Prompts for OpenWeather Agro in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with OpenWeather Agro immediately.
"What is the NDVI for my corn field at coordinates 41.8780, -93.0977 on April 1st?"
"Calculate the growing degree days for my wheat field from March 1 to today."
"Is there frost risk for my vineyard tonight? I need to know if I should turn on the wind machines."
Troubleshooting OpenWeather Agro MCP Server with Vercel AI SDK
Common issues when connecting OpenWeather Agro to Vercel AI SDK through the Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpOpenWeather Agro + Vercel AI SDK FAQ
Common questions about integrating OpenWeather Agro 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 OpenWeather Agro 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 OpenWeather Agro to Vercel AI SDK
Get your token, paste the configuration, and start using 12 tools in under 2 minutes. No API key management needed.
