BrasilCAUTION
MCP Server para 70 APIs públicas brasileiras
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
a53cf2c46ad0OBSERVED · 2026-09-23Connect
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 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{
"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}"
}
}
}
}Exposed tools (10)
10 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
buscar_focos | read | Busca focos de queimadas detectados por satélite no Brasil. |
consultar_serie | read | Consulta série temporal. |
executar_lote | read | Executa múltiplas tools em uma única chamada, em paralelo. |
hidden_tool | read | Tool escondida. |
listar_bancos | read | Lista todos os bancos brasileiros registrados no Banco Central. |
listar_datasets_disponiveis | read | Lista os datasets locais (ADR-004) disponíveis e seu estado de cache. |
listar_estados | read | Lista estados brasileiros. |
listar_features | read | Lista todas as features (APIs) disponíveis no mcp-brasil. |
planejar_consulta | read | Cria um plano de execução para consultas complexas. |
recomendar_tools | read | Recomenda tools relevantes a partir de uma pergunta em linguagem natural. |
Trust audit
CAUTIONgrade C · trust 74/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
pkg = importlib.import_module(base)
mod = importlib.import_module(f"{module_path}.tools")package = importlib.import_module(package_name)
module = importlib.import_module(full_name)
package = importlib.import_module(package_name)
shutil.rmtree(extract_dir, ignore_errors=True)
shutil.rmtree(tmp, ignore_errors=True)
shutil.rmtree(ephemeral_dir, ignore_errors=True)
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
"schema_hash": hashlib.sha1(
decoded = codecs.decode(raw, source_encoding)
- Load .env file automatically via dotenv
Gates applied: no_behavioural_pass.
a53cf2c46ad0full audit observations/trust-audit/mcp-server/mcp-brasil__brasil-2.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-23 | a53cf2c46ad0 | CAUTION | C | 74 | source changed, verdict held |
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-23. The repository is watched and re-audited when it changes.