MCP-WEATHER
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., "@MCP-WEATHERwhat's the weather in Tokyo?"
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 Weather Server
Servidor MCP (Model Context Protocol) para obtener información del clima usando la integración de Vercel.
🚀 Características
Herramienta
fetch_weather: Obtiene información del clima para cualquier ciudadIntegración con Vercel: Despliegue optimizado usando Vercel Functions
API de Open-Meteo: Datos meteorológicos gratuitos y precisos
Respuestas en español: Información del clima en español
Related MCP server: Weather MCP Server
🛠️ Tecnologías
Next.js 14 - Framework de React
MCP Handler - Servidor MCP
Open-Meteo API - API meteorológica
Vercel - Plataforma de despliegue
📦 Instalación
# Clonar el repositorio
git clone <tu-repositorio>
cd MCPPOC
# Instalar dependencias
pnpm install
# Ejecutar en desarrollo
pnpm dev🚀 Despliegue en Vercel
1. Preparar el proyecto
Asegúrate de que tu proyecto esté en un repositorio de GitHub, GitLab o Bitbucket.
2. Conectar con Vercel
Ve a vercel.com y crea una cuenta
Haz clic en "New Project"
Importa tu repositorio
Vercel detectará automáticamente que es un proyecto Next.js
3. Configurar variables de entorno (opcional)
Si necesitas configurar variables de entorno:
Ve a tu proyecto en Vercel
Navega a Settings > Environment Variables
Agrega las variables necesarias
4. Desplegar
Vercel desplegará automáticamente tu proyecto. Obtendrás una URL como:
https://tu-proyecto.vercel.app
🔧 Configuración del Cliente MCP
Para Cursor
Crea el archivo .cursor/mcp.json en tu proyecto:
{
"mcpServers": {
"weather-server": {
"url": "https://tu-proyecto.vercel.app/api/mcp"
}
}
}Para otros clientes MCP
Usa la URL de tu servidor MCP desplegado:
https://tu-proyecto.vercel.app/api/mcp
🧪 Probar localmente
# Ejecutar el servidor de desarrollo
pnpm dev
# En otra terminal, usar el inspector MCP
npx @modelcontextprotocol/inspector@latest http://localhost:3000Luego abre http://127.0.0.1:6274 para usar el inspector.
📋 Herramientas disponibles
fetch_weather
Obtiene información del clima para una ciudad específica.
Parámetros:
city(string): Nombre de la ciudad
Ejemplo de uso:
// En Cursor o cualquier cliente MCP
fetch_weather({ city: "Madrid" });Respuesta:
🌤️ **Clima en Madrid, España**
🌡️ **Temperatura:** 22°C
🌡️ **Sensación térmica:** 24°C
💧 **Humedad:** 65%
🌬️ **Velocidad del viento:** 12 km/h
☁️ **Condición:** Cielo despejado
*Información proporcionada por Open-Meteo*🏗️ Estructura del proyecto
MCPPOC/
├── app/
│ ├── api/
│ │ └── mcp/
│ │ └── route.ts # Endpoint MCP
│ ├── layout.tsx # Layout principal
│ └── page.tsx # Página principal
├── package.json
├── next.config.js
├── tsconfig.json
└── README.md🔍 Troubleshooting
Error de conexión
Verifica que la URL del servidor MCP sea correcta
Asegúrate de que el proyecto esté desplegado en Vercel
Error de ciudad no encontrada
Verifica el nombre de la ciudad
Usa nombres en inglés para mejor compatibilidad
Error de red
Verifica tu conexión a internet
Las APIs de Open-Meteo son gratuitas y no requieren API key
📄 Licencia
MIT
🤝 Contribuir
Fork el proyecto
Crea una rama para tu feature (
git checkout -b feature/AmazingFeature)Commit tus cambios (
git commit -m 'Add some AmazingFeature')Push a la rama (
git push origin feature/AmazingFeature)Abre un Pull Request
📞 Soporte
Si tienes problemas o preguntas, abre un issue en el repositorio.
This server cannot be deployed
Maintenance
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Real-time weather conditions and multi-day forecasts via Open-Meteo — free, no API key required
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceFetches current weather information for any city using the Open-Meteo API through a simple MCP tool interface.1,020 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather updates and city geocoding by integrating the Nominatim and Open-Meteo APIs. It enables users to retrieve current weather conditions for any location through natural language queries in MCP-compatible clients.15 npm-
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server that provides current weather and forecasts for any city using the free Open-Meteo API, no API key required.5 npm-
- AlicenseNot gradedqualityCmaintenanceMCP server providing weather data via the Open-Meteo API, including geocoding, current conditions, daily and hourly forecasts, and city lookup. No API key required, with support for multiple units and transport types.1MIT