MCP server for Brazilian law - 8 keyless open-data APIs: Camara/Senado bills and statutes, DataJud CNJ, STJ, TST (3.75M rulings), TCU, CARF. Verifiable citations. Apache-2.0.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add br-eli-mcp -- python -m br-eli-mcp{
"mcpServers": {
"br-eli-mcp": {
"command": "python",
"args": ["-m", "pip"]
}
}
}MCP Servers overview
# br-eli-mcp
<!-- mcp-name: io.github.matematicsolutions/br-eli-mcp -->
MCP server for eight keyless, no-registration Brazilian open-data APIs:
1. **Camara dos Deputados** (`dadosabertos.camara.leg.br`) - the federal legislative
*process*: bills (proposicoes) as they move through committees and floor votes.
2. **Congresso Nacional Dados Abertos Legislativos** (`legis.senado.leg.br/dadosabertos`) -
the real LexML URN Lex resolver for enacted Normas Juridicas (laws, decrees,
constitutional amendments): identification, Diario Oficial da Uniao publication
provenance, amendment history, STF unconstitutionality notes.
3. **normas.leg.br** - the full-text companion to (2): real article-by-article text of
enacted legislation, addressed by the same URN Lex.
4. **DataJud CNJ** (`api-publica.datajud.cnj.jus.br`) - court DOCKET metadata (not
ruling text) across STJ/TST/TSE/TRFs/TJs/TRTs/TREs and military courts.
5. **STJ Open Data Portal** (`dadosabertos.web.stj.jus.br`) - real acordao (ruling)
full text + ementa (headnote) from the Superior Tribunal de Justica, Brazil's
second-highest court. Coverage starts May 2022.
6. **CARF** (`acordaos.economia.gov.br`) - real acordao (tax ruling) full text from
Brazil's federal tax appeals board, by exact docket/decision number.
7. **TST** (`jurisprudencia-backend2.tst.jus.br`) - real ruling full text (inteiro
teor) + ementa from the Tribunal Superior do Trabalho, Brazil's labor supreme
court: free-text search and exact CNJ-process-number lookup (3,751,594 acordaos,
8,483,448 documents across all types - verified live 2026-07-07).
8. **TCU** (`pesquisa.apps.tcu.gov.br`) - real acordao full text (deliberation,
rapporteur's report, vote) from the Tribunal de Contas da Uniao, the Federal
Court of Accounts - public-procurement jurisprudence (525,620 acordaos -
verified live 2026-07-07).
## What this is (and isn't)
`br_get_norma` resolves a `urn:lex:br:...` against the Senado's own API gateway
(public, no key or registration) and returns identification, publication provenance,
and amendment history. `br_get_norma_index` + `br_get_norma_texto` resolve the same
URN against `normas.leg.br`'s structured Legislation tree for the real text of one
article - not a summary. See [DISCOVERY.md](DISCOVERY.md) for how both endpoints were
found: v0.1.0 tested the wrong host for identification and wrongly reported it as
unconfirmed; v0.2.0 fixed that but still lacked full text; v0.3.0 found the
full-text API on the same domain as the human-readable citation page.
This connector does not scrape Planalto (planalto.gov.br) HTML - no confirmed
mechanical rule maps a URN Lex to a Planalto URL for every act type, and fabricating
one would risk the citation-hallucination failure mode this fleet exists to prevent.
Re-verified live 2026-07-07: `legislacao.presidencia.gov.br` (the REFLEGIS portal
the manifest names) does not return a plain HTTP response to a keyless client at
all - the connection is accepted but the request times out with zero bytes
received, consistent with a bot-challenge/WAF in front of it, not a structured API.
A minority of act types (mostly decrees) have no inline text in `normas.leg.br`
either; for those, see [DISCOVERY.md](DISCOVERY.md).
For case law, DataJud (docket metadata only, redistribution restricted by CNJ
Resolution 446/2022), the STJ Open Data Portal (real acordao text, May 2022+),
CARF (real tax-ruling text, exact lookup only), TST (real ruling text - free-text
search and exact CNJ-process-number lookup, both confirmed live 2026-07-07 after
a browser network trace of the real frontend revealed the request fields the
earlier reverse-engineering missed) and TCU (real acordao/relatorio/voto text)
are wired in below. TRF4/TRF5 were probed and rejected - their hosts never accept
a connection from outside Brazil (`geo_restricted`) - and RFB's sijut2consulta is
a scrape-class HTML app with no JSON backend. See [DISCOVERY.md](DISCOVERY.md)
for the exact probes run and each confirmed request/response contract.
## Tools
| Tool | Purpose |
|---|---|
| `br_search_proposicoes` | List bills by type (`PL`, `PLP`, `PEC`, ...) and year |
| `br_get_proposicao` | Full detail + current status for one bill by id |
| `br_get_norma` | Resolve an enacted Norma Juridica by URN Lex - identification, DOU provenance, amendment history, STF notes |
| `br_get_norma_index` | List the addressable structure of a Norma (parts, books, titles, chapters, sections, articles) |
| `br_get_norma_texto` | Fetch the real text of one article (dispositivo) of a Norma |
| `br_search_processos` | Search court dockets (metadata only) in one tribunal's DataJud CNJ index |
| `br_get_processo` | Fetch one court docket by exact CNJ unified process number |
| `br_search_case_stj` | Search STJ acordaos (real ruling text) by process number or free text |
| `br_get_case_stj` | Fetch one STJ acordao by exact process number - ementa + ruling body text |
| `br_get_case_carf` | Fetch one CARF tax acordao by exact docket or decision number - ementa + ruling body text |
| `br_search_case_tst` | Search TST labor-court rulings by free text (real ruling text; 3.75M acordaos) |
| `br_get_case_tst` | Fetch one TST ruling by exact CNJ unified process number - ementa + inteiro teor |
| `br_search_case_tcu` | Search TCU (Federal Court of Accounts) acordaos by free text (525K acordaos) |
| `br_get_case_tcu` | Fetch one TCU acordao by (numero, ano, colegiado) - deliberation + report + vote text |
| `br_coverage` | Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |
Bill type codes (`sigla_tipo`), for reference:
| Code | Portuguese | English |
|---|---|---|
| `PL` | Projeto de Lei | ordinary bill |
| `PLP` | Projeto de Lei Complementar | complementary-law bill (implements a constitutional provision) |
| `PEC` | Proposta de Emenda a Constituicao | constitutional amendment proposal |
Every response carries `lex_uri`, `human_readable_citation` and `source_url`.
For `br_search_proposicoes`/`br_get_proposicao`, `lex_uri` is Camara's own stable
API URI (not a URN Lex - a bill isn't enacted law yet). For `br_get_norma`,
`lex_uri` is the real `urn:lex:br:...` you queried with, e.g.
`"urn:lex:br:federal:lei:2002-01-10;10406"` (Codigo Civil). For `br_get_norma_texto`,
`lex_uri` is that URN plus the article suffix, e.g. `"...;10406!art5"`.
## Install
```bash
pip install br-eli-mcp
```
### Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers `uvx.exe`, `pip.exe`
and the `br-eli-mcp.exe` launcher that pip writes at install time. The `python.exe` and
`py.exe` from the python.org installer are signed by the Python Software
Foundation, so running the module through the interpreter works:
```bash
python -m pip install br-eli-mcp
python -m br_eli_mcp
```
`pip.exe` is blocked for the same reason, so install with `python -m pip`, not
`pip install`. If `python` is not on PATH, use the Windows launcher: `py -3 -m br_eli_mcp`.
```json
{ "mcpServers": { "br-eli-mcp": { "command": "python", "args": ["-m", "br_eli_mcp"] } } }
```
Do not turn Smart App Control off to work around this - it cannot be re-enabled
without reinstalling Windows.
## Configuration
| Env var | Default |
|---|---|
| `BR_ELI_CACHE_DIR` | `~/.matematic/cache/br-eli` |
| `BR_ELI_AUDIT_DIR` | `~/.matematic/audit` |
| `BR_ELI_BASE_URL` | `https://dadosabertos.camara.leg.br/api/v2` |
| `BR_ELI_NORMA_BASE_URL` | `https://legis.senado.leg.br/dadosabertos` |
| `BR_ELI_TEXT_BASE_URL` | `https://normas.leg.br/api/public` |
| `BR_ELI_DATAJUD_BASE_URL` | `https://api-publica.datajud.cnj.jus.br` |
| `BR_ELI_STJ_BASE_URL` | `https://dadosabertos.web.stj.jus.br` |
| `BR_ELI_CARF_BASE_URL` | `https://acordaos.economia.gov.br/solr/acordaos2/select` |
| `BR_ELI_TST_BASE_URL` | `https://jurisprudencia-backend2.tst.jus.br` |
| `BR_ELI_TCU_BASE_URL` | `https://pesquisa.apps.tcu.gov.br/rest/publico/base/acordao-completo` |
## License
Apache-2.0 (code). The Camara dos Deputados open-data API is open data
requiring attribution - see [SOURCES.md](SOURCES.md).
What people ask about br-eli-mcp
What is matematicsolutions/br-eli-mcp?
+
matematicsolutions/br-eli-mcp is mcp servers for the Claude AI ecosystem. MCP server for Brazilian law - 8 keyless open-data APIs: Camara/Senado bills and statutes, DataJud CNJ, STJ, TST (3.75M rulings), TCU, CARF. Verifiable citations. Apache-2.0. It has 1 GitHub stars and its last recorded update is dated 2026-08-24.
How do I install br-eli-mcp?
+
You can install br-eli-mcp by cloning the repository (https://github.com/matematicsolutions/br-eli-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is matematicsolutions/br-eli-mcp safe to use?
+
Our security agent has analyzed matematicsolutions/br-eli-mcp and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains matematicsolutions/br-eli-mcp?
+
matematicsolutions/br-eli-mcp is maintained by matematicsolutions. The last recorded GitHub activity is dated 2026-08-24, with 0 open issues.
Are there alternatives to br-eli-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy br-eli-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/matematicsolutions-br-eli-mcp)<a href="https://claudewave.com/repo/matematicsolutions-br-eli-mcp"><img src="https://claudewave.com/api/badge/matematicsolutions-br-eli-mcp" alt="Featured on ClaudeWave: matematicsolutions/br-eli-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!