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.1.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.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_weather_server-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 28eec8d2aae932b4a463ac418621837ef1bf1b4087add267c891a10c2cfccf93
MD5 9e7231a46ef00d9e7ca078b190a7b61b
BLAKE2b-256 338455869b5c130acce787c58c5313cf8760d8d350caff13814e0008f1d310e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_weather_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 daeabfaa877931a99ef11394f12c004b85480a8674c56a95fad2740456c10746
MD5 71d829bda0cf97d50b49f23ebda5fbff
BLAKE2b-256 a2f8f2700c03d04de1909fccd8b9d4c066aff454f3f8e44c980c0ad966986f45

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