Skip to main content
Glama
MCP Weather Server

MCP Weather Server

by FacuPVe

Introducción a los MCP

En este proyecto se han seguido los pasos del vídeo de Midudev: https://www.youtube.com/watch?v=wnHczxwukYY junto con otra documentación educativa para aprender sobre los MCP (Model Context Protocol) y crear mi primer MCP.

Descripción

Se han hecho pruebas con Claude para comprobar el funcionamiento de los MCP con los archivos de mi equipo y una base de datos postgress junto con la creación de un MCP personalizado.

Herramientas/tecnologías utilizadas:

Related MCP server: My MCP Server

Creación del proyecto

mkdir mcp-weather
cd mcp-weather
pnpm init # Creará el package.json

A partir de este punto quedaría crear el archivo main.ts y seguir los pasos del video.

Dependencias

pnpm add @modelcontextprotocol/sdk zod
pnpm add -D tsx

Estructura del proyecto

  • main.ts: Código fuente del servidor MCP.

  • package.json: Dependencias y scripts del proyecto.

  • .gitignore: Archivos y carpetas ignorados por git.

  • pnpm-lock.yaml: Archivo de bloqueo de dependencias (ignorado en git).

  • README.md: Documentación del proyecto.

Available Tools

1 tool
fetch-weatherC

Tool to fetch the weather of a city

Inputs: city (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'fetch-weather' has a clearly distinct and unambiguous purpose.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'fetch-weather' follows a clear verb-noun pattern.

    Tool Count2/5

    A single tool is too few for a weather server's apparent scope, which typically involves multiple operations like forecasts, alerts, or historical data. This minimal set feels thin and incomplete for the domain.

    Completeness2/5

    The tool surface is severely incomplete for a weather domain. It only provides current weather for a city, missing essential operations like forecasts, alerts, multi-location queries, or historical data, which will cause agent failures in broader tasks.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A customizable Model Context Protocol server built with mcp-framework that enables Claude to access external tools and capabilities through a standardized interface.
      -
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      A beginner MCP server that enables Claude to read local text, CSV, and Markdown files. Built as a learning project to understand how to connect AI to local file systems using the MCP protocol.
      ISC