Weather MCP Server
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 Serverwhat'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.
🌤️ Weather MCP Server (Tutorial)
Este repositorio contiene el código fuente del servidor MCP (Model Context Protocol) desarrollado en el tutorial de YouTube. Este servidor permite conectar Claude Desktop con la API pública de Open-Meteo para obtener datos climáticos en tiempo real.
📺 VER EL TUTORIAL COMPLETO EN YOUTUBE
🚀 Características
Servidor MCP Básico: Implementación limpia usando el SDK oficial de TypeScript.
Herramienta (Tool) personalizada:
get-weatherque acepta ciudad y código de país.Integración API Real: Conexión con Open-Meteo (sin necesidad de API Key).
Validación de datos: Uso de Zod para validar esquemas.
Related MCP server: weather
🛠️ Requisitos
Node.js (v18 o superior)
Claude Desktop App instalado
📦 Instalación
Clona este repositorio:
git clone [https://github.com/acenaga/mcpWeather.git](https://github.com/acenaga/mcpWeather.git) cd mcpWeather
2. Instala las dependencias:
```bash
npm install⚙️ Configuración en Claude Desktop
Para usar este servidor en Claude, debes editar tu archivo de configuración.
Abre el archivo de configuración de Claude: MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
Agrega tu servidor a la lista mcpServers. Asegúrate de poner la ruta absoluta a tu carpeta build/index.js.
{
"mcpServers": {
"weather-server": {
"command": "node",
"args": [
"/RUTA/ABSOLUTA/HACIA/TU/PROYECTO/build/index.js"
]
}
}
}Reinicia Claude Desktop. Deberías ver un icono de "enchufe" 🔌 indicando que el servidor está conectado.
🐛 Debugging (MCP Inspector)
Si quieres probar el servidor sin usar Claude, puedes usar el Inspector oficial de MCP:
npx @modelcontextprotocol/inspector node build/index.jsEsto abrirá una interfaz web donde puedes probar las herramientas manualmente.
🤝 Contribuir
¡Las PRs son bienvenidas! Si tienes ideas para mejorar este ejemplo o agregar más herramientas climáticas, siéntete libre de contribuir.
Desarrollado por Carlos Ferrer "Acenaga" Si este código te sirvió, considera dejar una ⭐ en el repo y suscribirte al canal.
This server cannot be deployed
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Real-time weather conditions and multi-day forecasts via Open-Meteo — free, no API key required
Get current weather for any city and create images from your prompts. Streamline planning, reports…
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to query real-time weather information, forecasts, and history via the OpenWeatherMap API.5 npm98MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to fetch real-time weather data for any city using the OpenWeatherMap API.5 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables users to get weather forecasts for any city using the Open-Meteo API through natural language in Claude Desktop or VS Code.-
- FlicenseNot gradedqualityDmaintenanceEnables real-time weather queries via Claude Desktop using OpenWeatherMap API, providing current conditions and 24-hour forecasts for any city.15 npm-