How to Use the CNJ (Datajud API Pública) MCP in Windsurf
Pull live Brazilian court records directly into Windsurf and let Cascade chain deep legal searches 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 Windsurf
Create your Vinkius account to connect CNJ (Datajud API Pública) to Windsurf and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Pull specific case details inside Windsurf
The `search_process_by_number` tool lets your agent fetch the exact status, history, and parties of any Brazilian lawsuit using its standard CNJ format. You just feed Cascade a process number, and it targets the right regional court API, like the TJSP or TRF1, to pull the raw record. Cascade doesn't stop at just fetching the data. Because it chains actions, it can take the output from this query, extract the legal representatives, and immediately start drafting a case summary or court response in your editor.
Build complex legal reports using an MCP Server
The `search_processes_advanced` tool exposes the full power of Elasticsearch queries against the Datajud database directly to your editor. Instead of writing raw JSON queries by hand, you describe what you need to Cascade, and it structures the search parameters for you. This setup lets you discover patterns across thousands of filings. Cascade can analyze the returns, group them by judge or decision type, and generate clean markdown reports right in your workspace.
Classify judicial trends automatically
The `search_processes_by_class_and_organ` tool queries cases based on their specific procedural class and the court organ overseeing them. It gives your AI client the ability to scan entire jurisdictions for specific types of litigation. You can tell Cascade to monitor a specific court organ for new filings in a particular class. It runs the query, compares it to your local files, and highlights new legal risks or precedents without you writing any custom scraper code.
Set up CNJ (Datajud API Pública) MCP in Windsurf
Prerequisites
- Windsurf IDE installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP configuration
Click the Cascade assistant icon in the sidebar, then click the hammer icon (🔨) at the top of the panel. Select "Configure" to open
~/.codeium/windsurf/mcp_config.json. - 2
Add the CNJ (Datajud API Pública) MCP
Paste the JSON snippet shown on the right into the
mcpServersobject. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Refresh MCPs
Go back to the hammer icon (🔨) in Cascade and click "Refresh". Windsurf will detect the new server. No full restart is needed — the connection is hot-reloaded.
- 4
Verify in Cascade
Start a new Cascade conversation and ask something like "Show my CNJ (Datajud API Pública) payment history." If connected, Cascade will call the CNJ (Datajud API Pública) tools directly. You will see a green dot next to the server name in the MCP panel.
{
"mcpServers": {
"cnj-datajud-api-publica-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by CNJ Datajud. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
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 Windsurf
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.