Skip to main content
Glama

MCP Weather Server

by le-yo

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

# Clone the repository git clone <your-repo-url> cd mcp-weather-server # Install dependencies npm install

Usage

Running the server

node index.js

Connecting to Claude Desktop

  1. Open Claude Desktop
  2. Go to Settings > MCP Servers
  3. Add a new server
  4. Select "Custom" and enter the path to your server executable
  5. Set the command to: node /Users/le-yo/CascadeProjects/mcp-weather-server/index.js
  6. 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:

  1. Adding more weather-related tools (forecast, historical data, etc.)
  2. Implementing other MCP features like resources or prompts
  3. Using a different weather API with more features

License

MIT

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

  1. What is MCP?
    1. Features
      1. Installation
        1. Usage
          1. Running the server
          2. Connecting to Claude Desktop
          3. Example prompts for Claude
        2. How it works
          1. Extending the server
            1. License

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that provides real-time weather information and 5-day forecasts to AI assistants, supporting multiple languages and flexible units.
                Last updated -
                3
                8
                TypeScript
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.
                Last updated -
                71
                TypeScript
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.
                Last updated -
                11
                20
                JavaScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/le-yo/weather-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server