Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Mcp Brasil

MCP Server para 70 APIs públicas brasileiras

Compatibility: Not stated.

Grade C

One Medium finding. Read the findings before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit 2efb258370b1, unchanged since the check below.

NETWORK_HOST_FROM_INPUT

Why this grade

  • NETWORK_HOST_FROM_INPUT Medium

    A file takes a URL or endpoint as input and has no fixed host list.

    src/mcp_brasil/data/denasus/client.py, line 34 resp = await http.get(url)

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    scripts/refresh_anac_tarifas.py, line 142

    shutil.rmtree(extract_dir, ignore_errors=True)

    scripts/refresh_anac_tarifas.py, line 193

    shutil.rmtree(tmp, ignore_errors=True)

    scripts/warmup_datasets.py, line 98

    proc = subprocess.run(cmd, check=False)

    Show more

    src/mcp_brasil/_shared/datasets/loader.py, line 445

    shutil.rmtree(ephemeral_dir, ignore_errors=True)

    docs/deploy/azure-datasets.md, line 245

    O warmup script usa `subprocess.run()` por dataset, então um OOM em um

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Serious

    accepts a host from input, with no fixed list in this file.

    NETWORK_HOST_FROM_INPUT

    src/mcp_brasil/data/denasus/client.py, line 34

    resp = await http.get(url)

    src/mcp_brasil/data/spu_imoveis/client.py, line 77

    resp = await http.get(PATRIMONIO_UNIAO_CSV_URL)

    docker-compose.yml, line 8

    test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8061/health')"]

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    src/mcp_brasil/server.py, line 234

    + "\n\n*Para ativar um dataset: `MCP_BRASIL_DATASETS=id1,id2` no .env*"

    src/mcp_brasil/settings.py, line 4

    Carrega o arquivo `.env` do diretório de trabalho atual, se existir.

    src/mcp_brasil/settings.py, line 5

    Para apontar outro caminho, use `MCP_BRASIL_DOTENV=/caminho/para/.env`.

    Show more

    src/mcp_brasil/settings.py, line 17

    # carregando um `.env` de fora do projeto, injetando credenciais sem que

    src/mcp_brasil/settings.py, line 18

    # ninguém tenha pedido. Carregamos apenas o `.env` do diretório atual — que é

    src/mcp_brasil/settings.py, line 39

    MCP_BRASIL_API_TOKEN: str | None = os.environ.get("MCP_BRASIL_API_TOKEN") or None

    src/mcp_brasil/settings.py, line 64

    AZURE_CLIENT_SECRET: str = os.environ.get("AZURE_CLIENT_SECRET", "")

    src/mcp_brasil/settings.py, line 72

    GOOGLE_CLIENT_SECRET: str = os.environ.get("GOOGLE_CLIENT_SECRET", "")

    src/mcp_brasil/settings.py, line 79

    GITHUB_CLIENT_SECRET: str = os.environ.get("GITHUB_CLIENT_SECRET", "")

    src/mcp_brasil/settings.py, line 87

    ANTHROPIC_API_KEY: str = os.environ.get("ANTHROPIC_API_KEY", "")

    src/mcp_brasil/_shared/feature.py, line 32

    import mcp_brasil.settings # noqa: F401 — ensure .env is loaded before checking env vars

    src/mcp_brasil/data/anuncios_eleitorais/client.py, line 34

    token = os.environ.get("META_AD_LIBRARY_TOKEN") or os.environ.get("META_ACCESS_TOKEN") or ""

    src/mcp_brasil/data/b3/client.py, line 20

    token = os.environ.get("BRAPI_TOKEN", "").strip()

    src/mcp_brasil/data/b3/tools.py, line 158

    "Configure `BRAPI_TOKEN` no `.env` ou consulte "

    src/mcp_brasil/data/datajud/client.py, line 51

    key = os.environ.get("DATAJUD_API_KEY", "")

    .dockerignore, line 4

    .venv

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read. the file cap was reached before every file was read.

    OBFUSCATION_FILE_OVER_READ_CAP OBFUSCATION_FILE_CAP_REACHED

    uv.lock, line 1

    version = 1

    src/mcp_brasil/data/saude/geocode_municipios.json, line 1

    [{"nome":"Abadia de Goiás","uf":"GO","geocodigo":"5200050"},{"nome":"Abadia dos Dourados","uf":"MG","geocodigo":"3100104"},{"nome":"Abadiânia","uf":"GO","geocodigo":"5200100"},{"no

    src/mcp_brasil/data/spu_imoveis/constants.py, line 1

    """Constants for the SPU-Imoveis feature."""

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit 2efb258370b1. can delete files. accepts a host from input, with no fixed list in this file. reads a credential or environment file. a file was over the read cap and was not fully read. the file cap was reached before every file was read.

Date and source

Date checked:

View source

github.com

Commit graded: 2efb258370b125bbf190884283ae10f209b9d335

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen