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.
A simple Model Context Protocol (MCP) server that provides weather information for any location.
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.
# Clone the repository git clone cd mcp-weather-server # Install dependencies npm install
node index.js
node /Users/le-yo/CascadeProjects/mcp-weather-server/index.js
Once connected, you can ask Claude to use the weather tool:
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.
You can extend this server by:
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!