Skip to main content
Glama

MCP 날씨 서버

npm 버전 특허 노드 버전 문제 주간 다운로드

AccuWeather API를 사용하여 시간별 및 일별 날씨 예보를 제공하는 MCP(Model Context Protocol) 서버입니다.


빠른 시작

AccuWeather API 키가 필요합니다(무료 계층 이용 가능).
여기에서 가입 하고 앱을 만들어서 열쇠를 받으세요.

API 키를 환경 변수로 내보내세요.

지엑스피1

그런 다음 다음을 사용하여 MCP 날씨 서버를 직접 실행합니다.

npx -y @timlukahorstmann/mcp-weather

또는 supergateway를 통한 HTTP/REST 액세스의 경우:

npx -y supergateway --stdio "npx -y @timlukahorstmann/mcp-weather" \
  --port 4004 \
  --baseUrl http://127.0.0.1:4004 \
  --ssePath /messages \
  --messagePath /message \
  --cors "*" \
  --env ACCUWEATHER_API_KEY="$ACCUWEATHER_API_KEY"

Related MCP server: Weather MCP Server

MCP 서버 구성 예

Claude Desktop 또는 다른 MCP 호환 클라이언트와 통합하려면 다음을 구성에 추가하세요(예: claude_desktop_config.json ):

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "@timlukahorstmann/mcp-weather"],
      "env": {
        "ACCUWEATHER_API_KEY": "your_api_key_here"
      }
    }
  }
}

개요

이 MCP 서버를 사용하면 Claude와 같은 대규모 언어 모델이 실시간 날씨 데이터에 접근할 수 있습니다. LLM과 통합하면 모델은 다음과 같은 작업을 수행할 수 있습니다.

  • 정확하고 최신의 날씨 예보를 가져옵니다

  • 다음 12시간 동안의 시간별 날씨 데이터를 제공합니다.

  • 최대 15일 동안의 일일 날씨 예보를 확인하세요

  • 미터법(°C)과 영국식(°F) 단위로 데이터를 표시합니다.

  • 온도, 기상 조건, 강수량 정보 및 기타 날씨 세부 정보를 확인하세요

필수 조건

  • 노드.js ≥18

  • AccuWeather API 키( .env 또는 셸을 통해 설정)

설정

  1. 이 저장소를 복제하세요:

    git clone https://github.com/TimLukaHorstmann/mcp-weather.git
    cd mcp-weather
  2. 종속성 설치:

    npm install
  3. AccuWeather API 키 받기:

    • AccuWeather API 에 등록하세요

    • 새로운 앱을 만들고 API 키를 얻으세요

  4. API 키로 .env 파일을 만듭니다.

    ACCUWEATHER_API_KEY=your_api_key_here
  5. 프로젝트를 빌드하세요:

    npm run build

Claude Desktop과 함께 사용

  1. 이 MCP 서버를 사용하도록 Claude Desktop을 구성하세요.

    • 클로드 데스크톱 열기

    • 설정 > 개발자 > 구성 편집으로 이동하세요.

    • claude_desktop_config.json 에 다음을 추가하세요.

    {
      "mcpServers": {
        "weather": {
          "command": "npx",
          "args": ["-y", "@timlukahorstmann/mcp-weather"],
          "env": {
            "ACCUWEATHER_API_KEY": "your_api_key_here"
          }
        }
      }
    }
  2. Claude Desktop을 다시 시작하세요

  3. 새로운 대화에서 플러그 아이콘을 클릭하고 "날씨"를 선택하여 MCP 서버를 활성화합니다.

  4. 이제 클로드에게 다음과 같은 날씨 예보를 물어볼 수 있습니다.

    • "뉴욕시의 시간별 날씨는 어떻습니까?"

    • "런던의 5일 날씨를 알려주세요."

    • "화씨로 이번 주 도쿄의 날씨는 어떨까요?"

    • "내일 샌프란시스코에 비가 올까요?"

사용 가능한 도구

시간별 날씨 예보

  • 도구 이름: weather-get_hourly

  • 다음 12시간 동안의 시간별 예보를 제공합니다.

  • 매개변수:

    • sessionId (필수): 세션의 고유 식별자

    • location (필수): 도시 또는 위치 이름

    • units (선택 사항): "미터법"(섭씨, 기본값) 또는 "제국법"(화씨)

일일 날씨 예보

  • 도구 이름: weather-get_daily

  • 최대 15일 동안의 일일 예보를 제공합니다.

  • 매개변수:

    • sessionId (필수): 세션의 고유 식별자

    • location (필수): 도시 또는 위치 이름

    • days (선택 사항): 예측 일수(1, 5, 10 또는 15, 기본값은 5)

    • units (선택 사항): "미터법"(섭씨, 기본값) 또는 "제국법"(화씨)

