Socket
Book a DemoInstallSign in
Socket

weather-server1

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weather-server1

一个基于 FastMCP 的天气查询服务

Source
pipPyPI
Version
1.0.0
Maintainers
1
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 License: MIT Python Version

English | 中文

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

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:

ParameterDescriptionDefault
cityCity name (Chinese/English)Required
daysForecast days (1-5)5
unitsTemperature unit (metric: Celsius, imperial: Fahrenheit)metric
langResponse language (zh_cn: Chinese, en: English)zh_cn

❓ FAQ

  • Not Working?

    • Ensure API Key is set correctly
    • Restart Cursor
    • Check Python environment
  • City Not Found?

    • Try using English name
    • Check spelling
    • Use complete city name

👨‍💻 Author

🙏 Acknowledgments

📄 License

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

Keywords

weather

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.