semvec/pypi-packages huggingface dataset:
stardicter 2.0.1
Conversion tools from various formats to StarDict.
Requires Python: >=3.9
Keywords: stardict, dictionary

Stardicter
==========

Conversion tools from various formats to StarDict_.

Currently it can convert following dictionaries:

* `GNU/FDL Anglicko-Český slovník <https://www.svobodneslovniky.cz/>`_
* `GNU/FDL Německo-Český slovník <https://gnu.nemeckoceskyslovnik.cz/>`_
* `Slovník cizích slov <https://slovnik-cizich-slov.abz.cz/>`_
* `dicts.info dictionaries <https://www.dicts.info/>`_

You can find more information at project website:

https://cihar.com/software/slovnik/

Git repository is available at GitHub:

https://github.com/nijel/stardicter

Requirements
============

Scripts require dictzip to compress dictionaries. You can get it from
https://sourceforge.net/projects/dict/

Installation
============

You can either clone the git repositry and run the scripts from it or install
using pip::

    pip install stardicter

Usage
=====

The main script is ``sdgen.py``, it downloads and generates StarDict
dictionaries. Check it's help for more information.

Additionally there are some helper script which directly generate tarballs with
dictionary.

Generating dictionary from dicts.info
=====================================

The https://dicts.info/ server provides downloadable dictionaries for many
languages. Unfortunately the license does not allow redistribution, so you need
to generate them yourself. With stardicter it is easy:

    ./dicts_info_tarball.sh italian czech

This generates tarball with italian-czech dictionary. You can choose any
language provided by the service.

License
=======

Copyright (c) 2006 - 2025 Michal Čihař

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.

.. _StarDict: https://stardict-4.sourceforge.net/
weatherunion-mcp 1.0.2
Weather Union MCP Server - A Model Context Protocol server for weather data
Requires Python: >=3.11

# Weather Union MCP Server

A Model Context Protocol (MCP) server that provides weather data and air quality information using the [Weather Union API](https://www.weatherunion.com/). 

This server offers real-time weather data for specific coordinates or predefined Indian cities.

## Usage with MCP Clients

### Claude Desktop
Add to your Claude Desktop configuration:
```json
{
  "mcpServers": {
    "weather-union": {
      "command": "uvx",
      "args": ["weatherunion-mcp"],
      "env": {
        "WEATHER_UNION_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

### Other MCP Clients
The server follows standard MCP protocol and works with any compliant MCP client.

## Quick Start

1. **Set up your API key:**
   ```bash
   export WEATHER_UNION_API_KEY='your-api-key-here'
   ```

2. **Run the server:**
   ```bash
   # For MCP clients (default - uses stdin)
   python weatherunion_mcp/server.py
   
   # For testing with HTTP
   python weatherunion_mcp/server.py --http --port 8000
   ```

## Available Tools

The MCP server provides two powerful weather tools:

### 1. `get_current_weather`
Get current weather data for any geographic location using latitude and longitude coordinates.

**Parameters:**
- `latitude` (float): Latitude coordinate (-90 to 90 degrees)
- `longitude` (float): Longitude coordinate (-180 to 180 degrees)

**Returns:**
Comprehensive weather information including temperature, humidity, wind conditions, precipitation, and air quality data.

**Example:**
```
get_current_weather(12.933756, 77.625825)  # Bangalore coordinates
```

### 2. `get_weather_for_city`
Get weather data for major Indian cities using predefined city names.

**Parameters:**
- `city_name` (str): Name of the city (case-insensitive)
- `country_code` (str, optional): Country code (default: "IN")

**Supported Cities:**
- Bangalore, Mumbai, Delhi, Hyderabad, Chennai
- Kolkata, Pune, Ahmedabad, Jaipur, Lucknow

**Example:**
```
get_weather_for_city("bangalore")
get_weather_for_city("Mumbai")
```

## Weather Data Format

The server returns comprehensive weather information in a formatted string:

```
Weather Information (Lat: 12.933756, Lon: 77.625825):

Temperature: 25.68°C
Humidity: 25.81%
Wind Speed: 1.15 km/h
Wind Direction: 331.2°
Rain Intensity: 0 mm/h
Rain Accumulation: 0.4 mm
Air Quality Index (PM 2.5): 84
Air Quality Index (PM 10): 75
```

## API Key

You need a Weather Union API key (X-Zomato-Api-Key) to use this server. You can generate this for free by signing up at [Weather Union](https://www.weatherunion.com/).

- The server validates your API key on startup
- API key must be set as an environment variable
- The server will show clear error messages if the API key is missing or invalid

## Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.