개발

  • 개발 종속성 설치: npm install

  • 코드를 린트하세요: npm run lint

  • 빌드: npm run build

  • 테스트 실행: npm test

  • 개발 모드로 시작: npm run dev

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.

향후 개선 사항

저희는 MCP 날씨 서버를 지속적으로 개선하기 위해 노력하고 있습니다. 향후 출시에 고려 중인 몇 가지 기능은 다음과 같습니다.

  • 확장된 시간별 예보: 12시간 이상, 예를 들어 24시간 또는 48시간.

  • 날씨 경보: AccuWeather의 심각한 날씨 경보 API와 통합되었습니다.

  • 위치 자동완성: 자동완성 제안을 통해 위치 검색이 개선되었습니다.

  • 과거 기상 데이터: 과거 기상 상황에 대한 접근.

다른 기능에 대한 아이디어가 있으시다면, 언제든지 이슈를 공개해주세요!

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

Available Tools

2 tools
weather-get_dailyA

Get daily weather forecast for up to 15 days

ParametersJSON Schema
NameRequiredDescriptionDefault
locationYesThe city or location for which to retrieve the weather forecast.
daysNoNumber of days to forecast (1, 5, 10, or 15). Default is 5.
unitsNoTemperature unit system (metric for Celsius, imperial for Fahrenheit). Default is metric.

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description carries the behavioral transparency burden. It communicates a read-only forecast lookup via 'Get' and adds the 15-day maximum, but it does not disclose response shape, potential errors, timezone behavior, or whether any authentication is needed. For a simple read operation this is acceptable but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no wasted words. It front-loads the verb and resource and immediately gives the key constraint of 15 days.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple weather lookup with three fully documented parameters, the description is largely complete and an agent can invoke the tool correctly. The only notable gap is that there is no output schema and the description does not hint at the shape of the returned forecast payload.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: location, days, and units are all clearly documented in the input schema. The description adds no additional parameter meaning, which is acceptable because the structured schema already handles the documentation fully.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the action ('Get'), the resource ('daily weather forecast'), and the scope ('up to 15 days'). This clearly distinguishes it from the sibling tool weather-get_hourly without requiring any additional inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'daily' and the tool name imply that this is for day-level forecasts rather than hourly ones, which is useful context. However, the description does not explicitly state when to use this tool versus weather-get_hourly or provide any exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

weather-get_hourlyA

Get hourly weather forecast for the next 12 hours

ParametersJSON Schema
NameRequiredDescriptionDefault
locationYesThe city or location for which to retrieve the weather forecast.
unitsNoTemperature unit system (metric for Celsius, imperial for Fahrenheit). Default is metric.

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It states the scope (hourly, next 12 hours) and implies a read-only operation, but does not mention return format, error behavior, or data source limitations. It is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no filler. It front-loads the core action and scope, making it easy for an agent to process quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool, the description is largely complete: it states the forecast type, granularity, and time window. It does not describe the return payload, but no output schema exists and the tool's purpose is straightforward enough that an agent can infer expected weather data fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented in the schema. The description adds no additional parameter-level details beyond what the schema provides, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Get') and resource ('hourly weather forecast') with a clear time bound ('next 12 hours'). This clearly distinguishes it from the sibling tool weather-get_daily, which is for daily forecasts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The time range and 'hourly' granularity imply when to use this tool, but the description never explicitly names the alternative or states when to choose it instead. The guidance is present by inference, not direct instruction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updates
    • First observedweather-get_daily
    • First observedweather-get_hourly

TDQS

B3.2/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: one provides daily forecasts for up to 15 days, while the other provides hourly forecasts for the next 12 hours. There is no overlap in functionality, and an agent can easily differentiate between them based on the time granularity and forecast duration.

Naming Consistency5/5

Both tools follow a consistent naming pattern with a prefix 'weather-' followed by a verb_noun structure (get_daily, get_hourly). This pattern is predictable and enhances readability, making it easy for agents to understand the tool's purpose at a glance.

Tool Count2/5

With only 2 tools, the server feels under-scoped for a weather domain. While the tools cover forecast retrieval, there are obvious gaps such as current weather conditions, historical data, or location-based searches, making the set too thin for comprehensive weather-related tasks.

Completeness2/5

The tool surface is severely incomplete for a weather server. It lacks essential operations like getting current weather, searching locations, or accessing historical data, which are core to weather applications. Agents will face dead ends when trying to perform basic weather queries beyond forecasts.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.
    1
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    A Model Context Protocol server that interfaces with OpenWeatherMap API to provide real-time weather information and forecasts for cities worldwide.
    -