Weather MCP Server
The server runs on Node.js as its runtime environment, with v18+ recommended.
Supported as an alternative package manager for dependency installation.
Recommended as the primary package manager for installing dependencies.
The MCP server is built using TypeScript for type safety and modern JavaScript features.
Supported as an alternative package manager for dependency installation.
Used for validation of schema parameters for the weather tool, ensuring proper data typing and validation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Server what's the weather like in Tokyo today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-poc
Proyecto de prueba de concepto (POC) para un servidor MCP (Model Context Protocol) usando TypeScript y el SDK oficial.
Descripción
Este proyecto implementa un servidor MCP sencillo que expone una herramienta para obtener el clima actual de una ciudad utilizando la API de Open-Meteo. El servidor se comunica a través de stdin/stdout, lo que lo hace ideal para integraciones o pruebas automatizadas.
Related MCP server: mcp-poc
Requisitos
Node.js (recomendado v18+)
pnpm (o npm/yarn)
Instalación
pnpm install
# o
npm install
# o
yarn installUso
Para iniciar el servidor:
pnpm start
# o
node main.tsEl servidor expondrá una herramienta llamada get-weather que recibe el nombre de una ciudad y retorna información meteorológica actual.
Dependencias principales
@modelcontextprotocol/sdk: SDK oficial para implementar servidores MCP.zod: Validación de esquemas para los parámetros de las herramientas.
Estructura principal
main.ts: Implementación del servidor MCP y la herramienta de clima..gitignore: Configuración para ignorar archivos y carpetas comunes en proyectos Node.js.
Para poder probar el servidor MCP con el inspector, se puede usar el siguiente comando:
npx @modelcontextprotocol/inspector npx -y tsx main.tsPara agregar el mcp dentro del IDE, hay que seguir el siguiente formato json:
{
"mcpServers": {
"demo":{
"command": "npx",
"args": [
"-y",
"tsx",
"<path_to>/mcp-poc/main.ts"
]
}
}
}Available Tools
1 toolget-weatherC
Tool to fetch the weather for a given city
Inputs: city (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.
A single tool inherently has consistent naming, as there are no other tools to compare it against. The name 'get-weather' follows a clear verb-noun pattern.
A single tool is too few for a weather server's typical scope, which might include forecasts, historical data, or multiple locations. This feels thin and limits functionality.
The tool surface is severely incomplete for a weather domain. It only fetches current weather for a city, missing essential operations like forecasts, alerts, or multi-location queries, which will cause agent failures.
Maintenance
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
Related MCP Servers
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.1-
- FlicenseNot gradedqualityDmaintenanceA proof-of-concept MCP server that provides weather information using the Open-Meteo API, with tools for greeting, getting weather by coordinates, and by location name.-
- AlicenseAqualityDmaintenanceMCP server that provides current weather for any city using Open-Meteo APIs. It exposes a single tool 'get_weather' returning temperature, humidity, wind, and other weather data.112 npmMIT
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that provides current weather and forecasts for any city using the free Open-Meteo API, no API key required.9 npm-