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 ...Related MCP server: Weather MCP Server
왜?
즉, 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/sseThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that provides weather information and alerts for US locations using the National Weather Service API, enabling retrieval of weather forecasts and active weather alerts.2
- Flicense-qualityDmaintenanceProvides weather information tools based on the National Weather Service APIs through an SSE-based MCP server that can run as a standalone process or Docker container.
- Alicense-qualityDmaintenanceAn SSE-based MCP server for retrieving real-time weather data for a specified location, supporting current conditions and forecasts.7MIT
- AlicenseBqualityDmaintenanceMCP server that integrates the National Weather Service API to fetch weather alerts for US states and forecasts for coordinates.281MIT
Related MCP Connectors
Geospatial MCP server for earthquake, tsunami, volcano, disaster, and FX data queries.
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
MCP server for AI access to Swagger by SmartBear.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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