AccuWeather MCP Server for Vercel AI SDK 10 tools — connect in under 2 minutes
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect AccuWeather 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 AccuWeather, 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 AccuWeather MCP Server
Access AccuWeather's superior weather forecasting — the industry standard used by enterprises worldwide for accurate, localized weather data. Connect AccuWeather to your AI agent to get current conditions, daily and hourly forecasts, severe weather alarms, and activity planning indices for any location on Earth — all through natural conversation.
The Vercel AI SDK gives every AccuWeather tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 10 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
- Current Conditions — Get real-time temperature, RealFeel, humidity, wind, UV index, and visibility for any city.
- Daily Forecasts — Retrieve 1 to 15-day forecasts with high/low temperatures, precipitation probability, and sunrise/sunset times.
- Hourly Forecasts — Get hour-by-hour weather for up to 120 hours (5 days) for precise planning.
- Weather Alarms — Monitor active severe weather alerts including hurricanes, tornadoes, floods, and heat advisories.
- Activity Indices — Get recommendations for outdoor activities, UV exposure, running, golf, fishing, and more.
- Location Search — Find any city, town, or place worldwide and get its weather.
- Metric Units — All data returned in Celsius, km/h, and kilometers for international use.
The AccuWeather MCP Server exposes 10 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 AccuWeather to Vercel AI SDK via MCP
Follow these steps to integrate the AccuWeather 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 10 tools from AccuWeather and passes them to the LLM
Why Use Vercel AI SDK with the AccuWeather MCP Server
Vercel AI SDK provides unique advantages when paired with AccuWeather 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 AccuWeather integration everywhere
Built-in streaming UI primitives let you display AccuWeather 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
AccuWeather + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the AccuWeather MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query AccuWeather in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate AccuWeather tools and return structured JSON responses to any frontend
Chatbots with tool use: embed AccuWeather capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with AccuWeather through natural language queries
AccuWeather MCP Tools for Vercel AI SDK (10)
These 10 tools become available when you connect AccuWeather to Vercel AI SDK via MCP:
get_current_conditions
Returns temperature (metric), weather text (e.g. "Partly sunny"), RealFeel temperature, humidity, wind speed and direction, UV index, visibility, cloud cover, and precipitation. Essential for instant weather checks. Use get_location_by_key first to find the correct location key. Get current weather conditions for a location
get_current_conditions_metric
Returns temperature in Celsius, wind in km/h, visibility in kilometers. Includes RealFeel temperature, humidity, UV index, wind gusts, and precipitation data. Use for international audiences or scientific analysis. Get current weather conditions with detailed metric values
get_daily_forecast
Each day includes high and low temperatures, weather conditions, precipitation probability, wind speed, UV index, sunrise/sunset times, and air quality information. Returns data in metric units (Celsius, km/h). Essential for trip planning, event scheduling, and agricultural decisions. Use 5 days for standard weekly forecasts. Get daily weather forecast for a location
get_extended_forecast
While forecasts beyond 7-10 days have lower accuracy, this is useful for event planning, travel preparation, and agricultural scheduling. Each day includes high/low temperatures, precipitation probability, and general conditions. Use for planning events 2 weeks in advance. Get 15-day extended weather forecast
get_hourly_forecast
Each hour includes temperature, weather icon, precipitation probability, wind speed and direction, and cloud cover. Essential for detailed planning — knowing exactly when rain will start, when temperatures peak, or when conditions are safe for outdoor activities. Returns data in metric units. Use 24 hours for tomorrow planning. Get hourly weather forecast for a location
get_index_groups
This helps you understand what types of indices are available (outdoor activities, health, home & garden, etc.) before querying specific indices for a location. Use this to discover what activity planning indices are supported. Get available index groups and categories
get_location_by_key
Returns the city name, country, region, timezone, coordinates, elevation, and administrative area. Use this to verify you have the correct location before making weather queries. Get detailed information about a location by its AccuWeather key
get_weather_alarms
Includes severe weather alerts such as hurricanes, tornadoes, flood warnings, heat advisories, and winter storm warnings. Each alarm includes severity level, description, start and end times, and source. Essential for safety planning, emergency preparedness, and travel decisions. Returns empty if no active alarms. Get active weather alarms and warnings for a location
get_weather_indices
Includes indices for outdoor activity suitability, flight delay probability, UV exposure, running, hiking, golf, fishing, lawn mowing, composting, and more. Each index includes a numeric value, category (e.g. "Excellent", "Poor", "Good"), and descriptive text. Essential for activity planning, health advisories, and lifestyle decisions. Get weather indices (outdoor activity, flight, UV, etc.) for a location
search_location
The location key is required for other weather queries. Returns matching locations with their keys, country, region, and coordinates. Use this as the first step before any weather query. For example, search for "New York" to find the correct location key for New York City. Supports partial matching and returns multiple results. Search for a location by name to get its AccuWeather location key
Example Prompts for AccuWeather in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with AccuWeather immediately.
"What's the weather like in Tokyo right now?"
"Give me the 5-day forecast for Paris, France."
"Are there any severe weather alerts for Miami right now?"
Troubleshooting AccuWeather MCP Server with Vercel AI SDK
Common issues when connecting AccuWeather to Vercel AI SDK through the Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpAccuWeather + Vercel AI SDK FAQ
Common questions about integrating AccuWeather 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 AccuWeather 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 AccuWeather to Vercel AI SDK
Get your token, paste the configuration, and start using 10 tools in under 2 minutes. No API key management needed.
