Bring Weather Forecast
to Mastra AI
Create your Vinkius account to connect OpenWeather to Mastra AI and start using all 11 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the OpenWeather MCP Server?
Connect to OpenWeather APIs and access global weather data through natural conversation.
What you can do
- Current Weather — Get real-time temperature, humidity, wind, pressure, visibility and conditions for any location
- Hourly Forecast — 48-hour hourly forecast with temperature, precipitation probability and UV index
- Daily Forecast — Up to 16-day daily forecast with min/max temperatures and weather descriptions
- Weather Alerts — Active severe weather warnings and alerts for any location
- Air Quality — Current AQI and 4-day forecast with pollutant concentrations (PM2.5, PM10, O3, NO2, CO)
- Historical Weather — Weather conditions for any past date
- Sun Times — Sunrise and sunset times for any location
- Geocoding — Convert city names to coordinates and vice versa
How it works
- Subscribe to this server
- Enter your OpenWeather API Key
- Start exploring weather data from Claude, Cursor, or any MCP-compatible client
No more checking weather apps — just ask your AI.
Who is this for?
- Travelers — check weather forecasts and alerts before and during trips
- Event Planners — monitor weather conditions and UV index for outdoor events
- Outdoor Enthusiasts — check sunrise/sunset times, air quality and hourly forecasts
- Researchers — access historical weather data and air quality trends
Built-in capabilities (11)
Returns the top 5 matching locations with their coordinates, country codes and state names. Use these coordinates with other weather tools. Convert a city name to coordinates
5, PM10, O3, NO2, SO2, CO, NH3). AQI scale: 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor. Requires lat/lon coordinates. Get current air quality index for a location
Each data point includes AQI level (1-5 scale) and concentrations of PM2.5, PM10, O3, NO2, SO2, CO and NH3. Get 4-day air quality forecast for a location
Requires either city name (e.g. "London", "São Paulo") or latitude/longitude coordinates. Get current weather conditions for a location
Each day includes min/max temperature, humidity, wind, UV index, precipitation probability and weather description. Requires lat/lon coordinates. Get daily weather forecast for up to 16 days
Each data point includes temperature, humidity, wind, pressure and weather description. Optionally set the number of days (1-5). Requires either city name or lat/lon. Get 5-day/3-hour weather forecast
Returns temperature, humidity, wind, pressure and weather description for the requested date. Requires lat/lon and date in YYYY-MM-DD format. Get historical weather data for a specific date
Each hour includes temperature, humidity, wind, UV index, precipitation probability and weather description. Requires lat/lon coordinates. Use geocode to find coordinates for a city name. Get hourly weather forecast using One Call API
Returns the exact times and the sun's elevation angle at sunrise/sunset. Requires lat/lon coordinates. Get sunrise and sunset times for a location
Returns alert type, severity, description, start and end times. Requires lat/lon coordinates. Useful for monitoring severe weather conditions. Get active weather alerts for a location
Returns the city, state, country and postal code for the given coordinates. Convert coordinates to a city name
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and OpenWeather tool infrastructure. Connect 11 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add OpenWeather without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every OpenWeather tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
OpenWeather in Mastra AI
Why run OpenWeather with Vinkius?
The OpenWeather connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 11 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect OpenWeather using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
OpenWeather and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect OpenWeather to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
OpenWeather for Mastra AI
Every request between Mastra AI and OpenWeather is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
How do I get an OpenWeather API key?
Visit openweathermap.org/api, click Sign Up for a free account, go to API Keys in your account settings, and create a new key. Copy it — it's a 32-character hex string. Free tier includes 60 calls/minute.
Can I get weather alerts for my location?
Yes! Use get_weather_alerts with lat/lon coordinates. Returns active alerts with sender name, event type, severity, description and start/end times. Useful for monitoring severe weather, floods, heat waves and other dangerous conditions.
Can I get historical weather data?
Yes! Use get_historical_weather with lat/lon and a date in YYYY-MM-DD format. Returns the weather conditions for that specific day including temperature, humidity, wind and pressure.
How do I find coordinates for a city?
Use geocode with the city name (e.g. 'London', 'São Paulo', 'Tokyo'). Returns the top 5 matching locations with their latitude, longitude, country code and state. Use these coordinates with other weather tools.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
SMS GSM-7 Sanitizer
1 toolsStop telecom bill shocks. Strip emojis and complex Unicode to guarantee 100% GSM-7 SMS compatibility and prevent multi-part charges.

CrossRef
3 toolsSearch 140M+ scholarly works across all scientific disciplines — with DOI resolution, citation counts, author lookup, and full bibliographic metadata from the world's largest DOI registry.

CoinPaprika API
10 toolsAccess cryptocurrency data — audit coins, markets, and exchanges via AI.

ChargeOver
8 toolsManage recurring billing and invoicing via ChargeOver — track customers, monitor subscriptions, and analyze transactions directly from any AI agent.
