Skip to main content
Glama

ibge_sidra

Query Brazilian statistical data from IBGE's SIDRA system including population estimates, census results, GDP, unemployment rates, and income data across national, regional, state, and municipal levels.

Instructions

Queries SIDRA tables (IBGE's Automatic Recovery System).

SIDRA contains data from IBGE surveys like Census, PNAD, GDP, etc.

Common tables:

  • 6579: Population estimates (annual)

  • 9514: Census 2022 population

  • 200: Census population (1970-2010)

  • 4714: Unemployment rate (PNAD Contínua)

  • 6381: Average income (PNAD Contínua)

  • 6706: GDP at current prices

  • 5938: GDP per capita

Territorial levels:

  • 1: Brazil

  • 2: Region (North, Northeast, etc.)

  • 3: State (UF)

  • 6: Municipality

  • 7: Metropolitan Region

Examples:

  • Brazil population 2023: tabela="6579", periodos="2023"

  • Population by state: tabela="6579", nivel_territorial="3"

  • Census 2022 by municipality: tabela="9514", nivel_territorial="6", localidades="3550308"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabelaYesCódigo da tabela SIDRA (ex: 6579 para estimativas de população, 9514 para censo 2022)
variaveisNoIDs das variáveis separados por vírgula, ou 'allxp' para todasallxp
nivel_territorialNoNível territorial (código N sem o prefixo): 1=Brasil, 2=Grande Região, 3=UF, 6=Município, 7=Região Metropolitana, 8=Mesorregião, 9=Microrregião, 10=Distrito, 11=Subdistrito, 13=RM e RIDE, 14=Região Integrada de Desenvolvimento, 15=Aglomeração Urbana, 17=Região Geográfica Imediata, 18=Região Geográfica Intermediária, 105=Macrorregião de Saúde, 106=Região de Saúde, 114=Aglomerado Subnormal, 127=Amazônia Legal, 128=Semiárido1
localidadesNoCódigos das localidades separados por vírgula, ou 'all' para todasall
periodosNoPeríodos: 'last' para último, 'all' para todos, ou anos específicos (ex: 2020,2021,2022)last
classificacoesNoClassificações no formato 'id[categorias]' (ex: '2[6794]' para sexo masculino)
formatoNoFormato de saída: 'json' para dados brutos ou 'tabela' para formato legíveltabela

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SidneyBissoli/ibge-br-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server