ai.ragjur/mcp
Brazilian legal search and jurimetria: 115M+ court decisions from 90+ courts across 14 MCP tools.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
claude mcp add --transport http ai-ragjur-mcp 'https://mcp.ragjur.ai/mcp' --header 'x-api-key: <Optional alternative to OAuth 2.1: RAGJur API key (rj_…) created at https://app.ragjur.ai/painel/chaves. ChatGPT connectors do NOT use API keys — prefer OAuth (PKCE S256, scope ragjur:read), discovered via /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server (RFC 9728/8414, DCR at /oauth/register, Client ID Metadata Documents supported).>'
{
"mcpServers": {
"ai-ragjur-mcp": {
"type": "http",
"url": "https://mcp.ragjur.ai/mcp",
"headers": {
"x-api-key": "<Optional alternative to OAuth 2.1: RAGJur API key (rj_…) created at https://app.ragjur.ai/painel/chaves. ChatGPT connectors do NOT use API keys — prefer OAuth (PKCE S256, scope ragjur:read), discovered via /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server (RFC 9728/8414, DCR at /oauth/register, Client ID Metadata Documents supported).>"
}
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Contents
RAGJur — Claude Plugin
Brazilian legal RAG for Claude — search 112M+ court decisions from 90+ Brazilian tribunals.
💳 Paid subscription required (from R$ 197/month — see ragjur.ai/precos). Installation and authorization are free; using the tools requires a RAGJur subscription: ragjur.ai.
This repository contains the Claude plugin manifest for RAGJur. The plugin connects Claude to the RAGJur MCP server (remote, streamable HTTP) at https://mcp.ragjur.ai/mcp.
Install
In Claude Code:
/plugin marketplace add btechbrasil/ragjur-mcp
/plugin install ragjur@btechbrasil
No API key to paste. On the first tool call, your host (Claude, ZCode/GLM, or any MCP client with OAuth support) receives the server's authorization challenge and opens your browser for login (BeansTech ID). Authorize once and the connection reconnects automatically; your plan travels in the token and the tool list adapts (see Plans below).
What you get — 12 grounding tools
| Tool | What it does |
|---|---|
buscar_jurisprudencia | Full-text search over 112M+ decisions (BM25, filters by tribunal/class/date) |
similaridade | Semantic search — decisions similar to a case or ementa (embeddings) |
panorama_tema | Topic overview: outcome rate, result categories, trend |
divergencia_turmas | Divergence between panels/chambers on a topic |
evolucao_jurisprudencial | How a thesis evolved over time (quarterly) |
predicao_resultado | Statistical outcome prediction with confidence interval |
tempo_tramitacao | Litigation-time statistics (median, percentiles) |
perfil_relator | Judge/rapporteur profile on a topic |
dna_turma | Statistically characteristic terms of a panel |
clusters_tematicos | Cluster a topic into sub-issues |
estrategia_juiz | Full strategic analysis of a judge for a topic |
verificar_citacao | Anti-hallucination citation verification |
📊 Plans: Essential (R$ 197/mo, 100 queries) unlocks the core research tools (
buscar_jurisprudencia,similaridade,verificar_citacao,panorama_tema); Pro (500 queries) unlocks all 12. The server filters the tool list to your plan automatically.
🧠 The prose is yours: conversational Q&A and document drafting are done by the LLM of the platform you're in (Claude, GLM/ZCode, ChatGPT, Cursor), grounded by these retrieval and jurimetrics tools. The plugin intentionally ships no
chat/drafttool — the synthesis layer is the host model, so answers come from the model you already pay for. (chat_juridicoandgerar_pecaremain available on the REST API for direct integrations.)
Coverage
STF, STJ, TST, TSE, TCU, all TRFs (1–6), all state courts (TJs), labor courts (TRTs), electoral courts, state audit courts (TCEs) and administrative tax appeal tribunals (CARF/DRJs/TARFs) — 112 million+ decisions and growing daily.
Example prompts
- "Busque os acórdãos mais recentes do STJ sobre busca e apreensão em alienação fiduciária"
- "Qual a taxa de provimento de recursos sobre dano moral no TJSP? Há divergência entre as câmaras?"
- "Verifique se as citações desta peça existem"
- "Redija uma contestação sobre despejo por falta de pagamento, lado réu, TJMG"
How it works
The plugin registers one remote MCP server (HTTP transport). Your queries are sent to mcp.ragjur.ai, which searches the Elasticsearch corpus and returns grounded results. The server is stateless — no conversation or query data is persisted after the session ends.
⏱️ Response times: search and analytics tools answer in seconds;
similaridadeandestrategia_juizcan take up to ~30–60 s on hard queries. The plugin declares a 110 s tool timeout (aligned with the server's own cap) so hosts whose default tool timeout is 30 s don't abort these calls mid-flight.
Privacy & data
- Stateless MCP server (30-minute session TTL, nothing stored)
- Data processed in Brazil (Alibaba Cloud São Paulo region)
- LGPD-compliant: ragjur.ai/lgpd
- Privacy policy: ragjur.ai/privacidade
Support
- Site: ragjur.ai
- API docs: api.ragjur.ai
- Contact: contato@ragjur.com.br
License
MIT (this repository — plugin manifest and documentation). The RAGJur service is a commercial product of Beans Tech.
Frequently asked questions
What is ai.ragjur/mcp?
Brazilian legal search and jurimetria: 115M+ court decisions from 90+ courts across 14 MCP tools.
How do I install ai.ragjur/mcp?
It runs as a remote server. In Claude Code: claude mcp add --transport http ai-ragjur-mcp 'https://mcp.ragjur.ai/mcp' --header 'x-api-key: <Optional alternative to OAuth 2.1: RAGJur API key (rj_…) created at https://app.ragjur.ai/painel/chaves. ChatGPT connectors do NOT use API keys — prefer OAuth (PKCE S256, scope ragjur:read), discovered via /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server (RFC 9728/8414, DCR at /oauth/register, Client ID Metadata Documents supported).>'. For other clients, paste the JSON configuration from this page into their MCP settings.
Does ai.ragjur/mcp need an API key?
Yes. It expects x-api-key, which you set in its configuration.
Is ai.ragjur/mcp open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains ai.ragjur/mcp?
It is published by btechbrasil. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.