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.3.tar.gz (7.4 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.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_weather_server-0.1.3.tar.gz
  • Upload date:
  • Size: 7.4 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.1.3.tar.gz
Algorithm Hash digest
SHA256 1f25459c04e0f0f7323bf42129d74b1540a4f99a5c38efd83c4ef8f0d62c3529
MD5 8e3119fe3d4f35efee76f87794e9b54b
BLAKE2b-256 dc50ccfd15f067041dea918d45c74f141b222992847624cc728f17426744bdea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_weather_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b979d758c31a2e52897e2771e5342a84905448492783227baa8d4b87108868b
MD5 233b38080a3adfd8f365aab22ac99fa9
BLAKE2b-256 5d831d1d153412843b77e9596c00a140ca6eb5804722b02ead115bf9f1f44820

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