MCP Weather Server
Servidor y cliente basados en SSE para MCP
Esto demuestra un patrón de funcionamiento para servidores MCP basados en SSE y clientes MCP independientes que utilizan herramientas de estos. Basado en una discusión original aquí .
Uso
Nota : asegúrese de proporcionar ANTHROPIC_API_KEY en .env o como una variable de entorno.
uv run weather.py
uv run client.py http://0.0.0.0:8080/sseInitialized 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
¿Por qué?
Esto significa que el servidor MCP ahora puede ser un proceso en ejecución al que los agentes (clientes) se conectan, usan y desconectan cuando y donde quieran. En otras palabras, un servidor basado en SSE y los clientes pueden ser procesos desacoplados (incluso, potencialmente, en nodos desacoplados). Esto es diferente y se adapta mejor a los casos de uso nativos de la nube que el patrón basado en STDIO, donde el propio cliente genera el servidor como un subproceso.
Instalación mediante herrería
Para instalar automáticamente el servidor y el cliente basados en SSE para Claude Desktop a través de Smithery :
npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claudeServidor
weather.py es un servidor MCP basado en SSE que presenta herramientas basadas en las API del Servicio Meteorológico Nacional. Adaptado del ejemplo de implementación del servidor STDIO en la documentación de MCP.
De forma predeterminada, el servidor se ejecuta en 0.0.0.0:8080, pero se puede configurar con argumentos de línea de comando como:
uv run weather.py --host <your host> --port <your port>Cliente
client.py es un cliente MCP que se conecta y utiliza herramientas del servidor MCP basado en SSE. Adaptado del ejemplo de implementación del cliente STDIO en la documentación de MCP.
De forma predeterminada, el cliente se conecta al punto final SSE proporcionado en el argumento de la línea de comando como:
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