날씨 MCP 서버
미국 기상청(NWS) API를 사용하여 미국 지역의 날씨 정보와 경보를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버는 모델 컨텍스트 프로토콜을 통해 AI 에이전트가 사용하도록 설계되었습니다.
특징
미국 모든 주의 날씨 알림을 받을 수 있는 도구
좌표를 사용하여 미국 내 모든 지역의 자세한 날씨 예보를 얻는 도구
온도, 바람 상태 및 간단한 예보 설명을 지원합니다.
국립 기상청의 실시간 데이터
필수 조건
Node.js(v16 이상)
npm 또는 yarn 패키지 관리자
설치
저장소를 복제합니다.
지엑스피1
종속성 설치:
애플리케이션을 빌드하세요:
MCP 도구
서버는 AI 에이전트가 사용할 수 있는 두 가지 MCP 도구를 제공합니다.
알림 받기
특정 미국 주의 날씨 알림을 받으세요.
매개변수:
state: 두 글자 주 코드(예: CA, NY)
응답 예시:
예측 얻기
좌표를 사용하여 특정 위치의 날씨를 예보합니다.
매개변수:
latitude: 위치의 위도(-90~90)longitude: 위치의 경도(-180 ~ 180)
응답 예시:
프로젝트 구조
기술적 세부 사항
TypeScript로 구축됨
MCP(Model Context Protocol) 서버를 구현합니다.
MCP 서버 구현을 위해 @modelcontextprotocol/sdk를 사용합니다.
국립 기상청(NWS) API와의 인터페이스
Node16 모듈 해상도를 갖춘 ES2022 타겟
개발
서버를 수정하거나 확장하려면:
src/index.ts파일을 변경하세요애플리케이션을 다시 빌드합니다.
종속성
@modelcontextprotocol/sdk: MCP 서버 구현 프레임워크
zod: 도구 매개변수에 대한 런타임 유형 검사 및 검증
TypeScript: 유형 안전을 위한 개발 종속성
특허
아이에스씨
노트
이 서버는 National Weather Service API를 사용하므로 미국 지역에서만 작동합니다.
API 요청은 속도 제한이 있으며 User-Agent 헤더가 필요합니다.
모든 좌표는 십진수 형식이어야 합니다.
이는 독립형 CLI 애플리케이션이 아니라 모델 컨텍스트 프로토콜을 통해 AI 에이전트에 도구를 제공하는 서버입니다.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.Last updated -2661MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides real-time weather information and 5-day forecasts to AI assistants, supporting multiple languages and flexible units.Last updated -31
- -securityFlicense-qualityA Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.Last updated -66
- AsecurityAlicenseAqualityA Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.Last updated -11552MIT License