MCP Weather Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Weather Serverwhat's the weather like in Tokyo right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Weather Demo - README
Overview
This demo implements a minimal MCP-style JSON-RPC endpoint exposing a getWeather(city) capability.
The server calls OpenWeatherMap (OWM) API and returns a simplified result.
Related MCP server: Weather Agent MCP Server
Setup
Install Node.js (>=16).
Copy this folder to your machine.
Create a free OpenWeatherMap API key: https://openweathermap.org/api
Set environment variable:
Unix/macOS: export OWM_KEY=your_key_here
Windows (PowerShell): $env:OWM_KEY='your_key_here'
Install & Run
npm install
development (no build)
npx ts-node src/server.ts
or build & run
npm run build npm start
Test
Use the provided client: npx ts-node src/client.ts
Or use curl: curl -X POST http://localhost:3000/json-rpc -H 'Content-Type: application/json' -d '{ "jsonrpc":"2.0", "method":"getWeather", "params": {"city":"London"}, "id":1 }'
Notes
This is a minimal example for demo/educational purposes.
Add caching, rate-limiting, better error handling, and authentication for production.
This server cannot be deployed
Maintenance
Related MCP Connectors
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to get real-time weather information for any city in the world. Provides current temperature and weather conditions through a simple city name query.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to get current weather information for any city using the OpenWeatherMap API. Returns formatted weather data including temperature, humidity, and weather description through natural language queries.MIT
- FlicenseBqualityDmaintenanceEnables users to retrieve current weather information for any city location. Provides a simple interface to fetch weather data through natural language queries.1-
- FlicenseNot gradedqualityDmaintenanceProvides current weather information for any city using the OpenWeatherMap API.-