Skip to main content
Glama
g-adarshg098

MCP Weather Server

by g-adarshg098

šŸŒ¤ļø MCP Weather Server

Python 3.12+ Model Context Protocol Built with uv License: MIT

A lightweight and fast Model Context Protocol (MCP) server built in Python that equips AI assistants (like Claude Desktop) with real-time weather information using wttr.in.


✨ Features

  • ⚔ Real-time Weather: Fetch instant temperature and weather updates for any location worldwide.

  • šŸ”Œ Standard MCP Compliance: Built with the official Python mcp SDK using standard stdio transport.

  • šŸš€ Blazing Fast Setup: Managed with uv for near-instant dependency management.

  • šŸ¤– Seamless Claude Integration: Easily connectable with Claude Desktop or any MCP-compatible AI client.


Related MCP server: Weather MCP

šŸ› ļø Tools Exposed

Tool Name

Parameters

Description

Example Output

get_weather

location (string)

Retrieves current temperature for the specified city/location

+28°C


šŸ“‹ Prerequisites

  • Python: Version 3.12 or newer

  • uv: Fast Python package installer and resolver (Installation Guide)

  • Claude Desktop (Optional, for Claude Desktop integration)


šŸš€ Quick Start

1. Clone the Repository

git clone https://github.com/g-adarshg098/MCP_SERVER.git
cd MCP_SERVER

2. Install Dependencies

Using uv:

uv sync

Or using standard pip:

python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate

pip install -e .

3. Test Running the Server

Run directly with uv:

uv run mcp-weather.py

šŸ–„ļø Claude Desktop Integration

To use this weather tool inside Claude Desktop, add the server configuration to your claude_desktop_config.json.

Config File Location

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Configuration

Add the following to your mcpServers object:

Windows (with uv)

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\Users\\adars\\OneDrive\\ADARSHG\\GENAI_2\\MCP_Server",
        "run",
        "mcp-weather.py"
      ]
    }
  }
}

Note: Make sure to update the absolute path to match your project's directory location on your machine.

macOS / Linux (with uv)

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/MCP_Server",
        "run",
        "mcp-weather.py"
      ]
    }
  }
}

After modifying the configuration, restart Claude Desktop. You should see the šŸ”Ø hammer icon indicating available tools, including get_weather!


šŸ“‚ Project Structure

MCP_SERVER/
ā”œā”€ā”€ src/
│   └── mcp_server/
│       └── __init__.py
ā”œā”€ā”€ mcp-weather.py       # Weather MCP server implementation
ā”œā”€ā”€ pyproject.toml       # Project metadata and dependencies
ā”œā”€ā”€ uv.lock              # Lockfile for reproducible builds
ā”œā”€ā”€ .env.example         # Template for environment variables
ā”œā”€ā”€ .gitignore           # Git ignore rules
└── README.md            # Project documentation

šŸ¤ Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


šŸ‘¤ Author

Adarsh G


šŸ“„ License

This project is licensed under the MIT License.

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time weather information and forecasts, connecting AI assistants with live weather data for current conditions and multi-day forecasts for any location worldwide.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.

View all related MCP servers

Related MCP Connectors

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

View all MCP Connectors

Latest Blog Posts

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/g-adarshg098/MCP_SERVER'

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