Skip to main content
Glama

Said MCP

by JunLovin

🌤️ Said MCP - Servicio de Clima en Tiempo Real

Said MCP es una implementación sencilla pero poderosa de un servidor MCP (Model Context Protocol), diseñada para proporcionar información del clima en tiempo real a través de una herramienta accesible y extensible.


🚀 Características

  • 🔧 Servidor MCP personalizado con @modelcontextprotocol/sdk
  • 📍 Geolocalización precisa mediante la API de Open-Meteo
  • 🌡️ Datos meteorológicos actuales: temperatura, lluvia y precipitación
  • Interfaz sencilla y eficiente basada en transporte por stdio

🧠 ¿Cómo funciona?

El servidor expone una herramienta llamada obtener-clima que permite consultar el estado del tiempo para cualquier ciudad, resolviendo la ubicación con coordenadas geográficas y consultando datos meteorológicos actualizados.

🔍 Flujo de ejecución

  1. 🏙️ Se recibe el nombre de una ciudad.
  2. 🌍 Se obtiene su latitud y longitud a través de la API de geocodificación de Open-Meteo.
  3. ☁️ Se consultan los datos climáticos actuales.
  4. 📝 Se devuelve la información en un formato estructurado.

📦 Estructura del Proyecto

. ├── .gitignore ├── main.ts # Archivo principal del servidor MCP ├── package.json # Dependencias y metadatos del proyecto ├── package-lock.json # Control de versiones de dependencias └── README.md # Este archivo 📝

🛠️ Requisitos

  • NodeJS >= 18
  • TypeScript
  • Acceso a internet (Para llamadas a las APIs)

🧪 Ejemplo de Uso

server.tool( 'obtener-clima', 'Herramienta para obtener el clima en tiempo real', { city: z.string().describe('City name') }, async ({ city }) => { // Consulta a la API y retorno de datos... } )

🔌 Integración

El servidor se conecta usando StdioServerTransport, permitiendo una integración sencilla con sistemas compatibles con MCP.

const transport = new StdioServerTransport() await server.connect(transport)

--

📜 Licencia

MIT License


✨ Autor

Desarrollado con pasión por Said Ruiz.

-
security - not tested
F
license - not found
-
quality - not tested

A MCP server that provides real-time weather information for any city through a simple tool that resolves geographic coordinates and fetches current weather data.

  1. 🚀 Características
    1. 🧠 ¿Cómo funciona?
      1. 🔍 Flujo de ejecución
    2. 📦 Estructura del Proyecto
      1. 🛠️ Requisitos
        1. 🧪 Ejemplo de Uso
          1. 🔌 Integración
            1. 📜 Licencia
              1. ✨ Autor

                Related MCP Servers

                • 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
                • -
                  security
                  F
                  license
                  -
                  quality
                  A simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.
                  Last updated -
                  TypeScript

                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/JunLovin/weather-mcp'

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