Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

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.

Available components

79 Trust /100

Last scanned (4 hours ago)

Scores higher than 79% of PyPI servers

Category Finance and Payments

Trust breakdown (7 categories)

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. How we score → Why this is hard to score →

Supply Chain Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • Runs hatchling.build at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
  • No production dependencies, so there is no dependency health to assess. View diagnostics → Pass
Provenance & Transparency97
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to nuncaeslupus/comparador-luz-gas). View diagnostics → Pass
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 1 days ago).Pass
  • Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability65
  • AI-judged instruction clarity (excellent).Pass
  • 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. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
  • Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • We read all 3 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
  • An AI judge read all 3 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass

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.

Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 16 Oct 26 +15
    • Malware scan: unverified → pass ▲ security
  • 15 Oct 26 64

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 17 Oct 2026 · Analysed pypi/comparador-luz-gas@0.2.4

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem pypi
Reason Verified
Discovered via Registry attestation endpoint
Source repo nuncaeslupus/comparador-luz-gas
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/nuncaeslupus/comparador-luz-gas/.github/workflows/release.yml@refs/heads/main
Rekor log index 3268231739
Predicate type PyPI publish attestation https://docs.pypi.org/attestations/publish/v1
Subject digest sha256:3fbce5a6498129eb28e877a349a2614109abff6185d8e128e68aaf7300771dbb

Background: How many MCP packages publish verified provenance →

Install scripts 1 script
Hook Tier Command
build_backend allowlisted hatchling.build

Background: Why install scripts are a supply-chain risk →

Dependencies 0 packages
Packages resolved 0
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 3 exposed · ~1,099 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
comparar_ofertas ~529

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).

NameTypeReqDescription
aniosinteger–horizonte del análisis a largo plazo (por defecto 3)
consumonumber–consumo anual de luz en kWh
consumo_gasnumber–consumo anual de gas en kWh
cpstring–código postal, p. ej. 28013
empresaboolean–suministro que no es vivienda
franjasarray–consumo anual punta, llano y valle en kWh; por defecto se reparte con el perfil 2.0TD
max_ofertasinteger–ofertas a devolver, las más baratas (por defecto 20)
mensualboolean–con qr, coste de ese periodo de facturación en vez del anual
potencianumber–potencia contratada en kW (por defecto 3.45)
qrstring–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_permanenciaboolean–excluir ofertas con permanencia
suministrostring–qué comparar (por defecto luz); ambas añade las ofertas conjuntas y la alternativa de contratar por separado
NameTypeReqDescription
analisisobjectyes–
consultaobjectyes–
ofertasarrayyes–

No examples provided.

leer_factura_archivo ~244

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`.

NameTypeReqDescription
rutastringyesruta 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`
NameTypeReqDescription
codigo_postalstringyes–
consumo_anualarrayyes–
consumo_facturaarray––
importenumber––
potencia_p1number––
potencia_p2number––

No examples provided.

leer_factura_qr ~326

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).

NameTypeReqDescription
qrstringyescontenido 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...`
NameTypeReqDescription
codigo_postalstringyes–
consumo_anualarrayyes–
consumo_facturaarray––
importenumber––
potencia_p1number––
potencia_p2number––

No examples provided.

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.

pypi · comparador-luz-gas

# add to Claude Code
claude mcp add nuncaeslupus-comparador-luz-gas -- uvx comparador-luz-gas
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.