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
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.
Vinkius delivers Streamable HTTP and SSE to any MCP client
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())
* 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 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 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.
Install AutoGen
pip install "autogen-ext[mcp]"Replace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenIntegrate into workflow
Explore tools
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.
Multi-agent conversations: multiple AutoGen agents discuss, delegate, and collaboratively use CNJ (Datajud API Pública) tools to solve complex tasks
Role-based architecture lets you assign CNJ (Datajud API Pública) tool access to specific agents. a data analyst queries while a reviewer validates
Human-in-the-loop support: agents can pause for human approval before executing sensitive CNJ (Datajud API Pública) tool calls
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.
Collaborative analysis: one agent queries CNJ (Datajud API Pública) while another validates results and a third generates the final report
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
Interactive planning: agents negotiate task allocation using CNJ (Datajud API Pública) data to make informed decisions about resource distribution
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.
"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 AutoGen
Common issues when connecting CNJ (Datajud API Pública) to AutoGen through Vinkius, and how to resolve them.
McpWorkbench not found
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.
How does AutoGen connect to MCP servers?
Can different agents have different MCP tool access?
Does AutoGen support human approval for tool calls?
Explore More MCP Servers
View all →
SleekFlow
7 toolsManage omnichannel customer conversations — read messages, check contacts, and send replies across WhatsApp, Instagram, and more directly from your AI agent.

TopOn / Mobvista
8 toolsAd mediation and monetization platform for mobile games — monitor revenue, manage waterfalls, and optimize eCPM via AI.

Baidu Qianfan
6 toolsOrchestrate Baidu Qianfan AI models — manage chat completions, embeddings, and prompt templates directly from any AI agent.

Mailsoftly
8 toolsManage marketing campaigns and contacts via the Mailsoftly REST API.
