comex_municipio

Foreign trade by municipality (Comex Stat)

Monthly exports and imports by municipality of the company's tax domicile, product (SH4) and partner country, since 2020. Municipal database of Comex Stat (MDIC/Secex).

Query via MCP ↓18,082,588 rows · 9 columns
One row is
one row per (ano, mes, ibge_code, fluxo, sh4, pais)
Key columns
ano, mes, ibge_code, fluxo, sh4, pais
License
gov.br open data (recorded as CC0 in the project's source catalog)
Domain
Economy
Snapshot
2026-09-25

Columns

ColumnTypeDescription
anoKEYBIGINTYear.
mesKEYBIGINTMonth (1–12).
ibge_codeKEYBIGINTIBGE municipality code (7 digits). Exceptions: 9300000 = abroad (uf EX) and 9999999 = not declared (uf ND).
ufVARCHARState abbreviation (UF). EX = abroad, ND = not declared.
fluxoKEYVARCHAREXP (export) or IMP (import).
sh4KEYVARCHAR4-digit Harmonized System heading (product category).
paisKEYVARCHARPartner country code in the Comex Stat country table (CO_PAIS).
kg_liquidoBIGINTNet weight in kg.
valor_fobBIGINTFOB value in US dollars (US$), as published by Comex Stat.

Queries that read this table

  • Municipality foreign trade. A municipality's exports or imports (Comex Stat), aggregated by year, product (SH4) or destination/origin country, in US$ FOB and kg.

Query via MCP

The lake is served through curated queries. Connect your agent to the MCP server and ask — it finds the right query on its own. All you need is an API key — new keys come with 50 free credits (pricing).

comex_municipio

How much did Santos export per year?