MCP directory
GA

gov.br APIs MCP

by github.com/thalisantunes · v0.2.0 · updated Oct 19, 2026

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx govbr-apis-mcp==0.2.0

Environment variables

  • TRANSPARENCIA_API_KEYsecret

    API key for the Portal da Transparencia API

  • DATAJUD_API_KEYsecret

    API key for the CNJ DataJud API

  • DADOSGOV_API_KEYsecret

    API key for the dados.gov.br portal API (free, generated in the user profile)

  • SERPRO_CPF_CLIENT_IDsecret

    OAuth2 client ID for the Serpro CPF API (commercial contract)

  • SERPRO_CPF_CLIENT_SECRETsecret

    OAuth2 client secret for the Serpro CPF API (commercial contract)

  • SERPRO_CNPJ_CLIENT_IDsecret

    OAuth2 client ID for the Serpro CNPJ API (commercial contract)

  • SERPRO_CNPJ_CLIENT_SECRETsecret

    OAuth2 client secret for the Serpro CNPJ API (commercial contract)

  • SERPRO_DATAVALID_CLIENT_IDsecret

    OAuth2 client ID for the Serpro Datavalid API (commercial contract)

  • SERPRO_DATAVALID_CLIENT_SECRETsecret

    OAuth2 client secret for the Serpro Datavalid API (commercial contract)

  • MEIAENTRADA_CODIGO_ACESSOsecret

    Access code (codigoAcesso) for the CIE validator used for meia-entrada, issued to the venue or producer

  • GOVBR_CATALOG_DIR

    Directory of catalog YAML files that replaces the packaged catalog (trusted input)

  • GOVBR_EXTRA_CATALOG_DIR

    Directory of catalog YAML files whose entries are added to the catalog, overriding same-id ones

  • GOVBR_EXTRA_ALLOWED_HOSTS

    Comma-separated extra hostnames catalog URLs may use; add one only if you trust it with the credentials sent there

  • XDG_CACHE_HOME

    Base directory of the OpenAPI spec cache (a govbr-apis-mcp folder is created below it); defaults to ~/.cache

More MCP servers