Jusratio Case File
Local-first MCP server that transforms civil case PDFs into queryable cases with structural provenance, evidence IDs, and page-level verification for drafting and factual review.
README
Jusratio Case File
Local-first MCP server que transforma um processo cível em um caso consultável, com proveniência estrutural: todo trecho nasce com evidence_id, página e hash, e nada deve ser afirmado sem passar por verificar_referencias.
What It Does
- Creates a local workspace for a civil case PDF.
- Extracts text-native PDF pages.
- Runs BYOK Gemini OCR only within the approval gate (threshold + explicit page/call ceilings).
- Stores stable
evidence_ids and page-level provenance. - Builds a portable SQLite/FTS5 index.
- Produces compact evidence bundles for drafting, factual review, and jurisprudence research.
- Generates conservative civil procedural radar entries as candidates for lawyer review.
- Registers jurisprudence doc_ids retrieved by a separate jurisprudence MCP (
registrar_jurisprudencia) so final reports can be verified.
This MVP does not include visual embeddings, final civil deadline calculations, or full pleading generation.
Local Data Boundary
JUSRATIO_CASES_DIR is the only authorized case directory. Put the source PDF inside this directory before calling criar_caso_local; the server copies it into a per-case workspace and rejects paths outside the authorized root.
This package does not ask for credentials from any jurisprudence provider and does not call a jurisprudence service directly. If the user's AI workspace also has a jurisprudence MCP connected (e.g. Jusratio), the assistant uses that separate MCP for research and then persists the returned doc_ids locally via registrar_jurisprudencia.
User Installation
The user-facing distribution target is a .mcpb bundle for Claude Desktop, not manual STDIO configuration.
Install options:
- Double-click
jusratio-case-file.mcpb. - Drag
jusratio-case-file.mcpbinto Claude Desktop. - Use Claude Desktop Settings > Extensions > Advanced settings > Install Extension.
During installation, Claude Desktop asks for:
- local cases directory;
- Gemini API key for OCR and future embeddings;
- optional OCR tuning values.
Development
npm ci
npm test
npm run typecheck
npm run build
npm run pack:mcpb
npm run verify:mcpb
npm run pack:mcpb writes jusratio-case-file.mcpb at the repository root.
Runtime Config
JUSRATIO_CASES_DIR: required local directory for all case files and generated artifacts.GEMINI_API_KEY: recommended (BYOK) — used locally for OCR and semantic search. Without it, native PDFs work fully; scanned pages stay pending OCR (retomar_ingestaopicks them up once the key is configured).GEMINI_OCR_MODEL: optional OCR model override. Default:gemini-3.5-flash.GEMINI_EMBEDDING_MODEL: optional embedding model override for semantic search. Default:gemini-embedding-2.JUSRATIO_OCR_MAX_CONCURRENCY: optional OCR concurrency limit. Default:2.JUSRATIO_OCR_MAX_RETRY_ATTEMPTS: optional per-page OCR retry limit. Default:3.JUSRATIO_OCR_APPROVAL_PAGE_THRESHOLD: pages of pending OCR above which explicit approval (autorizar_ocr) is required before any Gemini call. Default:25.
Local Civil Workflow
- Configure
JUSRATIO_CASES_DIRto an authorized local folder. - Configure
GEMINI_API_KEYfor BYOK OCR. - Call
criar_caso_localwithpdf_path. - Call
status_casoto inspect progress, pending OCR, locks, and coverage. - Use
autorizar_ocrwhen the job pauses inpaused_awaiting_ocr_approval; the approvedmax_pages/max_callsceilings are enforced. - Use
retomar_ingestaoafter restarting the client, configuring Gemini, or approving OCR — already-processed pages are never re-billed. - Optionally call
indexar_semantica(explicitmax_callsceiling, BYOK) sobuscar_no_processobecomes hybrid — lexical bm25 + local vector search fused by RRF. - Use
analisar_radar_processual_civelfor candidate procedural observations. - Use
montar_pacote_evidenciasoranalisar_caso_civelfor global work with explicit gaps. - After researching in the jurisprudence MCP, call
registrar_jurisprudenciawith the returned doc_ids, thenverificar_referenciasbefore the final report.
OCR is transcription. Always verify image_ref against the original document before using OCR text as evidence.
License and Trademark
Source code licensed under Apache-2.0. "Jusratio" and the Jusratio logo are trademarks of their owner; the license does not grant permission to use the trade names, trademarks, service marks, or product names of the licensor, except as required for reasonable and customary use in describing the origin of the work.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。