Skip to main content

An MCP server for weather information

Project description

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/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.2.0.tar.gz (10.9 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.2.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_weather_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4b6f2594247123685c82ca82415b47d553589e23351e1e4dab047f2e5942ade5
MD5 853c55f0fe897d4a693738f9e84a9d8a
BLAKE2b-256 8a84fe34743e89a5620470c0dd89f1abc4d75ce8789e068bea987d9a17db6d57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_weather_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70e931b30ab352f00ae44e19d0cd7b144c8151cec53277699379ecaa76244038
MD5 716be48dd986cbb3e538f732271ab089
BLAKE2b-256 50d5bab11b981f0659150a03dbc1cd4f27e40caffcb3f6eeb692a3f43e765e79

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