# Comparador de luz y gas (CNMC) (pypi · comparador-luz-gas)

Ofertas de luz y gas en España del comparador oficial de la CNMC, ordenadas por precio.

- Trust score: 79/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-10-17

## Components

- pypi · `comparador-luz-gas`: 79/100 (this document), [markdown](https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas.md), [page](https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas)

## Channel facts

- Registry: `pypi`
- Package: `comparador-luz-gas`
- Version: `0.2.4`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-10-17.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised build step with no custom scripting around it.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to nuncaeslupus/comparador-luz-gas).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 65/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 1099 tokens (~366/item across 3 items; 3 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 3 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 3 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the Comparador de luz y gas (CNMC) MCP server?

Comparador de luz y gas (CNMC) runs locally as a PyPI package, launched with uvx comparador-luz-gas. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add nuncaeslupus-comparador-luz-gas -- uvx comparador-luz-gas
```

### Cursor

```json
{
  "mcpServers": {
    "nuncaeslupus-comparador-luz-gas": {
      "command": "uvx",
      "args": [
        "comparador-luz-gas"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "nuncaeslupus-comparador-luz-gas": {
      "command": "uvx",
      "args": [
        "comparador-luz-gas"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add nuncaeslupus-comparador-luz-gas -- uvx comparador-luz-gas
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nuncaeslupus-comparador-luz-gas": {
      "type": "local",
      "command": [
        "uvx",
        "comparador-luz-gas"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add nuncaeslupus-comparador-luz-gas --command uvx --arg comparador-luz-gas
```

### Hermes

```yaml
mcp_servers:
  nuncaeslupus-comparador-luz-gas:
    command: "uvx"
    args: ["comparador-luz-gas"]
```

### Netclaw

```json
{
  "McpServers": {
    "nuncaeslupus-comparador-luz-gas": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "comparador-luz-gas"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add nuncaeslupus-comparador-luz-gas -t stdio -c uvx -a comparador-luz-gas
```

### Other

```json
{
  "mcpServers": {
    "nuncaeslupus-comparador-luz-gas": {
      "command": "uvx",
      "args": [
        "comparador-luz-gas"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-10-16 (score 79, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-15 (score 64)

First indexed and scored.

## MCP tools (3)

### `comparar_ofertas` (~529 tokens)

Consulta el comparador oficial de la CNMC y devuelve las ofertas de luz y/o gas, de la más barata a la más cara, con un análisis a varios años (rotar de oferta, permanencias, fijo vs. tramos). Luz: `qr`, o `cp` + `consumo`; gas: `suministro` gas, `cp` + `consumo_gas`; ambas: lo de luz más `consumo_gas`. `cp`, `consumo` o `potencia` explícitos prevalecen sobre el `qr`; sin `qr`, 3,45 kW y reparto 2.0TD. Con el texto del QR no hace falta `leer_factura_qr`. Una petición HTTPS sin caché (segundos; límite 90 s); las ofertas cambian con el mercado. Euros, sin desglose de impuestos. Si falla, devuelve un error con texto JSON `{"ok": false, "error": "ArgumentoInvalido", "message": "..."}` (`ArgumentoInvalido` si falta `cp` o consumo; otro si falla la red).

Input parameters:

- `anios` (integer): horizonte del análisis a largo plazo (por defecto 3)
- `consumo` (number): consumo anual de luz en kWh
- `consumo_gas` (number): consumo anual de gas en kWh
- `cp` (string): código postal, p. ej. 28013
- `empresa` (boolean): suministro que no es vivienda
- `franjas` (array): consumo anual punta, llano y valle en kWh; por defecto se reparte con el perfil 2.0TD
- `max_ofertas` (integer): ofertas a devolver, las más baratas (por defecto 20)
- `mensual` (boolean): con qr, coste de ese periodo de facturación en vez del anual
- `potencia` (number): potencia contratada en kW (por defecto 3.45)
- `qr` (string): contenido del QR de la factura de luz, ya decodificado: la URL de comparador.cnmc.gob.es que lleva impresa, p. ej. `https://comparador.cnmc.gob.es/comparador/QRE?cp=28013&pP1=4.6&caP1=740...`
- `sin_permanencia` (boolean): excluir ofertas con permanencia
- `suministro` (string): qué comparar (por defecto luz); ambas añade las ofertas conjuntas y la alternativa de contratar por separado

Output parameters:

- `analisis` (object)
- `consulta` (object)
- `ofertas` (array)

### `leer_factura_qr` (~326 tokens)

Interpreta el texto ya decodificado del QR de una factura de luz y devuelve sus datos. `qr` es la URL de comparador.cnmc.gob.es impresa en la factura; de su query se leen `cp` (código postal, obligatorio), `pP1`/`pP2` (potencias, kW), `caP1`-`caP3` (consumo anual punta/llano/valle, kWh), `cfP1`-`cfP3` (consumo del periodo facturado) e `imp` (importe, euros); un campo numérico ausente o ilegible vale 0. Úsala para ver los datos; para comparar, pasa el QR a `comparar_ofertas`; con el archivo, `leer_factura_archivo`. Local e instantánea: sin red ni disco. Si falla, devuelve un error con texto JSON `{"ok": false, "error": "ArgumentoInvalido", "message": "..."}`: `SinQR` si no es un QR del comparador o falta `cp` (p. ej. QR de gas o de pago).

Input parameters:

- `qr` (string, required): contenido del QR de la factura de luz, ya decodificado: la URL de comparador.cnmc.gob.es que lleva impresa, p. ej. `https://comparador.cnmc.gob.es/comparador/QRE?cp=28013&pP1=4.6&caP1=740...`

Output parameters:

- `codigo_postal` (string)
- `consumo_anual` (array)
- `consumo_factura` (array)
- `importe` (number)
- `potencia_p1` (number)
- `potencia_p2` (number)

### `leer_factura_archivo` (~244 tokens)

Busca el QR del comparador en una factura de luz del disco del servidor y devuelve los mismos datos que `leer_factura_qr`. `ruta`: si termina en `.pdf` (sin distinguir mayúsculas) se rasteriza con pdftoppm y se recorren las páginas hasta dar con el QR, y se usa el primero; con cualquier otra extensión se abre como imagen (PNG, JPG...). Úsala cuando tengas el archivo y no el texto del QR. Necesita el extra `facturas`. Sin red; segundos por PDF, más con un escaneo malo. Si falla, devuelve un error con texto JSON `{"ok": false, "error": "ArgumentoInvalido", "message": "..."}`: `FileNotFoundError`, `RuntimeError` (falta el extra o pdftoppm) o `SinQR`.

Input parameters:

- `ruta` (string, required): ruta al PDF o imagen de la factura en el disco del servidor; mejor absoluta (una relativa se resuelve desde el directorio de trabajo del proceso MCP), p. ej. `/home/ana/facturas/2025-03.pdf`

Output parameters:

- `codigo_postal` (string)
- `consumo_anual` (array)
- `consumo_factura` (array)
- `importe` (number)
- `potencia_p1` (number)
- `potencia_p2` (number)

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas#diagnostics

## Score history

- 2026-10-17: 79
- 2026-10-16: 79
- 2026-10-15: 64

## Common questions

### What is the Comparador de luz y gas (CNMC) MCP server?

Comparador de luz y gas (CNMC) is an MCP server listed in the public MCP registry as io.github.nuncaeslupus/comparador-luz-gas. Ofertas de luz y gas en España del comparador oficial de la CNMC, ordenadas por precio. This page covers its PyPI package (comparador-luz-gas).

### Is the Comparador de luz y gas (CNMC) MCP server safe to use?

Comparador de luz y gas (CNMC) scores 79 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 17 October 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Comparador de luz y gas (CNMC) MCP server expose?

Comparador de luz y gas (CNMC) exposes 3 tools: comparar_ofertas, leer_factura_qr, leer_factura_archivo. Their descriptions and schemas cost roughly 1,099 tokens of context every time the server is loaded.

### Is the Comparador de luz y gas (CNMC) MCP server still maintained?

Comparador de luz y gas (CNMC) is still listed as active in the MCP registry. We last reached this channel on 17 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Comparador de luz y gas (CNMC) MCP server under?

Comparador de luz y gas (CNMC) declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- PyPI project: https://pypi.org/project/comparador-luz-gas/
- Socket report: https://socket.dev/pypi/package/comparador-luz-gas
- Repository: https://github.com/nuncaeslupus/comparador-luz-gas
- Changelog RSS feed: https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas.xml
- Changelog JSON feed: https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas.json
- HTML version of this page: https://verifymcp.io/servers/nuncaeslupus-comparador-luz-gas/comparador-luz-gas
