How to Use the CNJ (Datajud API Pública) MCP in Claude Code
Query CNJ (Datajud API Pública) directly from your terminal and pipe Brazilian legal data into Claude Code using this MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect CNJ (Datajud API Pública) MCP to Claude Code
Create your Vinkius account to connect CNJ (Datajud API Pública) to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Pull court records straight to stdout
The `search_process_by_number` tool fetches raw judicial records from specific Brazilian court APIs directly into your terminal session. You can pass a process number and target court, and Claude Code outputs the clean JSON payload. Because this runs in your terminal, you can pipe the output directly into utilities like jq, grep, or local databases. It makes integrating Brazilian legal data into backend pipelines incredibly straightforward.
Run batch legal searches via this MCP Server
The `search_processes_advanced` tool executes raw Elasticsearch queries against the public Datajud database. This lets your terminal agent run complex, multi-field searches without leaving the command line. You can write a quick bash script that feeds list inputs into Claude Code. The agent runs the queries in parallel, formats the results, and writes them to a CSV file in seconds.
Filter cases by class and organ in the shell
The `search_processes_by_class_and_organ` tool filters Brazilian lawsuits by their procedural class and court organ. It allows your command-line agent to quickly isolate specific types of cases during automated audits. This tool is perfect for CI/CD pipelines or cron jobs. You can set up a daily task that queries a specific court organ and alerts your team if any new cases match your search criteria.
Set up CNJ (Datajud API Pública) MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seecnj-datajud-api-publica-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest CNJ (Datajud API Pública) transactions." It will automatically discover and invoke the available CNJ (Datajud API Pública) tools.
claude mcp add --transport http cnj-datajud-api-publica-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about CNJ (Datajud API Pública) MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the CNJ (Datajud API Pública) MCP today
We host it, we monitor it, we maintain it. You just paste one token.