Skip to main content
Glama
vijaypss

weather-mcp

by vijaypss

날씨 API + UI + MCP 서버

이 프로젝트에는 다음이 포함되어 있습니다:

  • UI: 도시 이름을 입력하고 현재 날씨 확인

  • HTTP API: GET /api/weather?city=...

  • 요약 API: GET /api/summary?city=... (Claude 선택 사항; 로컬 요약으로 대체됨)

  • MCP 서버: stdio를 통한 get_weather 도구

날씨 데이터는 Open‑Meteo(무료, API 키 불필요)를 사용합니다.

UI + API 실행

npm install
npm run dev

http://localhost:5175를 엽니다.

선택 사항: “Claude API” 요약

Claude는 완전히 무료가 아니므로 API 키가 필요합니다. 이 프로젝트는 다음 중 하나를 지원합니다:

  • ANTHROPIC_API_KEY (직접 Anthropic API), 또는

  • OPENROUTER_API_KEY (OpenRouter, OPENROUTER_MODEL을 통해 Anthropic Claude 모델 사용)

키가 설정되지 않은 경우, /api/summary 및 UI의 “요약(Summarize)” 버튼은 로컬 요약으로 대체됩니다.

MCP 서버 실행 (stdio)

npm install
npm run mcp

그런 다음 MCP 클라이언트를 다음과 같이 구성하여 실행합니다:

  • command: npm

  • args: ["run","mcp"]

  • cwd: 이 폴더

도구 이름:

  • get_weather (입력값: { "city": "Pune" })

"# MCP_example"

Related MCP Connectors

Related MCP Servers

  • 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.
    8 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides weather information using Open-Meteo API without requiring an API key. Supports weather queries by city name or coordinates with customizable temperature units.
    -