Weather MCP Server - UBOS

✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

smithery badge PyPI - Downloads PyPI - Version

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather information using the Open-Meteo API.

Features

  • Get current weather information for a specified city.

Installation

This server is designed to be installed manually by adding its configuration to the cline_mcp_settings.json file.

  1. Add the following entry to the mcpServers object in your cline_mcp_settings.json file:
{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": [
        "mcp_weather_server.py"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}
  1. Save the cline_mcp_settings.json file.

Configuration

This server does not require an API key. It uses the Open-Meteo API, which is free and open-source.

Usage

This server provides a single tool: get_weather.

get_weather

Retrieves the current weather information for a given city.

Parameters:

  • city (string, required): The name of the city.

Example:

To get the weather in Taipei, you would use the tool like this:

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather</tool_name>
<arguments>
{
  "city": "Taipei"
}
</arguments>
</use_mcp_tool>

Pip Installation and Usage

This package can be installed using pip:

pip install mcp_weather_server

After installation, you can use the mcp_weather_server command-line tool:

mcp_weather_server --city "Your City"

Replace "Your City" with the city you want to get weather information for.

Featured Templates

View More
Verified Icon
AI Assistants
Speech to Text
128 1261
Data Analysis
Pharmacy Admin Panel
232 1478
AI Assistants
Talk with Claude 3
153 1009
AI Assistants
Image to text with Claude 3
150 953

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.