Skip to main content
Glama
fernandezAlex

mcp-weather-tool

README.md
# 🌤️ MCP Weather Tool

Un servidor MCP (Model Context Protocol) simple que permite consultar el clima de cualquier ciudad del mundo.

## ✨ Características

- 🔍 **Búsqueda por ciudad**: Encuentra automáticamente las coordenadas de cualquier ciudad
- 🌡️ **Información del clima**: Temperatura, precipitación, estado del día y lluvia
- 🚀 **Integración con Claude**: Funciona perfectamente en Claude Desktop
- 📍 **Coordenadas precisas**: Usa APIs de geocoding y meteorología confiables

## 🛠️ Instalación

1. **Clona el repositorio:**
```bash
git clone https://github.com/fernandezAlex/mcp-weather-tool.git
cd mcp-weather-tool
```

2. **Instala las dependencias:**
```bash
npm install
```

3. **Compila el proyecto:**
```bash
npx tsc
```

## ⚙️ Configuración en Claude Desktop

Añade esto a tu `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "mcp-test": {
      "command": "node",
      "args": ["/ruta/completa/a/mcp-weather-tool/dist/main.js"]
    }
  }
}
```

## 🚀 Uso

1. **Reinicia Claude Desktop**
2. **Usa la herramienta**: "¿Cuál es el clima en Madrid?"
3. **Disfruta** de la información meteorológica en tiempo real

## 📡 APIs Utilizadas

- **Geocoding**: [Open-Meteo Geocoding API](https://open-meteo.com/en/docs/geocoding-api)
- **Weather**: [Open-Meteo Weather API](https://open-meteo.com/en/docs)

## 🏗️ Estructura del Proyecto

```
mcp-weather-tool/
├── main.ts          # Código fuente del servidor MCP
├── dist/            # Archivos compilados
├── package.json     # Dependencias del proyecto
└── README.md        # Este archivo
```

## 🔧 Tecnologías

- **TypeScript** - Lenguaje principal
- **Node.js** - Runtime de JavaScript
- **MCP SDK** - Protocolo de comunicación con Claude
- **Fetch API** - Llamadas HTTP a APIs externas

## 👨‍💻 Autor

**Alex Fernández** - Frontend Developer & Designer

- 🌐 [GitHub](https://github.com/fernandezAlex)
- 🔗 [LinkedIn](https://linkedin.com/in/alexfernandezarroyo)
- 🌍 [Portfolio](https://afacreations.com)

## 📝 Licencia

MIT License - Libre para uso personal y comercial

---

**Desarrollado con ❤️ por [@fernandezAlex](https://github.com/fernandezAlex) para la comunidad de Claude**

TDQS

B3.2/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no ambiguity or overlap. The purpose is clearly defined as fetching weather for a city.

Naming Consistency5/5

The single tool name 'fetch-weather' follows a consistent verb-noun pattern, which is predictable and clear.

Tool Count2/5

A single tool is too few for a weather service, which typically requires multiple operations such as current conditions, forecasts, and historical data. The apparent scope of a weather tool is broader than what one fetch operation can cover.

Completeness3/5

The tool provides basic weather fetching but lacks common weather operations like forecasts or historical data. This leaves noticeable gaps in the tool surface for a weather domain.

Maintenance

ActivityInactive
ResponsivenessNo issues