Server data from the Official MCP Registry
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
Remote endpoints: streamable-http: https://ibge.sidneybissoli.com/mcp
IBGE Brasil MCP Server is a well-structured, security-conscious implementation providing read-only access to Brazilian public data APIs. All tools are properly authenticated via Zod validation, implement proper error handling, and carry appropriate OpenWorld/ReadOnly/Idempotent annotations. No credential exfiltration, backdoors, or dangerous patterns detected. Minor code quality observations around broad error catching do not materially impact security given the server's read-only, API-proxy nature and category-appropriate permissions. Supply chain analysis found 2 known vulnerabilities in dependencies (1 critical, 1 high severity). Package verification found 1 issue.
5 files analyzed Β· 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Available as Local & Remote
This plugin can run on your machine or connect to a hosted endpoint. during install.
From the project's GitHub README.
Live, exact Brazilian public data for your AI assistant β with provenance, not guesswork.
Ask an LLM "what was Belo Horizonte's population in the 2022 Census?" and you get a plausible number from its training data: maybe right, maybe outdated, with no source. ibge-br-mcp instead has your assistant query the official IBGE APIs in real time β returning the exact figure together with the table and period it came from.
π§π· Leia em PortuguΓͺs
This server implements the Model Context Protocol (MCP) to give AI assistants live, structured access to Brazil's public geographic, demographic, economic, and health data β sourced from the IBGE APIs (including health indicators served through IBGE's SIDRA system).
Ask your assistant, in plain Portuguese:
ibge_cidades / ibge_censoibge_municipiosibge_compararThe answers come live from the official IBGE APIs β exact figures with the table and period they came from, not numbers guessed from training data.
| Tool | Description |
|---|---|
ibge_estados | List Brazilian states with region filtering |
ibge_municipios | List municipalities by state or search by name |
ibge_localidade | Get details of a locality by IBGE code |
ibge_geocodigo | Decode IBGE codes or search codes by name |
ibge_vizinhos | Find neighboring municipalities |
| Tool | Description |
|---|---|
ibge_sidra | Query SIDRA tables (Census, PNAD, GDP, etc.) |
ibge_sidra_tabelas | List and search available SIDRA tables |
ibge_sidra_metadados | Get table metadata (variables, periods, levels) |
ibge_pesquisas | List IBGE research surveys and their tables |
| Tool | Description |
|---|---|
ibge_indicadores | Economic and social indicators (GDP, IPCA, unemployment) |
ibge_censo | Census data (1970-2022) with 16 themes |
ibge_comparar | Compare indicators across localities with rankings |
| Tool | Description |
|---|---|
ibge_cidades | Municipal indicators (population, HDI, GDP per capita, etc.) |
| Tool | Description |
|---|---|
ibge_paises | Country data following UN M49 methodology |
| Tool | Description |
|---|---|
ibge_populacao | Real-time Brazilian population projection |
ibge_nomes | Name frequency and rankings in Brazil |
| Tool | Description |
|---|---|
ibge_cnae | CNAE (National Classification of Economic Activities) |
| Tool | Description |
|---|---|
ibge_malhas | Geographic meshes (GeoJSON, TopoJSON, SVG) |
ibge_malhas_tema | Thematic meshes (biomes, Legal Amazon, semi-arid) |
| Tool | Description |
|---|---|
ibge_datasaude | Health indicators via IBGE's SIDRA |
| Tool | Description |
|---|---|
ibge_noticias | IBGE news and press releases |
ibge_calendario | IBGE release and collection calendar |
With 22 tools, several can touch the same topic. Quick guide for the common overlaps:
| You want⦠| Use |
|---|---|
| Brazil's population right now (real-time) | ibge_populacao |
| A single municipality/state panel (population, HDI, GDPβ¦) | ibge_cidades |
| Census data or historical series (1970β2022) | ibge_censo |
| Rank/compare 2β10 localities on one indicator | ibge_comparar |
| A macro indicator time series (GDP, IPCA, unemploymentβ¦) | ibge_indicadores |
| A specific SIDRA table / fine control | ibge_sidra |
| You want⦠| Use |
|---|---|
| IPCA, INPC, GDP, unemployment (IBGE, primary source) | ibge_indicadores |
| You want⦠| Use |
|---|---|
| List/search municipalities | ibge_municipios |
| List states | ibge_estados |
| Resolve a nameβcode at any level, or decode a code's structure | ibge_geocodigo |
| Full record of one locality you already have the code for | ibge_localidade |
| Neighboring municipalities | ibge_vizinhos |
Discover β inspect β query: ibge_pesquisas / ibge_sidra_tabelas (find a table) β ibge_sidra_metadados (its structure) β ibge_sidra (query). For common data, the wrappers above (ibge_censo, ibge_indicadores, ibge_comparar, ibge_cidades) are usually easier.
| You want⦠| Use |
|---|---|
| Administrative outlines (Brazil/region/state/municipality) | ibge_malhas |
| Thematic areas (biomes, Legal Amazon, semi-arid, metro regions) | ibge_malhas_tema |
npm install -g ibge-br-mcp
# Clone the repository
git clone https://github.com/SidneyBissoli/ibge-br-mcp.git
cd ibge-br-mcp
# Install dependencies
npm install
# Build the project
npm run build
Add to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"ibge-br-mcp": {
"command": "npx",
"args": ["ibge-br-mcp"]
}
}
}
Or if installed from source:
{
"mcpServers": {
"ibge-br-mcp": {
"command": "node",
"args": ["/path/to/ibge-br-mcp/dist/index.js"]
}
}
}
{
"mcpServers": {
"ibge-br-mcp": {
"command": "npx",
"args": ["ibge-br-mcp"]
}
}
}
List all Brazilian states.
# List all states
ibge_estados
# States in Northeast region
ibge_estados(regiao="NE")
# States sorted by abbreviation
ibge_estados(ordenar="sigla")
List Brazilian municipalities.
# Municipalities of SΓ£o Paulo state
ibge_municipios(uf="SP")
# Search municipalities by name
ibge_municipios(busca="Campinas")
# Municipalities in MG containing "Belo"
ibge_municipios(uf="MG", busca="Belo")
Query municipal indicators (similar to Cidades@ portal).
# Panorama of SΓ£o Paulo
ibge_cidades(tipo="panorama", municipio="3550308")
# Population history
ibge_cidades(tipo="historico", municipio="3550308", indicador="populacao")
# List available research
ibge_cidades(tipo="pesquisas")
Available indicators: populacao, area, densidade, pib_per_capita, idh, escolarizacao, mortalidade, salario_medio, receitas, despesas
Query international country data.
# List all countries
ibge_paises(tipo="listar")
# Brazil details
ibge_paises(tipo="detalhes", pais="BR")
# Search countries
ibge_paises(tipo="buscar", busca="Argentina")
# Countries in Americas
ibge_paises(tipo="listar", regiao="americas")
Regions: americas, europa, africa, asia, oceania
Query SIDRA tables (IBGE's Automatic Recovery System).
# Brazil population in 2023
ibge_sidra(tabela="6579", periodos="2023")
# Population by state
ibge_sidra(tabela="6579", nivel_territorial="3", periodos="2023")
# Census 2022 for SΓ£o Paulo municipality
ibge_sidra(tabela="9514", nivel_territorial="6", localidades="3550308")
Common tables:
| Code | Description |
|---|---|
| 6579 | Population estimates (annual) |
| 9514 | Census 2022 population |
| 4714 | Unemployment rate (PNAD) |
| 6706 | GDP at current prices |
Territorial levels:
| Code | Level |
|---|---|
| 1 | Brazil |
| 2 | Region (North, Northeast, etc.) |
| 3 | State (UF) |
| 6 | Municipality |
| 7 | Metropolitan Region |
| 106 | Health Region |
| 127 | Legal Amazon |
| 128 | Semi-arid |
Query Census data (1970-2022).
# Population Census 2022
ibge_censo(ano="2022", tema="populacao")
# Historical population series
ibge_censo(ano="todos", tema="populacao")
# Literacy by state in 2010
ibge_censo(ano="2010", tema="alfabetizacao", nivel_territorial="3")
Available themes: populacao, alfabetizacao, domicilios, idade_sexo, religiao, cor_raca, rendimento, migracao, educacao, trabalho
Query economic and social indicators.
# GDP
ibge_indicadores(indicador="pib")
# IPCA last 12 months
ibge_indicadores(indicador="ipca", periodos="last 12")
# Unemployment by state
ibge_indicadores(indicador="desemprego", nivel_territorial="3")
# List all indicators
ibge_indicadores(indicador="listar")
Available indicators:
| Category | Indicators |
|---|---|
| Economic | pib, pib_variacao, pib_per_capita, industria, comercio, servicos |
| Prices | ipca, ipca_acumulado, inpc |
| Labor | desemprego, ocupacao, rendimento, informalidade |
| Population | populacao, densidade |
| Agriculture | agricultura, pecuaria |
Query name frequency and rankings.
# Frequency of "Maria"
ibge_nomes(tipo="frequencia", nomes="Maria")
# Compare names
ibge_nomes(tipo="frequencia", nomes="JoΓ£o,JosΓ©,Pedro")
# Ranking of names in 2000s
ibge_nomes(tipo="ranking", decada=2000)
# Female names ranking
ibge_nomes(tipo="ranking", sexo="F")
Get geographic meshes (maps).
# Brazil with states
ibge_malhas(localidade="BR", resolucao="2")
# SΓ£o Paulo with municipalities
ibge_malhas(localidade="SP", resolucao="5")
# Specific municipality
ibge_malhas(localidade="3550308")
# SVG format
ibge_malhas(localidade="BR", formato="svg")
Resolution levels:
| Value | Internal Divisions |
|---|---|
| 0 | No divisions (outline only) |
| 2 | States |
| 5 | Municipalities |
Query Brazilian health indicators served through IBGE's SIDRA (some originally produced by DataSUS, e.g. mortality and births).
# Infant mortality in Brazil
ibge_datasaude(indicador="mortalidade_infantil")
# Life expectancy by state
ibge_datasaude(indicador="esperanca_vida", nivel_territorial="3")
# List indicators
ibge_datasaude(indicador="listar")
Available indicators: mortalidade_infantil, esperanca_vida, nascidos_vivos, obitos, fecundidade, saneamento_agua, saneamento_esgoto, plano_saude
servicodados.ibge.gov.br/api/v1/localidadesservicodados.ibge.gov.br/api/v2/censos/nomesservicodados.ibge.gov.br/api/v3/agregadosapisidra.ibge.gov.br/valuesservicodados.ibge.gov.br/api/v3/malhasservicodados.ibge.gov.br/api/v3/noticiasservicodados.ibge.gov.br/api/v1/projecoes/populacaoservicodados.ibge.gov.br/api/v2/cnaeservicodados.ibge.gov.br/api/v3/calendarioservicodados.ibge.gov.br/api/v1/paisesservicodados.ibge.gov.br/api/v1/pesquisas# Build
npm run build
# Watch mode
npm run watch
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Lint
npm run lint
# Format
npm run format
# Test with MCP inspector
npm run inspector
ibge-br-mcp/
βββ src/
β βββ index.ts # Main MCP server
β βββ types.ts # TypeScript types
β βββ config.ts # Configuration and constants
β βββ cache.ts # Request caching system
β βββ retry.ts # Retry with exponential backoff
β βββ errors.ts # Standardized error handling
β βββ validation.ts # Input validation helpers
β βββ metrics.ts # Metrics and logging
β βββ utils/
β β βββ formatters.ts # Formatting utilities
β βββ tools/
β βββ index.ts # Tool exports
β βββ estados.ts # ibge_estados
β βββ municipios.ts # ibge_municipios
β βββ localidade.ts # ibge_localidade
β βββ geocodigo.ts # ibge_geocodigo
β βββ censo.ts # ibge_censo
β βββ populacao.ts # ibge_populacao
β βββ sidra.ts # ibge_sidra
β βββ sidra-tabelas.ts # ibge_sidra_tabelas
β βββ sidra-metadados.ts# ibge_sidra_metadados
β βββ indicadores.ts # ibge_indicadores
β βββ cnae.ts # ibge_cnae
β βββ calendario.ts # ibge_calendario
β βββ comparar.ts # ibge_comparar
β βββ malhas.ts # ibge_malhas
β βββ malhas-tema.ts # ibge_malhas_tema
β βββ vizinhos.ts # ibge_vizinhos
β βββ datasaude.ts # ibge_datasaude
β βββ pesquisas.ts # ibge_pesquisas
β βββ nomes.ts # ibge_nomes
β βββ noticias.ts # ibge_noticias
β βββ paises.ts # ibge_paises
β βββ cidades.ts # ibge_cidades
βββ tests/ # Test files
βββ dist/ # Compiled files
βββ package.json
βββ tsconfig.json
βββ vitest.config.ts
βββ README.md
The project includes a comprehensive test suite with 227 tests covering:
npm test
This project maintains high code quality standards:
Run tests locally:
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run linter
npm run lint
MIT
Sidney da Silva Pereira Bissoli
Be the first to review this server!
by Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.
by Microsoft Β· Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption