https://github.com/isdaniel/mcp_weather_server
https://github.com/isdaniel/mcp_weather_server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isdaniel/mcp_weather_server
- Owner: isdaniel
- License: apache-2.0
- Created: 2025-03-17T04:05:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T04:06:58.000Z (3 months ago)
- Last Synced: 2025-03-17T05:23:25.207Z (3 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- mcp-index - Weather MCP Server - Retrieve real-time weather information for any city using the Open-Meteo API without requiring an API key. Provides accurate weather updates through simple commands or API calls. (Cloud Services)
README
# 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:
```json
{
"mcpServers": {
"weather": {
"command": "python",
"args": [
"mcp_weather_server.py"
],
"disabled": false,
"autoApprove": []
}
}
}
```2. 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:
```
weather
get_weather{
"city": "Taipei"
}```
## Pip Installation and Usage
This package can be installed using pip:
```bash
pip install mcp_weather_server
```After installation, you can use the `mcp_weather_server` command-line tool:
```bash
mcp_weather_server --city "Your City"
```Replace `"Your City"` with the city you want to get weather information for.