MCP-WEATHER

MCP-WEATHER

Provides weather information for any city using the Open-Meteo API, deployed via Vercel for easy integration with MCP clients.

Category
Visit Server

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

📦 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

  1. Ve a vercel.com y crea una cuenta
  2. Haz clic en "New Project"
  3. Importa tu repositorio
  4. 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

  1. Fork el proyecto
  2. Crea una rama para tu feature (git checkout -b feature/AmazingFeature)
  3. Commit tus cambios (git commit -m 'Add some AmazingFeature')
  4. Push a la rama (git push origin feature/AmazingFeature)
  5. Abre un Pull Request

📞 Soporte

Si tienes problemas o preguntas, abre un issue en el repositorio.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured