Blog · 5 min read

BaseCNPJ: commercial intelligence over 62 million companies with Metabase

A database of 62 million companies only creates value if the people who run it — and the people who consume it — can actually see it.
By · published on

BaseCNPJ is Meta Dados' proprietary enrichment and commercial intelligence platform: registration, corporate and tax data on Brazilian companies, queryable through a real-time API. The database consolidates over 62 million business establishments, built from Brazilian Federal Revenue (RFB) open data — reprocessed in a heavy monthly ingestion cycle — and combined with our own enrichment layers.

A database this size only creates value if you can see it. We needed a BI layer to answer business questions — coverage by state and economic activity, data quality and freshness, API usage per customer — without building dashboards from scratch for every new question.

The challenge

The solution

We deployed self-hosted Metabase (Docker, kept on the latest version) as the BI layer of BaseCNPJ:

Results

Questions that previously required advanced SQL — or days of development — are now answered through self-service in seconds. The sales team independently filters active companies by economic activity, region, share capital and registration date, building market segments for high-conversion outbound campaigns without opening a ticket with engineering.

The stack

PostgreSQL · Metabase (self-hosted, Docker) · Python ingestion pipelines · DigitalOcean · Brazilian Federal Revenue open data.

Why Metabase

Open source and self-hosted — full control over infrastructure and data, essential under LGPD (Brazil's data privacy law); a query builder business teams actually use; and pricing that scales with team size, not data volume.

Systems we connect here

Frequently asked questions

Why not use the API itself for reporting?

The API is built for fast transactional lookups, not heavy aggregations. Running analyses by economic activity, state and size directly on the production database would degrade response times for API consumers. That is why we split the analytical layer into a dedicated data warehouse.

Do business users need to know SQL?

No. Metabase's query builder lets them assemble segments and dashboards without writing a single line of SQL — and power users still have the SQL editor available.

Start at no cost

Want a BI layer on top of your data? Free 48-hour diagnostic.

We map your current systems, point out the biggest bottlenecks and deliver a plan prioritized by risk × effort. You leave with clarity — whether you hire Meta Dados or not.

Get my diagnostic → Chat on WhatsApp No commitment, no credit card.
We reply within 2 business hours.
←  Voltar para Blog