4,000+ servers built on vurb.ts
Vinkius

CNJ (Datajud API Pública) MCP Server for AutoGenGive AutoGen instant access to 3 tools to Search Process By Number, Search Processes Advanced, Search Processes By Class And Organ

MCP Inspector GDPR Free for Subscribers

Microsoft AutoGen enables multi-agent conversations where agents negotiate, delegate, and execute tasks collaboratively. Add CNJ (Datajud API Pública) as an MCP tool provider through Vinkius and every agent in the group can access live data and take action.

Ask AI about this MCP Server for AutoGen

The CNJ (Datajud API Pública) MCP Server for AutoGen is a standout in the Data Management category — giving your AI agent 3 tools to work with, ready to go from day one.

Built for AI Agents by Vinkius

Vinkius delivers Streamable HTTP and SSE to any MCP client

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
python
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.tools.mcp import McpWorkbench

async def main():
    # Your Vinkius token. get it at cloud.vinkius.com
    async with McpWorkbench(
        server_params={"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"},
        transport="streamable_http",
    ) as workbench:
        tools = await workbench.list_tools()
        agent = AssistantAgent(
            name="cnj_datajud_api_publica_agent",
            tools=tools,
            system_message=(
                "You help users with CNJ (Datajud API Pública). "
                "3 tools available."
            ),
        )
        print(f"Agent ready with {len(tools)} tools")

asyncio.run(main())
CNJ (Datajud API Pública)
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* 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.

AutoGen enables multi-agent conversations where agents negotiate, delegate, and collaboratively use CNJ (Datajud API Pública) tools. Connect 3 tools through Vinkius and assign role-based access. a data analyst queries while a reviewer validates, with optional human-in-the-loop approval for sensitive operations.

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 AutoGen 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 AutoGen

When AutoGen 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

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

Search processes advanced on CNJ (Datajud API Pública)

Execute an advanced Elasticsearch query against the Datajud API

search

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 AutoGen via MCP

Follow these steps to wire CNJ (Datajud API Pública) into AutoGen. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.

01

Install AutoGen

Run pip install "autogen-ext[mcp]"
02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token
03

Integrate into workflow

Use the agent in your AutoGen multi-agent orchestration
04

Explore tools

The workbench discovers 3 tools from CNJ (Datajud API Pública) automatically

Why Use AutoGen with the CNJ (Datajud API Pública) MCP Server

AutoGen provides unique advantages when paired with CNJ (Datajud API Pública) through the Model Context Protocol.

01

Multi-agent conversations: multiple AutoGen agents discuss, delegate, and collaboratively use CNJ (Datajud API Pública) tools to solve complex tasks

02

Role-based architecture lets you assign CNJ (Datajud API Pública) tool access to specific agents. a data analyst queries while a reviewer validates

03

Human-in-the-loop support: agents can pause for human approval before executing sensitive CNJ (Datajud API Pública) tool calls

04

Code execution sandbox: AutoGen agents can write and run code that processes CNJ (Datajud API Pública) tool responses in an isolated environment

CNJ (Datajud API Pública) + AutoGen Use Cases

Practical scenarios where AutoGen combined with the CNJ (Datajud API Pública) MCP Server delivers measurable value.

01

Collaborative analysis: one agent queries CNJ (Datajud API Pública) while another validates results and a third generates the final report

02

Automated review pipelines: a researcher agent fetches data from CNJ (Datajud API Pública), a critic agent evaluates quality, and a writer produces the output

03

Interactive planning: agents negotiate task allocation using CNJ (Datajud API Pública) data to make informed decisions about resource distribution

04

Code generation with live data: an AutoGen coder agent writes scripts that process CNJ (Datajud API Pública) responses in a sandboxed execution environment

Example Prompts for CNJ (Datajud API Pública) in AutoGen

Ready-to-use prompts you can give your AutoGen agent to start working with CNJ (Datajud API Pública) immediately.

01

"Search for process number 50012345620234036100 in the TRF3 public API."

02

"List 5 processes from TJDFT with class code 1116 and organ code 12345."

03

"Run an advanced search in TST for processes moved in the last 7 days."

Troubleshooting CNJ (Datajud API Pública) MCP Server with AutoGen

Common issues when connecting CNJ (Datajud API Pública) to AutoGen through Vinkius, and how to resolve them.

01

McpWorkbench not found

Install: pip install "autogen-ext[mcp]"

CNJ (Datajud API Pública) + AutoGen FAQ

Common questions about integrating CNJ (Datajud API Pública) MCP Server with AutoGen.

01

How does AutoGen connect to MCP servers?

Create an MCP tool adapter and assign it to one or more agents in the group chat. AutoGen agents can then call CNJ (Datajud API Pública) tools during their conversation turns.
02

Can different agents have different MCP tool access?

Yes. AutoGen's role-based architecture lets you assign specific MCP tools to specific agents, so a querying agent has different capabilities than a reviewing agent.
03

Does AutoGen support human approval for tool calls?

Yes. Configure human-in-the-loop mode so agents pause and request approval before executing sensitive MCP tool calls.

Explore More MCP Servers

View all →