weather-mcp
🌤️ Weather MCP Server & Chatbot-Schnittstelle für Cursor
Ein einfaches, vollständiges Python-Projekt, das einen Model Context Protocol (MCP)-Wetterserver für Cursor IDE implementiert, zusammen mit einer Chatbot-Web-UI zum Testen und Konversieren mit dem Wetter-Agenten.
🌟 Funktionen
🌐 MCP-Server (
weather_mcp_server.py): Erstellt mit FastMCP über stdio-Transport. Stellt Wetter-Tools für Cursor und andere MCP-Clients bereit.⚡ Kostenloses Echtzeit-Wetter (
weather_service.py): Unterstützt durch Open-Meteo. Keine API-Schlüssel erforderlich. Funktioniert für jede Stadt weltweit.🤖 Wetter-Agent (
agent.py): Wandelt natürliche Anfragen ("Wetter in Tokio", "5-Tage-Vorhersage für London", "Luftqualität in Paris") in Tool-Aufrufe um.💻 Moderne Chatbot-UI (
static/&app.py): Dunkelmodus, glasmorphe Web-Oberfläche mit visuellen Wetterkarten, Vorhersagetabellen und Tool-Ausführungs-Badges.🔌 Cursor-Integration (
.cursor/mcp.json): Vorkonfiguriertes JSON für Cursor-Einstellungen.
Related MCP server: weather-mcp-server
📁 Projektstruktur
weather-mcp-chatbot/
│── .cursor/
│ └── mcp.json # Cursor MCP configuration
│── weather_service.py # Free Open-Meteo weather & geocoding integration
│── weather_mcp_server.py # MCP Server (stdio transport for Cursor)
│── agent.py # Weather agent NLP & tool caller
│── app.py # FastAPI web server & chat endpoint
│── static/
│ ├── index.html # Chatbot UI
│ ├── style.css # Modern dark-mode styling
│ └── app.js # Chatbot frontend logic
│── test_mcp.py # Automated test suite
│── requirements.txt # Python dependencies
└── README.md # Documentation & quickstart🚀 Schnellstart
1. Abhängigkeiten installieren
pip install -r requirements.txt2. Die Web-Chatbot-UI ausführen
python app.pyÖffnen Sie Ihren Browser und navigieren Sie zu: http://127.0.0.1:8000
3. Automatisierte Tests ausführen
python test_mcp.py🔌 So verbinden Sie sich mit Cursor
Cursor kann sich direkt mit Ihrem Python-MCP-Server verbinden, um Echtzeit-Wetterdaten in Cursor Chat / Composer bereitzustellen.
Option A: Verwendung von .cursor/mcp.json (Empfohlen)
Öffnen Sie dieses Projektverzeichnis in Cursor:
File -> Open Folder -> weather-mcp-chatbotDie Datei
.cursor/mcp.jsonim Projekt wird von Cursor automatisch erkannt.
Option B: In den Cursor-Einstellungen hinzufügen
Öffnen Sie in Cursor die Einstellungen (
Ctrl + ,oderCmd + ,).Gehen Sie zu Features -> MCP-Server.
Klicken Sie auf Neuen MCP-Server hinzufügen:
Name:
weatherTyp:
command(stdio)Befehl:
python C:\Users\admin\.gemini\antigravity\scratch\weather-mcp-chatbot\weather_mcp_server.py
Klicken Sie auf Speichern und überprüfen Sie den grünen Statusindikator.
Verwendung in Cursor Chat:
In Cursor Composer oder Chat können Sie jetzt fragen:
"Wie ist das aktuelle Wetter in Tokio?"
"Überprüfe die 5-Tage-Vorhersage für Berlin mit @weather"
"Wie ist die Luftqualität in Paris?"
Cursor ruft die MCP-Tools (get_current_weather, get_weather_forecast, get_air_quality) auf, um Live-Daten abzurufen!
🛠️ Verfügbare MCP-Tools
Tool-Name | Parameter | Beschreibung |
|
| Echtzeit-Temperatur, Wetterlage, Luftfeuchtigkeit, Windgeschwindigkeit, Luftdruck |
|
| Mehrtägige Vorhersage mit täglichen Höchst-/Tiefstwerten und Regenwahrscheinlichkeiten |
|
| Luftqualitätsindex (US- und EU-AQI), PM2.5, PM10, Ozonwerte |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.9
- AlicenseAqualityCmaintenanceProvides real-time weather and forecast data via MCP tools, enabling AI agents to query current weather and up to 3-day forecasts for any city.3MIT
- FlicenseNot gradedqualityBmaintenanceEnables querying current weather, 7-day forecast, UV index, and air quality for any city using the free Open-Meteo API, without requiring an API key.15
- AlicenseNot gradedqualityBmaintenanceProvides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.MIT
Related MCP Connectors
Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nateksharma4698-oss/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server