Skip to main content
Glama

mcp-weather

전 세계 날씨 MCP 서버입니다. 장소 이름을 좌표로 변환한 다음, Cursor와 같은 MCP 클라이언트를 위해 stdio를 통해 현재 기상 상태를 반환합니다.

저장소: github.com/deep3036/mcp-weather

기능

서버는 하나의 도구를 등록합니다:

도구

입력

출력

get-current-weather

location (도시 또는 장소 이름, 최소 2자)

현재 기온, 체감 온도, 습도, 강수량, 바람, 기상 상태, 주야간, 시간대, 좌표

location의 예: Delhi, Greater Noida, Mumbai, London.

지오코딩은 Open-Meteo Geocoding을 사용합니다. 예보 데이터는 Open-Meteo Forecast를 사용합니다. 두 API 모두 이 용도로는 키가 필요 없습니다.

이름과 일치하는 장소가 여러 개인 경우 첫 번째 지오코딩 결과가 사용됩니다.

Related MCP server: Weather MCP

요구 사항

  • Node.js 20 이상

  • npm

설정

npm install

실행

개발 (tsx를 통한 TypeScript):

npm run dev

프로덕션:

npm run build
npm start

이 프로세스는 stdin/stdout을 통해 MCP를 사용합니다. 로그는 stderr로 출력됩니다. 일반 웹 앱으로 실행하지 마세요.

Cursor MCP 구성

클라이언트를 이 프로젝트 디렉터리로 지정하세요:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["tsx", "src/index.ts"],
      "cwd": "D:\\mcp\\weather-mcp"
    }
  }
}

빌드 후에는 tsx 대신 node와 dist/index.js를 사용할 수 있습니다.

프로젝트 구조

경로

역할

src/index.ts

MCP 서버, 도구, Open-Meteo 호출

tsconfig.json

TypeScript (ES2022, NodeNext, src에서 dist로)

package.json

스크립트: dev, build, start

라이선스

ISC

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get current weather information for any city using the Open-Meteo API. Provides detailed meteorological data including temperature, precipitation, day/night status, and hourly forecasts through natural language queries.
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get real-time weather information for any city in the world. Provides current temperature and weather conditions through a simple city name query.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides current weather information for any city worldwide using the free Open-Meteo API, enabling users to query temperature, wind speed, humidity, and weather conditions through natural language.
    3 npm
    MIT