weather-mcp
🌤️ Weather MCP サーバー & Cursor 用チャットボットインターフェース
Cursor 向けに実装された、シンプルで完全な Python プロジェクトです。Model Context Protocol (MCP) ウェザーサーバーを Cursor IDE で利用でき、さらにウェザーエージェントと対話するための チャットボット Web UI も備えています。
🌟 特徴
🌐 MCP サーバー (
weather_mcp_server.py): FastMCP を stdio トランスポートで使用。Cursor や他の MCP クライアントに天気ツールを公開します。⚡ 無料のリアルタイム天気 (
weather_service.py): Open-Meteo を利用。API キー不要。世界中の任意の都市に対応。🤖 ウェザーエージェント (
agent.py): 自然なクエリ(「東京の天気」、「ロンドンの5日間予報」、「パリの大気質」)をツール呼び出しに変換します。💻 モダンなチャットボット UI (
static/とapp.py): ダークモード、グラスモーフィズムの Web インターフェース。視覚的な天気カード、予報テーブル、ツール実行バッジを備えています。🔌 Cursor 統合 (
.cursor/mcp.json): Cursor 設定用の事前構成済み JSON。
Related MCP server: weather-mcp-server
📁 プロジェクト構成
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🚀 クイックスタート
1. 依存関係のインストール
pip install -r requirements.txt2. Web チャットボット UI を実行
python app.pyブラウザを開いて、次の URL にアクセスしてください: http://127.0.0.1:8000
3. 自動テストを実行
python test_mcp.py🔌 Cursor との接続方法
Cursor は Python MCP サーバーに直接接続して、Cursor Chat / Composer 内でリアルタイムの天気データを提供できます。
オプション A: .cursor/mcp.json を使用(推奨)
Cursor でこのプロジェクトディレクトリを開きます:
File -> Open Folder -> weather-mcp-chatbotプロジェクト内の
.cursor/mcp.jsonファイルは Cursor によって自動的に検出されます。
オプション B: Cursor 設定で追加
Cursor で 設定 を開きます(
Ctrl + ,またはCmd + ,)。機能 -> MCP サーバー に移動します。
新しい MCP サーバーを追加 をクリックします:
名前:
weatherタイプ:
command(stdio)コマンド:
python C:\Users\admin\.gemini\antigravity\scratch\weather-mcp-chatbot\weather_mcp_server.py
保存 をクリックし、緑色のステータスインジケーターを確認します。
Cursor Chat での使用方法:
Cursor Composer または Chat で、次のように質問できます:
「東京の現在の天気は?」
「@weather を使ってベルリンの5日間予報を確認して」
「パリの大気質は?」
Cursor は MCP ツール(get_current_weather、get_weather_forecast、get_air_quality)を呼び出して、ライブデータを取得します!
🛠️ 公開されている MCP ツール
ツール名 | パラメータ | 説明 |
|
| リアルタイムの気温、天候、湿度、風速、気圧 |
|
| 日ごとの最高/最低気温と降水確率を含む複数日予報 |
|
| 大気質指数(US & EU AQI)、PM2.5、PM10、オゾン濃度 |
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