advbox-mcp-server
MCP Server para Advbox - Integração do Advbox com sistema de gestão de escritórios de advocacia com Claude AI/N8N
Install / Use
claude mcp add JonasSousaAP -- npx -y github:JonasSousaAP/advbox-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of advbox-mcp-server
advbox-mcp-server scores 67/100 on our quality scale, 3961st of 4,715 Development & Engineering skills we index.
Its MCP Server is 24 KB long, well organised into 117 sections with 33 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 86/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
advbox-mcp-server compared with similar skills
All 4 of these similar skills score higher than advbox-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| advbox-mcp-server (this skill)by JonasSousaAP | 67 | 3 | 11mo ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 120.4k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.1k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 88.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install advbox-mcp-server?
- Run
claude mcp add JonasSousaAP -- npx -y github:JonasSousaAP/advbox-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does advbox-mcp-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is advbox-mcp-server safe to use?
- It is MIT-licensed and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is advbox-mcp-server still maintained?
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHub📚 Documentação MCP Advbox Server
Versão: 2.2.0 (Hardened)
Última atualização: 05 de Janeiro de 2026
Autor: Jonas Sousa
📑 Índice
- Visão Geral
- Arquitetura
- Instalação
- Configuração
- Autenticação
- Endpoints HTTP
- Tools Disponíveis
- Exemplos de Uso
- Segurança
- Integração com n8n
- Monitoramento
- Troubleshooting
1. Visão Geral
O que é o MCP Advbox?
O MCP Advbox Server é um servidor que implementa o protocolo Model Context Protocol (MCP) para integração com a API do Advbox, sistema de gestão jurídica. Ele permite que agentes de IA (como Claude) interajam diretamente com dados de clientes, processos, tarefas e transações financeiras do escritório.
Funcionalidades Principais
- ✅ 19 Tools para operações CRUD completas
- ✅ Autenticação segura via Bearer Token
- ✅ Rate Limiting para proteção contra abuso
- ✅ SSE (Server-Sent Events) para comunicação em tempo real
- ✅ Validação de entrada em todos os parâmetros
- ✅ Headers de segurança (HSTS, CSP, X-Frame-Options)
Casos de Uso
| Caso de Uso | Descrição | |-------------|-----------| | Consulta de clientes | Buscar informações de clientes por nome, telefone, email | | Gestão de processos | Criar, atualizar e consultar processos jurídicos | | Controle financeiro | Listar transações, receitas e despesas | | Agenda de compromissos | Criar e listar tarefas e compromissos | | Relatórios de equipe | Consultar pontuação e recompensas da equipe |
2. Arquitetura
Diagrama
┌─────────────────┐ HTTPS/SSE ┌──────────────────┐ HTTPS ┌─────────────────┐
│ Claude / n8n │ ◄────────────────► │ MCP Advbox API │ ◄────────────► │ Advbox API │
│ │ Bearer Token │ (Port 3847) │ API Token │ (v1) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
Stack Tecnológica
| Componente | Tecnologia | |------------|------------| | Runtime | Node.js 20 Alpine | | Linguagem | TypeScript | | Protocolo | MCP (Model Context Protocol) | | Transporte | HTTP + SSE | | Container | Docker | | Proxy | Traefik | | TLS | Let's Encrypt |
Estrutura de Arquivos
/opt/stacks/advbox-mcp-server/
├── src/
│ └── http-server.ts # Código principal
├── dist/
│ └── http-server.js # Código compilado
├── docs/
│ └── README.md # Esta documentação
├── docker-compose.yml
├── Dockerfile.http
├── package.json
├── tsconfig.json
└── .env
3. Instalação
Pré-requisitos
- Docker 24.0+
- Docker Compose v2
- Rede Docker
proxyconfigurada - Traefik com Let's Encrypt
Passo a Passo
# 1. Criar estrutura
mkdir -p /opt/stacks/advbox-mcp-server/src
cd /opt/stacks/advbox-mcp-server
# 2. Criar .env
cat > .env << EOF
ADVBOX_API_TOKEN=seu_…[redacted]
ADVBOX_BASE_URL=https://app.advbox.com.br/api/v1
MCP_TOKEN=$(openssl rand -hex 32)
ALLOWED_ORIGINS=https://seu-dominio.com
EOF
# 3. Build e Deploy
docker compose build --no-cache advbox-api
docker compose up -d advbox-api
# 4. Verificar
curl http://localhost:3847/health
4. Configuração
Variáveis de Ambiente
| Variável | Obrigatório | Descrição |
|----------|-------------|-----------|
| ADVBOX_API_TOKEN | ✅ | Token de acesso à API Advbox |
| ADVBOX_BASE_URL | ❌ | URL base da API (default: https://app.advbox.com.br/api/v1) |
| MCP_TOKEN | ✅ | Token de autenticação do MCP |
| ALLOWED_ORIGINS | ❌ | Domínios permitidos (CORS) |
| PORT | ❌ | Porta interna (default: 3000) |
Limites de Segurança
| Parâmetro | Valor | Descrição |
|-----------|-------|-----------|
| MAX_BODY_SIZE | 1 MB | Tamanho máximo do body |
| RATE_LIMIT_MAX | 100 req/min | Requests por IP |
| MAX_SSE_CONNECTIONS | 100 | Conexões SSE simultâneas |
| MAX_SSE_PER_IP | 5 | Conexões SSE por IP |
| SSE_TIMEOUT | 1 hora | Timeout de conexão SSE |
5. Autenticação
Método
Bearer Token no header Authorization.
Header
Authorization: Bearer <MCP_TOKEN>
Exemplo
curl -H "Authorization: Bearer <TOKEN>" https://<SEU_DOMINIO>/tools
Erros
| Status | Resposta | Causa |
|--------|----------|-------|
| 401 | {"error":"Unauthorized"} | Token inválido |
| 429 | {"error":"Too Many Requests"} | Rate limit |
6. Endpoints HTTP
| Método | Endpoint | Auth | Descrição |
|--------|----------|------|-----------|
| GET | /health | ❌ | Health check |
| GET | /sse | ✅ | Conexão SSE (MCP) |
| POST | /message | ✅ | Mensagem MCP |
| GET | /tools | ✅ | Listar tools |
| POST | /execute | ✅ | Executar tool |
GET /health
curl https://<SEU_DOMINIO>/health
{"status":"healthy","version":"2.2.0","tools":19,"sse":0}
POST /execute
curl -X POST \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{"tool":"list_customers","arguments":{"limit":5}}' \
https://<SEU_DOMINIO>/execute
7. Tools Disponíveis
Resumo (19 tools)
| Categoria | Tools | Quantidade | |-----------|-------|------------| | Customers | list, get, search, create | 4 | | Lawsuits | list, get, search, create, update | 5 | | Transactions | list, get | 2 | | Tasks | list, create | 2 | | Settings | get_settings, get_users, get_origins, get_stages, get_type_lawsuits | 5 | | Rewards | get_users_rewards | 1 |
7.1 Customers (Clientes)
list_customers
Lista e busca clientes com filtros.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| name | string | ❌ | Nome do cliente (busca parcial) |
| phone | string | ❌ | Telefone |
| email | string | ❌ | Email |
| city | string | ❌ | Cidade |
| limit | number | ❌ | Máximo de resultados (default: 100, max: 500) |
| offset | number | ❌ | Pular resultados (paginação) |
Exemplo:
{"tool":"list_customers","arguments":{"name":"Silva","limit":10}}
get_customer
Obtém detalhes de um cliente pelo ID.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| customer_id | number | ✅ | ID do cliente |
Exemplo:
{"tool":"get_customer","arguments":{"customer_id":12345}}
search_customers
Busca clientes por nome.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| query | string | ✅* | Termo de busca |
| name | string | ✅* | Alternativa ao query |
create_customer
Cria um novo cliente.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| users_id | number | ✅ | ID do usuário criando |
| customers_origins_id | number | ✅ | ID da origem do cliente |
| name | string | ✅ | Nome do cliente |
| email | string | ❌ | Email |
| document | string | ❌ | CPF/CNPJ |
| identification | string | ❌ | RG |
| phone | string | ❌ | Telefone |
| birthdate | string | ❌ | Data nascimento (YYYY-MM-DD) |
Exemplo:
{
"tool": "create_customer",
"arguments": {
"users_id": 1,
"customers_origins_id": 2,
"name": "João da Silva",
"email": "joao@email.com",
"phone": "85999999999"
}
}
7.2 Lawsuits (Processos)
list_lawsuits
Lista processos com filtros.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| name | string | ❌ | Nome da pasta/cliente |
| process_number | string | ❌ | Número do processo |
| customer_id | number | ❌ | ID do cliente |
| responsible_id | number | ❌ | ID do responsável |
| group_id | number | ❌ | ID do grupo/área |
| limit | number | ❌ | Máximo de resultados |
| offset | number | ❌ | Pular resultados |
get_lawsuit
Obtém detalhes de um processo.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| lawsuit_id | number | ✅ | ID do processo |
search_lawsuits
Busca processos por nome/pasta.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| query | string | ✅* | Termo de busca |
| name | string | ✅* | Alternativa |
create_lawsuit
Cria um novo processo.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| users_id | number | ✅ | ID do usuário criando |
| customers_id | array[number] | ✅ | IDs dos clientes |
| stages_id | number | ✅ | ID do estágio |
| type_lawsuits_id | number | ✅ | ID do tipo de processo |
| process_number | string | ❌ | Número do processo |
| protocol_number | string | ❌ | Número do protocolo |
| folder | string | ❌ | Nome da pasta |
| date | string | ❌ | Data (YYYY-MM-DD) |
| notes | string | ❌ | Observações |
Exemplo:
{
"tool": "create_lawsuit",
"arguments": {
"users_id": 1,
"customers_id": [123, 456],
"stages_id": 5,
"type_lawsuits_id": 10,
"folder": "Silva vs Estado",
"process_number": "0001234-56.2026.8.06.0001"
}
}
update_lawsuit
Atualiza um processo existente.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| lawsuit_id | number | ✅ | ID do processo |
| stages_id | number | ❌ | Novo estágio |
| type_lawsuits_id | number | ❌ | Novo tipo |
| process_number | string | ❌ | Número do processo |
| folder | string | ❌ | Nome da pasta |
| notes | string | ❌ | Observações |
7.3 Transactions (Transações)
list_transactions
Lista transações financeiras.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| date_payment_start | string | ❌ | Data pagamento início (YYYY-MM-DD) |
| date_payment_end | string | ❌ | Data pagamento fim |
| date_due_start | string | ❌ | Data vencimento início |
| date_due_end | string | ❌ | Data vencimento fim |
| lawsuit_id | number | ❌ | Filtrar por processo |
| limit | number | ❌ | Máximo de resultados |
| offset | number | ❌ | Pular resultados |
Exemplo:
{
"tool": "list_transactions",
"arguments": {
"date_payment_start": "2026-01-01",
"date_payment_end": "2026-01-31"
}
}
get_transaction
Obtém detalhes de uma transação.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| transaction_id | number | ✅ | ID da transação |
7.4 Tasks (Tarefas)
list_tasks
Lista tarefas e compromissos.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| date_start | string | ❌ | Data início (YYYY-MM-DD) |
| date_end | string | ❌ | Data fim |
| user_id | number | ❌ | Filtrar por usuário |
| lawsuit_id | number | ❌ | Filtrar por processo |
| task_id | number | ❌ | Filtrar por tipo de tarefa |
| limit | number | ❌ | Máximo de resultados |
| offset | number | ❌ | Pular resultados |
create_task
Cria uma nova tarefa/compromisso.
| Parâmetro | Tipo | Obrigatório | Descrição |
|-----------|------|-------------|-----------|
| from | number | ✅ | ID do usuário criando |
| guests | array[number] | ✅ | IDs dos convidados |
| tasks_id | number | ✅ | ID do tipo de tarefa |
| lawsuits_id | number | ✅ | ID do processo |
| start_date | string | ✅ | Data início (YYYY-MM-DD) |
| start_time | string | ❌ | Hora início (HH:MM) |
| end_date | string | ❌ | Data fim |
| end_time | string | ❌ | Hora fim |
| date_deadline | string | ❌ | Prazo |
| comments | string | ❌ | Comentários |
| local | string | ❌ | Local |
| urgent | boolean | ❌ | Urgente |
| important | boolean | ❌ | Importante |
Exemplo:
{
"tool": "create_task",
"arguments": {
"from": 1,
"guests": [2, 3],
"ta
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
120.4kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
88.6kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
