municipios

Brazilian municipalities (dimension)

Reference table of the 5,571 municipalities: names, IBGE territorial hierarchy, population, coordinates and a snapshot of indicators (GDP, MHDI, public finances, education, mayor elected in 2024). Use it to add names and context to any table via ibge_code.

Query via MCP ↓5,571 rows · 70 columns
One row is
one row per municipality
Key columns
ibge_code
License
MIT (municipios-br package); the underlying data is gov.br open data
Domain
Geography
Snapshot
2026-09-25

Columns

ColumnTypeDescription
ibge_codeKEYBIGINTIBGE municipality code (7 digits).
nameVARCHAROfficial municipality name.
slugVARCHARNormalized name (lowercase, no accents, hyphens), used to match names across sources.
ufVARCHARState abbreviation (UF).
uf_nameVARCHARState (UF) name.
regionVARCHARMacro-region abbreviation (N, NE, SE, S, CO).
region_nameVARCHARMacro-region name.
capitalBOOLEANTrue if the municipality is a state capital.
microrregiaoVARCHARIBGE geographic microregion (1989 division).
mesorregiaoVARCHARIBGE geographic mesoregion (1989 division).
regiao_imediataVARCHARIBGE immediate geographic region (2017 division).
regiao_intermediariaVARCHARIBGE intermediate geographic region (2017 division).
populacao_2022BIGINTResident population in the 2022 Census.
populacao_estimada_2025BIGINTIBGE population estimate for 2025.
area_km2DOUBLELand area in km².
densidade_demoDOUBLEPopulation density (inhabitants/km²).
latitudeDOUBLELatitude of the municipal seat (decimal degrees).
longitudeDOUBLELongitude of the municipal seat (decimal degrees).
dddVARCHARMain telephone area code (DDD).
cep_sedeVARCHARCEP (postal code) of the municipal seat (format 00000-000).
gentilicoVARCHARDemonym (e.g., paulistano).
biomaVARCHARPredominant biome.
sistema_costeiroBOOLEANTrue if the municipality is part of the coastal-marine system.
fuso_horarioVARCHARIANA time zone (e.g., America/Sao_Paulo).
codigo_siafiVARCHARMunicipality code in SIAFI (Treasury/Transparency Portal).
codigo_tseVARCHARMunicipality code in the TSE.
pibDOUBLEMunicipal GDP at current prices, in thousands of R$.
pib_per_capitaDOUBLEGDP per capita, in R$.
idhmDOUBLEMunicipal Human Development Index (MHDI, 0 to 1).
indice_giniDOUBLEIncome Gini index (0 to 1).
veiculosBIGINTTotal vehicle fleet in the reference year (veiculos_ano).
veiculos_anoVARCHARReference year of the fleet in veiculos.
taxa_mortalidade_infantilDOUBLEDeaths of children under 1 year per thousand live births.
estabelecimentos_saudeBIGINTNumber of health establishments.
ideb_anos_iniciais_2023DOUBLE2023 IDEB for the early years of elementary school (public schools).
ideb_anos_finais_2023DOUBLE2023 IDEB for the final years of elementary school (public schools).
matriculas_2024BIGINTBasic education enrollments in 2024.
escolas_2024BIGINTBasic education schools in 2024.
docentes_2024BIGINTBasic education teachers in 2024.
fundeb_2024DOUBLEFundeb transfers in 2024 (R$).
fpm_2024DOUBLEMunicipal Participation Fund (FPM) transfers in 2024 (R$).
receita_total_2023DOUBLETotal municipal budget revenue in 2023 (R$).
receita_iptu_2023DOUBLEIPTU (property tax) collection in 2023 (R$).
receita_iss_2023DOUBLEISS (services tax) collection in 2023 (R$).
despesa_total_2023DOUBLETotal budget spending in 2023 (R$).
despesa_pessoal_2023DOUBLEPersonnel spending in 2023 (R$).
receita_per_capita_2023DOUBLETotal 2023 revenue per inhabitant (R$).
taxa_ocupacaoDOUBLEEmployed persons relative to population (%).
rendimento_medioDOUBLEAverage income (currently no values in this version).
taxa_alfabetizacaoDOUBLELiteracy rate (%).
populacao_urbana_pctDOUBLEUrban population (%) — currently no values in this version.
agua_atendimento_pctDOUBLEWater service coverage (%) — no values here; use indicadores_serie (snis.IN055 / sinisa.IAG0001).
esgoto_atendimento_pctDOUBLESewage collection coverage (%) — no values here; use indicadores_serie (snis.IN056).
esgoto_tratamento_pctDOUBLESewage treatment (%) — no values here; use indicadores_serie (snis.IN016).
perda_agua_pctDOUBLEWater distribution losses (%) — no values here; use indicadores_serie (snis.IN049).
prefeitoVARCHARMayor's name (from the source package's records).
prefeito_eleito_2024VARCHARLegal name of the mayor elected in 2024 (TSE).
prefeito_nome_urnaVARCHARBallot name of the mayor elected in 2024.
prefeito_partidoVARCHARParty of the mayor elected in 2024.
prefeito_coligacaoVARCHARCoalition of the mayor elected in 2024.
prefeito_generoVARCHARDeclared gender of the mayor-elect (TSE).
prefeito_escolaridadeVARCHARDeclared education level of the mayor-elect (TSE).
prefeito_cor_racaVARCHARDeclared color/race of the mayor-elect (TSE).
vice_prefeito_2024VARCHARName of the deputy mayor elected in 2024.
vice_partidoVARCHARParty of the deputy mayor elected in 2024.
vereadores_eleitosINTEGERCity councilors elected in 2024.
vagas_vereadoresINTEGERNumber of seats on the city council.
has_flagBOOLEANTrue if the source package has the municipality's flag.
has_iconsBOOLEANTrue if the source package has icons for the municipality.
flag_sourceVARCHARSource of the flag image (e.g., wikidata).

