/ 디렉터리 / 플레이그라운드 / weather-mcp-server
● 커뮤니티 ezh0v ⚡ 바로 사용

weather-mcp-server

제작: ezh0v · ezh0v/weather-mcp-server

A tiny Go MCP that answers 'what's the weather in X?' using WeatherAPI — one tool, one env var, zero ceremony.

weather-mcp-server is a minimal Go server exposing a single current_weather tool that calls WeatherAPI.com. Useful as a 'hello world' MCP, a building block for location-aware agents, or a quick way to add weather awareness without pulling in a heavier maps MCP.

왜 쓰나요

핵심 기능

라이브 데모

실제 사용 모습

weather.replay ▶ 준비됨
0/0

설치

클라이언트 선택

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "weather": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/ezh0v/weather-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config 열기. 저장 후 앱 재시작.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "weather": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/ezh0v/weather-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Cursor는 Claude Desktop과 동일한 mcpServers 스키마 사용. 프로젝트 설정이 전역보다 우선.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "weather": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/ezh0v/weather-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Cline 사이드바의 MCP Servers 아이콘 클릭 후 "Edit Configuration" 선택.

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "weather": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/ezh0v/weather-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop과 같은 형식. Windsurf 재시작 후 적용.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "weather",
      "command": "TODO",
      "args": [
        "See README: https://github.com/ezh0v/weather-mcp-server"
      ]
    }
  ]
}

Continue는 맵이 아닌 서버 오브젝트 배열 사용.

~/.config/zed/settings.json
{
  "context_servers": {
    "weather": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/ezh0v/weather-mcp-server"
        ]
      }
    }
  }
}

context_servers에 추가. 저장 시 Zed가 핫 리로드.

claude mcp add weather -- TODO 'See README: https://github.com/ezh0v/weather-mcp-server'

한 줄 명령. claude mcp list로 확인, claude mcp remove로 제거.

사용 사례

실전 활용법: weather-mcp-server

Give your personal assistant weather awareness

👤 Anyone using Claude as a daily assistant ⏱ ~10 min beginner

언제 쓸까: You ask Claude for weather and it keeps saying 'I don't have real-time data'. Fix that in 5 minutes.

사전 조건
  • WeatherAPI.com free API key — weatherapi.com/signup — 1M calls/month free
흐름
  1. Set up and connect
    Install weather-mcp-server via Docker with WEATHER_API_KEY=... and connect from Claude Desktop.✓ 복사됨
    current_weather tool visible
  2. Ask naturally
    What's the weather like in Tokyo right now? Should I bring a jacket for a walk?✓ 복사됨
    → Real-time conditions + actionable suggestion

결과: Instant weather checks without a separate app.

함정
  • Free tier limits + no forecast endpoint here — This tool is current-conditions only; use weatherapi's REST API directly for 7-day forecast or swap to a more feature-rich weather MCP

Generate a morning travel briefing for multiple cities

👤 Frequent travelers, remote teams ⏱ ~5 min beginner

언제 쓸까: You coordinate with colleagues in 4 time zones and want to know if the New York team is in a blizzard before your 9 AM call.

흐름
  1. Call per city
    Get current weather for New York, London, Tokyo, São Paulo. Summarize in one sentence each.✓ 복사됨
    → 4-city brief

결과: 30-second daily ops awareness across your distributed team.

함정
  • API rate limit if called every minute across many cities — Cache for 15 minutes; weather doesn't change that fast

조합

다른 MCP와 조합해 10배 효율

weather + google-map

Plan an outdoor trip weighing both route and weather

Plan a route for 3 outdoor stops in LA. For each, also check current weather; warn if precipitation.✓ 복사됨

도구

이 MCP가 노출하는 것

도구입력언제 호출비용
current_weather city: str Anything weather-related 1 WeatherAPI call (free up to 1M/mo)

비용 및 제한

운영 비용

API 쿼터
WeatherAPI free: 1M calls/month, 10/sec
호출당 토큰
~200 tokens per response
금액
Free for personal use; paid plans start at $4/mo for higher tiers
Cache results for 10-15 minutes — weather doesn't change faster than that.

보안

권한, 시크릿, 파급범위

자격 증명 저장: WEATHER_API_KEY env var
데이터 외부 송신: Outbound to api.weatherapi.com only

문제 해결

자주 발생하는 오류와 해결

401 from WeatherAPI

WEATHER_API_KEY not set or invalid. Get one at weatherapi.com/my/.

확인: curl 'http://api.weatherapi.com/v1/current.json?key=$KEY&q=London'
City not found

Use full name with country: 'Paris, France' not 'Paris'. Or use coordinates 'lat,lng'.

Build fails: go module errors

Requires Go 1.21+. go version to check. Or use the Docker image.

대안

weather-mcp-server 다른 것과 비교

대안언제 쓰나단점/장점
Open-Meteo MCPYou want no API key at allFree, no key, but requires lat/lng (no city name geocoding)
National Weather Service MCPUS-only and you want forecasts + alertsUS-only; richer data

더 보기

리소스

📖 GitHub에서 공식 README 읽기

🐙 열린 이슈 보기

🔍 400+ MCP 서버 및 Skills 전체 보기