Skip to main content

gov.br APIs MCP

io.github.thalisantunes/govbr-apis-mcp

v0.2.0Updated Oct 19, 2026stdio · PyPI

A catalog-driven gateway over Brazilian government APIs, loading OpenAPI specs on demand.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add govbr-apis-mcp -- uvx govbr-apis-mcp==0.2.0

Configuration

14 settings.

  • TRANSPARENCIA_API_KEY
    Env var· optional· secret
    API key for the Portal da Transparencia API
  • DATAJUD_API_KEY
    Env var· optional· secret
    API key for the CNJ DataJud API
  • DADOSGOV_API_KEY
    Env var· optional· secret
    API key for the dados.gov.br portal API (free, generated in the user profile)
  • SERPRO_CPF_CLIENT_ID
    Env var· optional· secret
    OAuth2 client ID for the Serpro CPF API (commercial contract)
  • SERPRO_CPF_CLIENT_SECRET
    Env var· optional· secret
    OAuth2 client secret for the Serpro CPF API (commercial contract)
  • SERPRO_CNPJ_CLIENT_ID
    Env var· optional· secret
    OAuth2 client ID for the Serpro CNPJ API (commercial contract)
Show 8 more
  • SERPRO_CNPJ_CLIENT_SECRET
    Env var· optional· secret
    OAuth2 client secret for the Serpro CNPJ API (commercial contract)
  • SERPRO_DATAVALID_CLIENT_ID
    Env var· optional· secret
    OAuth2 client ID for the Serpro Datavalid API (commercial contract)
  • SERPRO_DATAVALID_CLIENT_SECRET
    Env var· optional· secret
    OAuth2 client secret for the Serpro Datavalid API (commercial contract)
  • MEIAENTRADA_CODIGO_ACESSO
    Env var· optional· secret
    Access code (codigoAcesso) for the CIE validator used for meia-entrada, issued to the venue or producer
  • GOVBR_CATALOG_DIR
    Env var· optional
    Directory of catalog YAML files that replaces the packaged catalog (trusted input)
  • GOVBR_EXTRA_CATALOG_DIR
    Env var· optional
    Directory of catalog YAML files whose entries are added to the catalog, overriding same-id ones
  • GOVBR_EXTRA_ALLOWED_HOSTS
    Env var· optional
    Comma-separated extra hostnames catalog URLs may use; add one only if you trust it with the credentials sent there
  • XDG_CACHE_HOME
    Env var· optional
    Base directory of the OpenAPI spec cache (a govbr-apis-mcp folder is created below it); defaults to ~/.cache

Listed in the official MCP Registry since Oct 19, 2026. Mirrored daily; last checked Nov 26, 2026.