weather-mcp
🌤️ Cursor용 Weather MCP 서버 및 챗봇 인터페이스
Model Context Protocol (MCP) Weather 서버를 Cursor IDE에서 바로 사용할 수 있도록 구현하고, 날씨 에이전트와 대화하며 테스트할 수 있는 챗봇 웹 UI를 함께 제공하는 간단하고 완전한 Python 프로젝트입니다.
🌟 주요 기능
🌐 MCP 서버 (
weather_mcp_server.py): stdio 전송 방식의 FastMCP로 구축되었습니다. Cursor 및 기타 MCP 클라이언트에 날씨 도구를 노출합니다.⚡ 무료 실시간 날씨 (
weather_service.py): Open-Meteo 기반으로 구동됩니다. API 키가 필요 없으며 전 세계 모든 도시에서 작동합니다.🤖 날씨 에이전트 (
agent.py): 자연어 질의("도쿄 날씨", "런던 5일 예보", "파리 대기질")를 도구 호출로 변환합니다.💻 현대적인 챗봇 UI (
static/및app.py): 다크 모드, 글래스모픽 웹 인터페이스로 시각적 날씨 카드, 예보 테이블, 도구 실행 배지를 제공합니다.🔌 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. 웹 챗봇 UI 실행
python app.py브라우저를 열고 다음 주소로 이동하세요: 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 + ,)을 엽니다.Features -> MCP Servers로 이동합니다.
Add New MCP Server를 클릭합니다:
이름:
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 도구
도구 이름 | 매개변수 | 설명 |
|
| 실시간 기온, 날씨 상태, 습도, 풍속, 기압 |
|
| 일별 최고/최저 기온 및 강수 확률을 포함한 다일 예보 |
|
| 대기질 지수(미국 및 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