mcp-wheather
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-wheatherwhat's the weather in Tokyo?"
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 Server 🌤️
A Model Context Protocol (MCP) server that provides real-time weather information using the Open-Meteo API.
📋 Description
This project implements an MCP server that allows AI models to obtain current weather information for any location worldwide. The server uses Open-Meteo's free APIs for geocoding and weather data.
Related MCP server: Weather MCP Server
🔍 Documentation
Check out the documentation for more details on how to work with this server.
✨ Features
🌍 Global coverage: Get weather information from any location worldwide
🔄 Real-time data: Up-to-date weather information
📊 Complete data: Temperature, humidity, precipitation, wind, cloud cover
🚀 Fast and efficient: Quick responses with structured JSON data
🔧 Easy integration: Compatible with any MCP client
🛠️ Installation
Prerequisites
Bun (recommended) or Node.js 20+
Installation Steps
Clone the repository
git clone https://github.com/zkjon/mcp-weather.git cd mcp-weatherInstall dependencies
bun install # or npm installRun the server
bunx -y tsx src/main.ts # or npx -y tsx src/main.ts
🚀 Usage
MCP Configuration
To use this server with an MCP client, add the following configuration to your mcp.json file:
{
"mcpServers": {
"Weather": {
"command": "bunx",
"args": [
"-y",
"tsx",
"C:\\full\\path\\to\\project\\src\\main.ts"
]
}
}
}Available Tools
get-weather
Gets weather information for a specific location.
Parameters:
location(string): Location name (city, country, etc.)
Usage Example:
// Request
{
"tool": "get-weather",
"arguments": {
"location": "Madrid"
}
}
// Response
{
"content": [
{
"type": "text",
"text": "{
\"latitude\": 40.4375,
\"longitude\": -3.6875,
\"current\": {
\"temperature_2m\": 18.7,
\"relative_humidity_2m\": 54,
\"precipitation\": 0,
\"rain\": 0,
\"cloud_cover\": 4,
\"wind_speed_10m\": 6.1
}
}"
}
]
}Workflow
Request reception: Server receives a request with a location
Geocoding: Location coordinates are obtained using Open-Meteo API
Weather query: Weather data is queried using the coordinates
Structured response: Data is returned in structured JSON format
Code Structure
Imports: MCP SDK and necessary libraries
Server configuration: MCP server definition with name and version
Tool definition: Implementation of the
get-weathertoolConnection: Transport configuration and server connection
🌐 APIs Used
Open-Meteo Geocoding API: To convert location names to coordinates
Open-Meteo Weather API: To get current weather data
📝 License
This project is licensed under the MIT License. See the LICENSE file for more details.
🤝 Contributing
Contributions are welcome! Please read our contribution guide for more information.
🔒 Security
If you find any security vulnerability, please check our security file to know how to report it.
📞 Support
If you have questions or need help:
🙏 Acknowledgments
Open-Meteo for providing free weather APIs
Model Context Protocol for the MCP framework
Bun for the fast JavaScript runtime
Made with ❤️ by zkjon
This server cannot be deployed
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Real-time weather conditions and multi-day forecasts via Open-Meteo — free, no API key required
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables real-time weather information and forecasts using the Open-Meteo API. Provides current weather conditions and forecast data for any location specified by latitude and longitude coordinates.1-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather, forecasts, historical data, and air quality for AI assistants via the Model Context Protocol.-
- FlicenseBqualityDmaintenanceProvides current weather conditions and forecasts for any location using the Open-Meteo API.2-
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data and forecasts globally through the Model Context Protocol, enabling AI assistants to access weather information without web searches.361 npmMIT