✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Weather MCP Tool

Weather MCP Tool

A minimalist weather query tool that lets you check global weather with just one sentence, perfectly integrated with Cursor editor.

[![smithery badge](https://smithery.ai/badge/@MrCare/mcp_tool)](https://smithery.ai/server/@MrCare/mcp_tool) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)](https://www.python.org/downloads/)[English](README.md) | [δΈ­ζ–‡](README_zh.md)
Weather MCP Tool Demo

Watch how easy it is to query weather with natural language

✨ Features

  • πŸ’‘ Minimalist: One-line weather query
  • πŸ€– Smart: Natural language support in Chinese/English
  • 🌏 Global: Support for all major cities
  • πŸ”Œ Plug & Play: Perfect Cursor integration
  • πŸš€ High Performance: Async processing, quick response
  • 🎨 Beautiful: Clear and intuitive weather display

πŸš€ Quick Start

1. Get API Key

πŸ”‘ Before starting, please Get OpenWeather API Key

2. One-Click Installation (Recommended)

Install and configure with Smithery in one command:

npx -y @smithery/cli@latest install @MrCare/mcp_tool --client cursor --config "{\"openweathermapApiKey\":\"your_api_key_here\",\"port\":8000}"

For WindSurf and Cine installation, please visit our Smithery repository.

3. Manual Installation

3.1 Clone and Install

git clone https://github.com/yourusername/weather-server.git && cd weather-server && pip install -e .

3.2 Configure API Key

Method 1: Using Configuration File (Recommended)

Copy the example configuration file and modify it:

cp env.example .env

Then edit the .env file, replace your_api_key_here with your API Key.

Method 2: Using Environment Variables

macOS/Linux:

export OPENWEATHERMAP_API_KEY="your_api_key"

Windows:

set OPENWEATHERMAP_API_KEY=your_api_key

3.3 Enable Tool

Edit ~/.cursor/mcp.json (Windows: %USERPROFILE%\.cursor\mcp.json):

{
    "weather_fastmcp": {
        "command": "python",
        "args": ["-m", "weather_server.server"]
    }
}

Restart Cursor and you're ready to go!

πŸ“ Usage Examples

Simply type in Cursor:

Show me the weather in Tokyo
What's the forecast for London?
How's the weather in New York?
Will it rain tomorrow in Paris?

That's it!

βš™οΈ Parameters

For more precise queries, you can specify these parameters:

| Parameter | Description | Default | |-----------|-------------|---------| | city | City name (Chinese/English) | Required | | days | Forecast days (1-5) | 5 | | units | Temperature unit (metric: Celsius, imperial: Fahrenheit) | metric | | lang | Response language (zhcn: Chinese, en: English) | zhcn |

❓ FAQ

  1. Not Working?
  • Ensure API Key is set correctly
  • Restart Cursor
  • Check Python environment
  1. City Not Found?
  • Try using English name
  • Check spelling
  • Use complete city name

πŸ‘¨β€πŸ’» Author

  • Mr.Car
  • Email: 534192336car@gmail.com

πŸ™ Acknowledgments

  • FastMCP
  • OpenWeatherMap
  • Cursor

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details

Featured Templates

View More
AI Engineering
Python Bug Fixer
119 1433
Data Analysis
Pharmacy Admin Panel
252 1957
Customer service
AI-Powered Product List Manager
153 868
AI Assistants
Talk with Claude 3
159 1523

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.