MCP ExplorerExplorer

Weather Mcp

@sukeshofficialon a month ago
1 MIT
FreeCommunity
AI Systems
Weather_MCP is a Python tool for fetching real-time weather data via CLI and API.

Overview

What is Weather Mcp

weather_mcp is a command-line and API-integrated weather tool built with Python, designed to fetch current weather data for any city and can be extended for use as a Slack bot or middleware in other projects.

Use cases

Use cases for weather_mcp include creating weather-related Slack bots, integrating weather data into applications, and automating weather updates for users.

How to use

To use weather_mcp, you can run it from the command line using ‘python main.py’ or import it as a module in your Python scripts with ‘from weather import get_weather’.

Key features

Key features include real-time weather data retrieval for any city, support for CLI and API integrations, modular design for easy extension, and the ability to integrate with AI agents.

Where to use

weather_mcp can be used in various fields such as software development, automation projects, and chat applications where weather data is relevant.

Content

⛅ Weather_MCP Tool

A command-line and API-integrated weather tool built with Python that can be extended to work as a Slack bot or a middleware weather data provider in other projects.


📌 Overview

This project allows users to:

  • 🌍 Fetch current weather data for any city
  • 🌤️ Support CLI and API integrations
  • 🔄 Modular and reusable — ready for Slack integration or future automation agents

📁 Project Structure

File Description
main.py Main entry point — runs the app logic
weather.py Core logic to fetch and process weather data
README.md You are here!
pyproject.toml Dependency and project config
uv.lock Lock file for dependency versions
.python-version Python version tracking
.gitignore Git ignore rules
.venv/ Local virtual environment (ignored)

🌐 Features

  • 🌡️ Get real-time weather for any city
  • 🧠 Can be integrated with AI agents
  • 🧰 CLI-based interaction or callable via import
  • ⚙️ Easily extendable to REST APIs or Slack bots

🧪 Usage

1. Run from CLI

python main.py

2. Use as a module

from weather import get_weather

print(get_weather("Bangalore"))

🔧 Setup

git clone https://github.com/your-username/weather_mcp.git
cd weather_mcp

# Install dependencies
pip install -r requirements.txt

Or use uv if configured:

uv pip install -r requirements.txt

🌍 API Integration (Optional)

If using weather APIs (e.g., OpenWeatherMap):

WEATHER_API_KEY=your_api_key_here

Configure it in .env and make sure weather.py loads it.


📦 Future Plans

  • [ ] REST API version
  • [ ] Slack bot integration
  • [ ] Forecast and historical data

📄 License

MIT License


Built by SukeshOfficial 🌀

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers