MCP Weather Server
A simple Model Context Protocol (MCP) server that provides weather information for any location.
What is MCP?
The Model Context Protocol (MCP) is a standardized way for AI applications and agents to connect with data sources and tools. It allows AI models like Claude to interact with your local system, external services, and custom tools through a standardized interface.
Features
- Get current weather information for any location
- Compatible with Claude Desktop and other MCP clients
- Uses the free wttr.in weather API (no API key required)
Installation
Usage
Running the server
Connecting to Claude Desktop
- Open Claude Desktop
- Go to Settings > MCP Servers
- Add a new server
- Select "Custom" and enter the path to your server executable
- Set the command to:
node /Users/le-yo/CascadeProjects/mcp-weather-server/index.js
- Save and restart Claude Desktop
Example prompts for Claude
Once connected, you can ask Claude to use the weather tool:
- "What's the current weather in New York?"
- "Tell me the temperature in London right now."
- "Is it raining in Tokyo?"
How it works
This server implements the Model Context Protocol to provide a tool that fetches weather data from the wttr.in API. When Claude or another MCP client connects to this server, they can use the get_weather
tool to retrieve current weather conditions for any location.
Extending the server
You can extend this server by:
- Adding more weather-related tools (forecast, historical data, etc.)
- Implementing other MCP features like resources or prompts
- Using a different weather API with more features
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A simple server that implements the Model Context Protocol, allowing AI models like Claude to fetch real-time weather information for any location using the wttr.in API.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that retrieves current weather information for specified cities using the Open-Meteo API, requiring no API key.Last updated -1PythonApache 2.0
Juhe Weather MCP Serverofficial
-security-license-qualityProvides a Model Context Protocol server that enables large language models to query and retrieve real-time weather forecasts for cities and regions across China.Last updated -Python- AsecurityFlicenseAqualityA Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.Last updated -2115TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that provides comprehensive weather data querying capabilities based on the Caiyun Weather API, supporting real-time weather, forecasts, and alerts with multi-language support.Last updated -71TypeScript