Skip to main content
Glama

MCP Weather Server

MCP 용 SSE 기반 서버 및 클라이언트

이 문서는 SSE 기반 MCP 서버와 해당 서버의 도구를 사용하는 독립형 MCP 클라이언트의 작동 패턴을 보여줍니다. 여기에서 논의된 내용을 기반으로 합니다.

용법

참고 : .env 또는 환경 변수로 ANTHROPIC_API_KEY 제공해야 합니다.

지엑스피1

Initialized SSE client... Listing tools... Connected to server with tools: ['get_alerts', 'get_forecast'] MCP Client Started! Type your queries or 'quit' to exit. Query: whats the weather like in Spokane? I can help you check the weather forecast for Spokane, Washington. I'll use the get_forecast function, but I'll need to use Spokane's latitude and longitude coordinates. Spokane, WA is located at approximately 47.6587° N, 117.4260° W. [Calling tool get_forecast with args {'latitude': 47.6587, 'longitude': -117.426}] Based on the current forecast for Spokane: Right now it's sunny and cold with a temperature of 37°F and ...

왜?

즉, MCP 서버는 이제 에이전트(클라이언트)가 언제 어디서든 연결하고, 사용하고, 연결을 끊을 수 있는 실행 중인 프로세스가 될 수 있습니다. 다시 말해, SSE 기반 서버와 클라이언트는 분리된 프로세스가 될 수 있으며, 심지어 분리된 노드에서도 가능합니다. 이는 클라이언트가 서버를 하위 프로세스로 생성하는 STDIO 기반 패턴과는 다르며 "클라우드 네이티브" 사용 사례에 더 적합합니다.

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 SSE 기반 서버와 클라이언트를 자동으로 설치하려면:

npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claude

섬기는 사람

weather.py 는 미국 국립기상청(National Weather Service) API를 기반으로 몇 가지 도구를 제공하는 SSE 기반 MCP 서버입니다. MCP 문서의 STDIO 서버 구현 예시를 바탕으로 작성되었습니다.

기본적으로 서버는 0.0.0.0:8080에서 실행되지만 다음과 같은 명령줄 인수를 사용하여 구성할 수 있습니다.

uv run weather.py --host <your host> --port <your port>

고객

client.py 는 SSE 기반 MCP 서버에 연결하여 해당 도구를 사용하는 MCP 클라이언트입니다. MCP 문서의 STDIO 클라이언트 구현 예시를 바탕으로 작성되었습니다.

기본적으로 클라이언트는 다음과 같이 명령줄 인수에 제공된 SSE 엔드포인트에 연결합니다.

uv run client.py http://0.0.0.0:8080/sse
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

이 SSE 기반 MCP 서버를 통해 사용자는 국가 기상청 API에 연결하고 상호 작용하여 날씨 경보 및 예보를 검색할 수 있습니다.

  1. 용법
    1. 왜?
      1. Smithery를 통해 설치
      2. 섬기는 사람
      3. 고객

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)
      Last updated -
      Python
      • Linux
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
      Last updated -
      1
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
      Last updated -
      Python
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      An MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.
      Last updated -
      12
      TypeScript
      MIT License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/sidharthrajaram/mcp-sse'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server