CNJ (Datajud API Pública) MCP Server for CursorGive Cursor instant access to 3 tools to Search Process By Number, Search Processes Advanced, Search Processes By Class And Organ
Cursor is an AI-first code editor built on VS Code that integrates LLM-powered coding assistance directly into the development workflow. Its Agent mode enables autonomous multi-step coding tasks, and MCP support lets agents access external data sources and APIs during code generation.
Ask AI about this MCP Server for Cursor
The CNJ (Datajud API Pública) MCP Server for Cursor is a standout in the Data Management category — giving your AI agent 3 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
{
"mcpServers": {
"cnj-datajud-api-publica": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
}Vinkius Desktop App
The modern way to manage MCP Servers — no config files, no terminal commands. Install CNJ (Datajud API Pública) and 4,000+ MCP Servers from a single visual interface.





* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About CNJ (Datajud API Pública) MCP Server
Connect to the CNJ Datajud Public API to perform deep searches across the Brazilian judicial system. This server allows AI agents to retrieve detailed metadata about lawsuits, court movements, and procedural history directly from the official national database.
Cursor's Agent mode turns CNJ (Datajud API Pública) into an in-editor superpower. Ask Cursor to generate code using live data from CNJ (Datajud API Pública) and it fetches, processes, and writes. all in a single agentic loop. 3 tools appear alongside file editing and terminal access, creating a unified development environment grounded in real-time information.
What you can do
- Search by CNJ Number — Retrieve full details of a specific lawsuit using its unique unformatted numbering and the target court alias.
- Class & Organ Filtering — Find processes categorized by their Procedural Class (TPU) and specific Court Organ codes.
- Advanced Elasticsearch Queries — Execute complex searches using the full power of Elasticsearch Query DSL to filter by dates, parties, or specific metadata fields.
- Court Coverage — Access data from various courts including TRFs, TJs, TST, and more via their respective API aliases.
The CNJ (Datajud API Pública) MCP Server exposes 3 tools through the Vinkius. Connect it to Cursor in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 3 CNJ (Datajud API Pública) tools available for Cursor
When Cursor connects to CNJ (Datajud API Pública) through Vinkius, your AI agent gets direct access to every tool listed below — spanning judicial-records, brazil-law, procedural-data, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Search process by number on CNJ (Datajud API Pública)
g., api_publica_trf1, api_publica_tjsp). Search for a specific judicial process by its CNJ number
Search processes advanced on CNJ (Datajud API Pública)
Execute an advanced Elasticsearch query against the Datajud API
Search processes by class and organ on CNJ (Datajud API Pública)
Search processes by Procedural Class and Court Organ
Connect CNJ (Datajud API Pública) to Cursor via MCP
Follow these steps to wire CNJ (Datajud API Pública) into Cursor. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Open MCP Settings
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) → search "MCP Settings"Add the server config
mcp.json file that opensSave the file
Start using CNJ (Datajud API Pública)
Why Use Cursor with the CNJ (Datajud API Pública) MCP Server
Cursor AI Code Editor provides unique advantages when paired with CNJ (Datajud API Pública) through the Model Context Protocol.
Agent mode turns Cursor into an autonomous coding assistant that can read files, run commands, and call MCP tools without switching context
Cursor's Composer feature can generate entire files using real-time data fetched through MCP. no copy-pasting from external dashboards
MCP tools appear alongside built-in tools like file reading and terminal access, creating a unified agentic environment
VS Code extension compatibility means your existing workflow, keybindings, and extensions all work alongside MCP tools
CNJ (Datajud API Pública) + Cursor Use Cases
Practical scenarios where Cursor combined with the CNJ (Datajud API Pública) MCP Server delivers measurable value.
Code generation with live data: ask Cursor to generate a security report module using live DNS and subdomain data fetched through MCP
Automated documentation: have Cursor query your API's tool schemas and generate TypeScript interfaces or OpenAPI specs automatically
Infrastructure-as-code: Cursor can fetch domain configurations and generate corresponding Terraform or CloudFormation templates
Test scaffolding: ask Cursor to pull real API responses via MCP and generate unit test fixtures from actual data
Example Prompts for CNJ (Datajud API Pública) in Cursor
Ready-to-use prompts you can give your Cursor agent to start working with CNJ (Datajud API Pública) immediately.
"Search for process number 50012345620234036100 in the TRF3 public API."
"List 5 processes from TJDFT with class code 1116 and organ code 12345."
"Run an advanced search in TST for processes moved in the last 7 days."
Troubleshooting CNJ (Datajud API Pública) MCP Server with Cursor
Common issues when connecting CNJ (Datajud API Pública) to Cursor through Vinkius, and how to resolve them.
Tools not appearing in Cursor
Server shows as disconnected
CNJ (Datajud API Pública) + Cursor FAQ
Common questions about integrating CNJ (Datajud API Pública) MCP Server with Cursor.
What is Agent mode and why does it matter for MCP?
Where does Cursor store MCP configuration?
mcp.json file. You can configure servers at the project level (.cursor/mcp.json in your project root) or globally (~/.cursor/mcp.json). Project-level configs take precedence.Can Cursor use MCP tools in inline edits?
How do I verify MCP tools are loaded?
Explore More MCP Servers
View all →
AssessTEAM
7 toolsEvaluate employee performance, run 360-degree reviews, and track team goals with streamlined assessment workflows.

Mabl (AI-Powered Test Automation)
10 toolsManage E2E testing via Mabl — trigger test plans, monitor execution results, and perform AI-driven failure analysis.

Candid (GuideStar)
10 toolsAccess comprehensive non-profit data via Candid — search organizations, verify charity status, and retrieve detailed financials directly from any AI agent.

Email (.eml) File Parser
1 toolsTransform heavy raw email exports into crystal-clear text local. Let your AI act as your personal secretary, instantly summarizing threads without wasting context window tokens.
