MCP-WEATHER
Provides weather information for any city using the Open-Meteo API, deployed via Vercel for easy integration with MCP clients.
README
🌤️ 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 ciudad - Integració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
🛠️ 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:3000
Luego 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.