날씨 MCP 서버
OpenWeatherMap API를 사용하여 날씨 정보를 제공하는 MCP(Modern Code Protocol) 서버입니다.
특징
실시간 날씨 데이터 검색
온도의 미터법 단위
다음을 포함한 자세한 날씨 정보:
온도
습기
풍속
일출/일몰 시간
날씨 설명
Related MCP server: Weather MCP Server
필수 조건
Python 3.12 이상
OpenWeatherMap API 키
설치
Smithery를 통해 설치
Smithery 를 통해 Claude Desktop용 Weather MCP Server를 자동으로 설치하려면:
지엑스피1
수동 설치
저장소를 복제합니다
가상 환경 만들기:
python -m venv .venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
종속성 설치:
pip install -e .
설정 지침
Claude Desktop으로 설정
# claude_desktop_config.json
# Can find location through:
# Claude -> Settings -> Developer -> Edit Config
{
"mcpServers": {
"mcp-weather-project": {
"command": "uv",
"args": [
"--directory",
"/<absolute-path>/weather-mcp-server/src/resources",
"run",
"server.py"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY"
}
}
}
}
로컬/개발자 설정 지침
복제 저장소
git clone https://github.com/CodeByWaqas/weather-mcp-server
종속성 설치
MCP 서버 종속성을 설치합니다.
cd weather-mcp-server
# Create virtual environment and activate it
uv venv
source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows
# Install dependencies
uv add "mcp[cli]" python-dotenv requests httpx
구성
src/resources/env.example``src/resources/.env로 복사합니다.OpenWeatherMap API 키를
.env파일에 추가하세요.
WEATHER_API_KEY=your_api_key_here
용법
Claude Desktop을 실행하고 LLM을 사용하여 날씨 정보를 검색합니다.
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.