
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
A minimalist weather query tool that lets you check global weather with just one sentence, perfectly integrated with Cursor editor.
Watch how easy it is to query weather with natural language
🔑 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.
git clone https://github.com/yourusername/weather-server.git && cd weather-server && pip install -e .
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
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!
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!
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 (zh_cn: Chinese, en: English) | zh_cn |
Not Working?
City Not Found?
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
一个基于 FastMCP 的天气查询服务
We found that weather-server1 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.