How to Use the CNJ (Datajud API Pública) MCP in Cursor
Code with live Brazilian legal data using the CNJ (Datajud API Pública) MCP Server inside Cursor.
Works with every AI agent you already use
…and any MCP-compatible client
Connect CNJ (Datajud API Pública) MCP to Cursor
Create your Vinkius account to connect CNJ (Datajud API Pública) to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Generate code with real court data using this MCP Server
The `search_process_by_number` tool lets Cursor fetch actual Brazilian court records while you write your legal tech applications. Instead of mock data, your editor pulls live JSON payloads directly into your active workspace. Your agent reads the live structure of the judicial response to write accurate parsers. This eliminates the guesswork of coding against outdated API documentation.
Run advanced Elasticsearch queries in Cursor Agent mode
The `search_processes_advanced` tool connects Cursor directly to the Datajud search cluster. You ask the editor to find specific case patterns, and it writes and executes the query for you. The results inject directly into your open files. You can build database seeds or test suites using real Brazilian lawsuit data in seconds.
Classify litigation by court organ
The `search_processes_by_class_and_organ` tool retrieves cases matching specific CNJ tables of procedural classes. You can target regional federal courts or state tribunals with precise codes. This allows Cursor to help you map out data pipelines for legal analytics. You get clean, categorized responses that match the official Brazilian judicial branch standards.
Set up CNJ (Datajud API Pública) MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the CNJ (Datajud API Pública) MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent CNJ (Datajud API Pública) transactions." If the MCP tools are loaded correctly, Cursor will call the CNJ (Datajud API Pública) tools automatically. You can also check Settings → MCP for a green status indicator.
{
"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 Cursor
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.