Queries that read this table

  • Resolve municipality. Name (accent- and case-insensitive, partial) → ibge_code, state (UF), region and population. Use it to disambiguate municipalities with the same name.

  • Municipality profile. Snapshot of a municipality: population, area, GDP, MHDI, Gini, health, education (IDEB, enrollments), municipal finances, sanitation and mayor elected in 2024.

  • Indicator time series. Values of an indicator (indicador_id from indicadores_buscar) for 1 to 10 municipalities over time, with unit and source.

  • ranking3 credits

    Municipality ranking by indicator. Top N (<= 100) municipalities by an indicator in a period (default: the most recent), nationwide, in a state (UF) or region.

  • comparar3 credits

    Compare municipalities across several indicators. Up to 10 municipalities × up to 10 indicators; by default the most recent value of each pair (or of a fixed period).

  • Municipality vs. peers of the same size. Compares a municipality with an automatic group of up to 30 peers: same state (UF) (or same region, if the state has fewer than 10) with population between -30% and +30% (if there are not 10, the 30 closest in population in the region). For each indicator (up to 5) it returns the municipality's value, median, p25, p75, the municipality's percentile among its peers and only the top 5/bottom 5 peers — never the full list.

  • Filter municipalities by criteria (screener). Finds municipalities that meet up to 5 criteria {indicador_id, operador, valor} at once (e.g. population >= 100000 and bf.beneficiarios < 5000), optionally in a state (UF) or region, sorted by an indicator. "populacao" = 2025 estimate (2022 Census if missing). Default period: the most recent of each indicator; a municipality without data for an indicator fails that criterion. At most 50 rows and 1 page (total_encontrados says how many match); each row counts double toward the daily row limit.

  • Ranking of an indicator's change between two periods. Municipalities with the largest increase or largest decrease in an indicator between periodo_inicio and periodo_fim, with absolute and percentage change; sorts by the chosen measure (percentage ignores zero/negative bases). Top N <= 50, nationwide, in a state (UF) or region; populacao_min excludes very small municipalities.

  • Municipality education (basic and higher). Education in a municipality: INEP School Census (schools by network and location, enrollments by stage, teachers, student/teacher ratio, % of schools with internet, library, labs etc.), Higher Education Census (HEIs, programs, enrollments, new entrants, graduates) and IDEB 2023 (early/final years). Default year: the most recent of each source; includes the previous year's value for comparison. Gap: the lake only has the 2023 IDEB (no series, no SAEB, no pass/dropout rates).

  • Municipality health (facilities and health plans). A municipality's health network: CNES facilities (total and by type — UBS, hospitals, emergency care, CAPS, clinics…) per 10,000 inhabitants, and health plan beneficiaries (ANS) with coverage relative to the population. Default period: the most recent of each source (uses the last <= periodo). Gap: beds (CNES-LT), professionals, SUS production and the public/private split of facilities are NOT in the lake.

  • Social programs in the municipality (Bolsa Família, BPC, Pé-de-Meia). Bolsa Família, BPC/LOAS and Pé-de-Meia in a municipality: beneficiaries (last month and monthly average), total amount paid, monthly average, per capita amount and beneficiaries per 1,000 inhabitants, plus a total row. Default: the last 12 available months of each program. Pé-de-Meia counts payments (a student may receive more than one in a month).

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

municipio_resolver

What is the IBGE code of Santos, in São Paulo state?