Skip to main content

An MCP server for weather information

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_weather_server-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_weather_server-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_weather_server-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_weather_server-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mcp_weather_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40c5b755aa9b9e1db9ef40024f61745a7bbe29604ab026c2f291bb67b56f0817
MD5 848ff2bc38992197e9e255d4c9505d14
BLAKE2b-256 9beb52b8d373fd2aa1f8e50f56ed8b0284a40aee779787fcc41446d32ceb4793

See more details on using hashes here.

File details

Details for the file mcp_weather_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_weather_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fbd3045786efb1852bacc515b948f49e9674a40bd1ab62856ae53bddfd7526
MD5 561b0039e3452939953848e740b2c1b9
BLAKE2b-256 40b458b22e1af524d4d72024d669a42c751e6a7f51dd71721c672ffccfd7c09f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page