Skip to main content
Glama

🌤️ 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


Related MCP server: Weather Query MCP Server

🧠 ¿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.

Available Tools

1 tool
obtener-climaC

Herramienta para obtener el clima en tiempo real

Inputs: city (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it against. The single tool's purpose is clearly defined for obtaining real-time weather.

    Naming Consistency5/5

    Since there is only one tool, it inherently has perfect consistency with itself. The naming follows a clear verb-noun pattern in Spanish ('obtener-clima'), which is straightforward and predictable.

    Tool Count2/5

    A single tool is generally too few for a meaningful server scope, as it limits functionality and suggests an incomplete or overly narrow implementation. While it might suffice for a minimal weather service, it lacks the depth expected for typical MCP servers.

    Completeness2/5

    Inferred domain is weather data, but the tool surface is severely incomplete. It only provides real-time weather retrieval without supporting operations like forecasts, historical data, or location-based queries, which are common in weather APIs, leading to significant gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
      24
      1
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A weather service MCP server that provides current weather data, resource endpoints, and report prompts for any location.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides real-time weather data and latest news headlines via custom tools.
      -