Atlas / MCP servers / jxnxts / Brasil

BrasilCAUTION

mcp/jxnxts/brasil

MCP Server para 70 APIs públicas brasileiras

Verdict
CAUTION
Grade
C
Trust score
74 /100
Exposed tools
10 10r · 0w · 0d
Transport
streamable-http
License
MIT
Stars
1,786
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

MCP Server para 70 fontes de dados públicas brasileiras

[](LICENSE) [](SOURCES.md) [](ACCEPTABLE_USE.md)

533 tools · 131 resources · 102 prompts · 70 features · 15 áreas temáticas

Conecte AI agents (Claude, GPT, Copilot, etc.) a dados governamentais do Brasil — economia, legislação, transparência, judiciário, eleições, meio ambiente, saúde, educação, segurança pública, fiscal subnacional, aviação e mais.

66 APIs não requerem chave · 4 usam chaves gratuitas (cadastro em 1 min)

Quick Start · Fontes de dados · Documentação · Desenvolvimento

⚠️ Projeto independente. mcp-brasil NÃO é serviço oficial do governo brasileiro nem de qualquer das instituições cujos dados ele torna acessíveis. A licença MIT cobre apenas o código — cada fonte de dado tem sua própria licença (SOURCES.md) e o uso do servidor está sujeito à Política de Uso Aceitável. Antes de uso comercial, jornalístico ou decisório, leia ambos.

Features

  • 533 tools em 70 features cobrindo 15 áreas — economia, legislativo, transparência, judiciário, eleitoral, ambiental, saúde, educação, segurança pública, compras públicas, fiscal subnacional, aviação, energia e mais
  • Datasets grandes com cache local — SIAPA (~813k imóveis), TSE 2014-2024 (candidatos, bens, votação, redes sociais, FEFC), ANP preços de combustíveis, INEP Censo Escolar e ENEM, ISP-RJ segurança pública, ANAC aeronaves e voos regulares — SQL via DuckDB embedded, opt-in via env
  • Cross-referencing com planejar_consulta — cria planos de execução combinando m
Read from source at commit a53cf2c46ad0OBSERVED · 2026-09-24
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-brasil --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env AUTHKIT_DOMAIN=${AUTHKIT_DOMAIN} --env AUTHKIT_REQUIRED_SCOPES=${AUTHKIT_REQUIRED_SCOPES} --env AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET} -- uvx mcp-brasil
claude-desktop
{
  "mcpServers": {
    "mcp-brasil": {
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
        "AUTHKIT_DOMAIN": "${AUTHKIT_DOMAIN}",
        "AUTHKIT_REQUIRED_SCOPES": "${AUTHKIT_REQUIRED_SCOPES}",
        "AZURE_CLIENT_SECRET": "${AZURE_CLIENT_SECRET}"
      }
    }
  }
}
03

Exposed tools (10)

10 read · 0 write · 0 destructive.

ToolRiskDescription
buscar_focosreadBusca focos de queimadas detectados por satélite no Brasil.
consultar_seriereadConsulta série temporal.
executar_lotereadExecuta múltiplas tools em uma única chamada, em paralelo.
hidden_toolreadTool escondida.
listar_bancosreadLista todos os bancos brasileiros registrados no Banco Central.
listar_datasets_disponiveisreadLista os datasets locais (ADR-004) disponíveis e seu estado de cache.
listar_estadosreadLista estados brasileiros.
listar_featuresreadLista todas as features (APIs) disponíveis no mcp-brasil.
planejar_consultareadCria um plano de execução para consultas complexas.
recomendar_toolsreadRecomenda tools relevantes a partir de uma pergunta em linguagem natural.
04

Trust audit

CAUTIONgrade C · trust 74/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
UNDECLARED (4 observation(s))
Network
declared (5 observation(s))
Shell
declared (5 observation(s))
Dependencies
pinned
Secrets in source
none-found

Findings (12)

MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/mcp_brasil/_shared/batch.py:45
pkg = importlib.import_module(base)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/mcp_brasil/_shared/batch.py:61
mod = importlib.import_module(f"{module_path}.tools")
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/mcp_brasil/_shared/datasets/registry.py:35
package = importlib.import_module(package_name)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/mcp_brasil/_shared/datasets/registry.py:46
module = importlib.import_module(full_name)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/mcp_brasil/_shared/feature.py:130
package = importlib.import_module(package_name)
MEDIUMFilesystem / path · fs.destructive · CWE-22, CWE-59
scripts/refresh_anac_tarifas.py:142
shutil.rmtree(extract_dir, ignore_errors=True)
MEDIUMFilesystem / path · fs.destructive · CWE-22, CWE-59
scripts/refresh_anac_tarifas.py:193
shutil.rmtree(tmp, ignore_errors=True)
MEDIUMFilesystem / path · fs.destructive · CWE-22, CWE-59
src/mcp_brasil/_shared/datasets/loader.py:445
shutil.rmtree(ephemeral_dir, ignore_errors=True)
MEDIUMFilesystem / path · fs.system_paths · CWE-22, CWE-59
Dockerfile:31
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/refresh_anac_tarifas.py:158
"schema_hash": hashlib.sha1(
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
tests/datasets/spu_siapa/test_integration.py:76
decoded = codecs.decode(raw, source_encoding)
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
CHANGELOG.md:374
- Load .env file automatically via dotenv
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-09-24 · audit v0.4.1 · source sha a53cf2c46ad0full audit observations/trust-audit/mcp-server/jxnxts__brasil.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-24a53cf2c46ad0CAUTIONC74first audit
06

Questions

What is the Brasil MCP server?

MCP Server para 70 APIs públicas brasileiras

What tools does Brasil expose?

10 in total: 10 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Brasil safe to connect to an agent?

With care. The audit graded it C (74/100) and found 12 things worth knowing before you trust this server, listed below with the exact line each was found on.

What credentials does Brasil need?

It reads ANTHROPIC_API_KEY, AUTHKIT_DOMAIN, AUTHKIT_REQUIRED_SCOPES, AZURE_CLIENT_SECRET, BRAPI_TOKEN, DATAJUD_API_KEY, GITHUB_CLIENT_SECRET, GOOGLE_CLIENT_SECRET, MCP_BRASIL_API_TOKEN, MCP_BRASIL_AUTH_MODE, MCP_BRASIL_OAUTH_PROVIDER and META_ACCESS_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Brasil run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as mcp-brasil.

How current is this page?

The grade is for one exact copy of the source (a53cf2c46ad0), read on 2026-09-24. The repository is watched and re-audited when it changes.

Advertisement