@pipeworx/paraguay-dnit-ruc

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/paraguay-dnit-ruc’s. Install: one-click buttons

Connect to just the @pipeworx/paraguay-dnit-ruc pack

https://gateway.pipeworx.io/paraguay-dnit-ruc/mcp — only @pipeworx/paraguay-dnit-ruc’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 2

Paraguay’s DNIT (tax authority) RUC list for companies: every legal-entity RUC (8 digits, prefix 80) with its tax id and check digit, registered name, status and previous tax id (the list’s “old code”). About 176k company RUCs as of the 2026-11-01 edition.

latam-validate checks RUC format only; pe_ruc covers Peru. This pack answers whether a Paraguayan company RUC is in the DNIT list and what state it is in.

Tools

  • py_ruc(ruc) — look up one company. Accepts 80000030, 80000030-7 or 800000307. Returns tax_id, check_digit, check_digit_valid, name, status (+ English gloss, is_active), previous_tax_id (null when the list has none), data_as_of and source. A wrong check digit answers found:false, reason:check_digit_mismatch with the expected digit. An absent company RUC answers not_in_register, never an empty object.
  • py_ruc_search(name, active_only?, limit?) — accent-insensitive name search (every word of 3+ letters must appear), active registrations first.

Individuals are not included, and what that answer means

The list also carries about 1.85M individuals (RUCs below 80000000), roughly 91% of its rows. Their names are personal data and no ruling covers serving them, so they are not stored, not looked up and not searchable; the loader drops those rows before writing. py_ruc on a personal RUC answers found:false, reason:natural_person_not_covered from the number alone, without reading the database. That is “not covered”, not “not found”: it says nothing about whether the RUC exists. Peru’s ruling is not borrowed; this is the default for personal data.

Auth

Keyless. The tools work only through the Pipeworx gateway (the list lives in a gateway-side database); a standalone install returns a loud StoreUnavailableError, never an empty result.

Check digit

DNIT modulus 11: weights 2, 3, 4, … from the rightmost digit of the RUC (wrapping after 11); remainder r = sum mod 11; digit = r > 1 ? 11 - r : 0. Verified 2026-12-02 against the published digit of every well-formed row of the 2026-11-01 list: 2,027,700 of 2,027,700 match (the 14 that did not are malformed lines, not algorithm misses).

Data source & reuse terms

  • DNIT, Paraguay, “Listado de RUC con sus equivalencias”: ten bulk files ruc0.zip to ruc9.zip, each stamped “Actualizado al D-M-YY” on the download page. data_as_of is the oldest of the ten stamps; the per-file stamps are kept in py_meta. Fetch mechanics live only in scripts/paraguay-dnit-ruc/.
  • Reuse terms: none are published. The download page (read 2026-12-02) carries no licence, terms-of-use or redistribution statement. It is Paraguayan public tax-register data served to anyone without credentials, so the companies are served, flagged here as no explicit reuse grant.
  • There is no per-RUC live endpoint: the only public route is these bulk files.

Budget (written, per the sourcing rule)

  • Rows: 176,179 companies kept of 2,027,714 read (1,851,533 individuals dropped, 2 malformed company lines skipped; the loader fails above 50 malformed company lines).
  • Bytes: about 52 MB in the local SQLite including the trigram name index; D1 storage of the same order (tens of MB). Download per refresh: 10 files, about 43 MB.
  • Refresh cadence: monthly (DNIT republishes monthly). One refresh writes about 176k rows plus index rows.
  • Expected monthly cost: effectively zero. It sits in the existing pipeworx-pe-sunat-ruc D1 database (binding PE_SUNAT_DB, shared with peru-sunat-ruc; every object here is prefixed py_), so there is no new database and no new gateway binding. Storage and row writes are far inside D1’s included amounts, well under the 25 USD a month and 50 USD one-time lines.

Refresh

bash scripts/paraguay-dnit-ruc/refresh.sh build scrapes the DNIT page for the current zip links (they change with every publication), downloads the ten files, decodes ISO-8859-1, keeps only prefix-80 rows and builds a local SQLite plus D1 import chunks without writing remotely. refresh.sh load then drops and recreates only the py_ tables in the shared D1 database and fills the FTS index; verify --self-test proves the completeness gate can go red. Load has not been run (no production data written by the build session).

Tools

  • py_ruc — Look up a Paraguayan company by RUC (individuals not included) in the DNIT list.
  • py_ruc_search — Search Paraguayan companies by name in the DNIT RUC list.

Tools

  • py_ruc — Look up a Paraguayan company by RUC (individuals not included) in the DNIT list.
  • py_ruc_search — Search Paraguayan companies by name in the DNIT RUC list.

Regenerated from source · build December 4, 2026