MCP Weather Server
MCP 날씨 서버
FastMCP 기반의 날씨 조회 MCP 서버로, 현재 날씨, 향후 일기 예보, 섭씨/화씨 변환, 인기 도시 리소스 및 여행 날씨 조언 프롬프트를 제공합니다.
프로젝트에는 두 가지 실행 진입점이 포함되어 있습니다:
server.py: 로컬 stdio 모드, Claude Desktop, Cursor, Cherry Studio 등 로컬 MCP 클라이언트에 적합합니다.server_remote.py: Streamable HTTP 모드, ModelScope 등 원격 호스팅 플랫폼에 배포하기에 적합합니다.
기능
get_weather(city: str): 지정된 도시의 현재 날씨를 조회합니다.get_forecast(city: str, days: int = 3): 지정된 도시의 향후 일기 예보를 조회합니다(기본값 3일).temperature_convert(value: float, from_unit: str): 섭씨와 화씨를 상호 변환합니다.weather://cities: 자주 사용하는 도시 목록 리소스를 반환합니다.travel_advisor(destination: str, date: str): 여행 날씨 조언 프롬프트를 생성합니다.
날씨 데이터는 wttr.in에서 가져오며, 별도의 API 토큰이 필요하지 않습니다.
Related MCP server: weather-mcp-server
환경 요구 사항
Python >= 3.12
uv를 사용하여 의존성을 관리하는 것을 권장합니다.
의존성 설치
uv syncuv를 사용하지 않는 경우, 가상 환경에서 의존성을 설치할 수도 있습니다:
pip install "mcp[cli]>=1.27.0" "httpx>=0.28.1"로컬 실행
stdio 모드:
uv run python server.pyMCP 클라이언트 구성 예시:
{
"mcpServers": {
"weather-server": {
"command": "uv",
"args": ["run", "python", "server.py"]
}
}
}원격 실행
Streamable HTTP 모드:
uv run python server_remote.py기본 리스닝:
http://0.0.0.0:8000/mcp/원격 MCP 클라이언트 구성 예시:
{
"mcpServers": {
"weather-server": {
"url": "http://127.0.0.1:8000/mcp/"
}
}
}ModelScope 배포 설명
ModelScope에서 MCP 서버를 생성하거나 배포할 때, 본 프로젝트의 GitHub 저장소 주소를 입력하고 원격 진입점 파일을 사용하십시오:
python server_remote.py서비스는 Streamable HTTP 방식으로 시작되며 0.0.0.0:8000을 리스닝합니다. MCP 엔드포인트는 다음과 같습니다:
/mcp/플랫폼이 사용자 지정 시작 명령을 지원하는 경우 다음을 권장합니다:
uv run python server_remote.py또는 플랫폼 환경에서 의존성을 미리 설치한 후 사용하십시오:
python server_remote.py프로젝트 구조
.
├── README.md
├── pyproject.toml
├── server.py
├── server_remote.py
└── uv.lock라이선스
오픈 소스로 배포해야 하는 경우, 실제 상황에 맞게 라이선스 파일을 추가하십시오.
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
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.1MIT
- AlicenseNot gradedqualityCmaintenanceA weather query MCP server based on FastMCP, supporting Chinese city names and fetching real-time weather data from wttr.in.MIT
- AlicenseNot gradedqualityCmaintenanceA real-time weather query MCP server supporting 12 major Chinese cities using the wttr.in API with no API key required.1MIT
- AlicenseNot gradedqualityCmaintenanceReal-time weather query MCP server providing current weather for cities via wttr.in, with support for listing built-in city mappings and server metadata.MIT
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
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/liusicheng/mcp-weather'
If you have feedback or need assistance with the MCP directory API, please join our Discord server