@konsulto/mcp
Official@konsulto/mcp
Servidor MCP que permite a Claude Code (y a cualquier otro cliente compatible con MCP) gestionar la plataforma de auditoría de ciberseguridad Konsulto desde la CLI:
Leer — listar auditorías en las que participas, buscar hallazgos/plantillas, leer un hallazgo (incluyendo el cuerpo renderizado como markdown para que el LLM pueda razonar sobre el texto), leer una sección específica.
Escribir — redactar hallazgos a partir de campos estructurados (el backend construye el cuerpo Tiptap), actualizar escalares, añadir/reemplazar texto de secciones usando markdown, cambiar el estado de forma masiva con una vista previa de prueba (dry-run).
Evidencia — subir archivos/contenido en línea/base64, insertar evidencia en el cuerpo de un hallazgo en la sección correcta.
Alcance y activos — listar el alcance, listar/crear activos, buscar o crear un activo y vincularlo a un hallazgo.
Actúa como el usuario, con sus permisos de rol, protegido por un token MCP por usuario. Tres controles de tiempo de ejecución: bandera de función del inquilino habilitada, el rol tiene mcp:use, token no revocado/expirado.
Inicio rápido
1. Genera un token MCP en la aplicación web de Konsulto
Inicia sesión → Perfil → Tokens MCP → Nuevo token MCP. Copia el valor kon_mcp_… una vez; no se volverá a mostrar. (El administrador del inquilino debe haber habilitado la integración MCP primero en Cuenta → Acceso a API.)
2. Guarda el token localmente
mkdir -p ~/.konsulto && chmod 700 ~/.konsulto
cat > ~/.konsulto/credentials <<EOF
token: kon_mcp_REPLACE_WITH_YOUR_TOKEN
endpoint: https://api.konsulto.io
EOF
chmod 600 ~/.konsulto/credentialsO utiliza la variable de entorno KONSULTO_TOKEN si prefieres no escribir un archivo.
3. Informa a Claude Code sobre el servidor
Añádelo a ~/.claude/mcp.json:
{
"mcpServers": {
"konsulto": {
"command": "npx",
"args": ["-y", "@konsulto/mcp"]
}
}
}Verifica la conexión:
npx @konsulto/mcp doctorDeberías ver todas las marcas de verificación en verde.
Related MCP server: claude-sessions-mcp
Anclaje de carpetas (opcional, recomendado)
Ejecuta npx @konsulto/mcp init dentro de una carpeta de compromiso para anclarla a una auditoría:
~/audits/acme-q2-pentest/
├── .konsulto.yml ← pins this folder to one audit
├── recon/
└── notes.mdCuando Claude Code se inicia en esa carpeta (o en cualquier subcarpeta), el MCP ancla automáticamente la auditoría. Ya no tendrás que pensar en IDs de auditoría.
El archivo se puede compartir con tu equipo; contiene un ID de auditoría y un endpoint opcional, sin secretos.
Patrones de flujo de trabajo
Patrón | Cuándo usarlo |
| Trabajo repetitivo en el mismo compromiso. Ejecuta |
| Un espacio de trabajo, cambiando de auditoría mentalmente. Dile a Claude "cambia a <nombre de auditoría>". |
Explícito por llamada | Haciendo malabares con varias auditorías en una sesión. Pasa |
Herramientas
Cada herramienta tiene el prefijo konsulto_* para que no colisione con otros MCPs (Burp, nmap, prowler, etc.) que puedas tener configurados.
Identidad y contexto
Herramienta | Qué hace |
| Identidad, permisos, auditoría activa. Llama primero en una sesión. |
| Lista las auditorías de las que eres miembro. |
| Ancla una auditoría para el resto de la sesión (coincidencia difusa por nombre). |
| Orientación rápida: nombre, estado, recuento de alcance/activos, resumen de severidad, equipo. |
Plantillas
Herramienta | Qué hace |
| Encuentra plantillas de hallazgos por consulta/severidad. Formato ligero: id, título, severidad, resumen, nombres de ranuras, taxonomía. Sin cuerpo. |
Hallazgos — lectura
Herramienta | Qué hace |
| Busca dentro de una auditoría (por defecto a la activa). |
| Lee un hallazgo incluyendo su cuerpo renderizado como markdown para que el LLM pueda razonar sobre el texto. |
| Lee solo una sección del cuerpo de un hallazgo como markdown. Más barato que |
Hallazgos — escritura
Herramienta | Qué hace |
| Crea a partir de campos estructurados + plantilla opcional + evidencia. El backend construye el cuerpo Tiptap. |
| Cambia campos escalares (título, severidad, estado, taxonomía, activos). |
| Cambio de estado masivo. Soporta |
| Añade texto en markdown a una sección. Los nombres de las secciones aceptan alias (recomendaciones, mitigación, corrección, resumen, etc.) — se normalizan a claves canónicas en el servidor. |
| Reemplaza el texto de una sección. El contenido antiguo se guarda en el historial de auditoría. |
Evidencia
Herramienta | Qué hace |
| Sube una ruta de archivo / contenido en línea / base64. Devuelve un evidenceId. |
| Inserta un evidenceId en el cuerpo de un hallazgo existente (la colocación |
Alcance y activos
Herramienta | Qué hace |
| Elementos de alcance para una auditoría: qué está autorizado para probar. |
| Activos en la auditoría (o en todo el inquilino). |
| Crea un host / URL / rol IAM / etc. cuando un escaneo revela uno que aún no está rastreado. |
| Busca o crea un activo por nombre y lo vincula a un hallazgo. |
CLI de ayuda
El paquete incluye dos binarios:
konsulto-mcp— el servidor MCP stdio. Claude Code lo inicia. No lo ejecutas directamente.konsulto— asistente interactivo:konsulto init— escribe.konsulto.ymlpara la carpeta actualkonsulto whoami— verifica el token, muestra identidad + permisos + auditoría activakonsulto doctor— verifica el modo del archivo de credenciales, validez del token, conectividad de red, función MCP habilitada, si el rol tienemcp:use
Solución de problemas
Síntoma | Causa probable | Solución |
| No hay variable | Establece la variable de entorno o crea el archivo (ver paso 2 de Inicio rápido). |
| Usaste un token | Genera un token |
401 / "authentication failed" en cada herramienta | Token revocado o expirado | Genera uno nuevo y actualiza |
403 / "tenant has disabled MCP" | El administrador del inquilino desactivó MCP | Pide al administrador que lo vuelva a activar en Cuenta → Acceso a API. |
403 / "role no longer permits MCP" | Tu rol perdió | Pide a un administrador que conceda el permiso a tu rol. |
| Permisos laxos en el archivo de credenciales |
|
konsulto doctor cubre cada uno de estos explícitamente con una solución de una línea.
Modelo de seguridad
Tres controles en vivo en cada solicitud API: bandera de función del inquilino habilitada, tu rol tiene
mcp:use, tu token no revocado/expirado. Si cualquiera de ellos cambia, el tráfico MCP se corta inmediatamente; no se requiere revocación por token.Almacenamiento de tokens:
~/.konsulto/credentials(chmod 600) o variableKONSULTO_TOKEN. Nunca en~/.claude/mcp.json.Correo electrónico de primera vez desde nueva IP: cuando tu token se usa desde una IP no vista anteriormente, recibes un correo electrónico para que una filtración sea detectable. El correo incluye un enlace al flujo de revocación.
Expiración por defecto: 90 días. Máximo 365.
Los permisos se leen en vivo: cambiar tu rol se propaga en una solicitud; no necesitas volver a emitir el token.
Múltiples compromisos en una máquina
Establece KONSULTO_PROFILE=acme para leer ~/.konsulto/credentials.acme en lugar del predeterminado. Útil cuando trabajas como contratista en el inquilino Konsulto de un cliente desde la misma computadora que usas para el inquilino de tu empresa.
Licencia
MIT — ver LICENSE.
Available Tools
19 toolskonsulto_add_evidence_to_findingA
Graft an already-uploaded attachment into an existing finding's body at the named section. The "auto" section walks poc → description → impact → remediation → end-of-doc. Use this when adding evidence after the finding was created (e.g. screenshots taken later, additional reproduction logs).
Inputs: findingId (required), evidenceId (required), caption, section.
konsulto_append_to_sectionA
Append markdown prose to a named section of a finding. Use this to add a paragraph or two without touching the rest of the finding. Content is markdown — paragraphs, lists, code blocks, links. The backend converts it to the finding's rich-text format.
Inputs: findingId (required), section (required), content (required).
konsulto_attach_evidenceA
Upload a file (or inline content) as an attachment in the active audit. Returns an evidenceId. Pass the evidenceId to konsulto_add_evidence_to_finding or include it in konsulto_compose_finding's evidence array to graft it into a finding's body. This tool only uploads — it does NOT link to a finding by itself. Exactly one of filePath/content/contentBase64 must be set.
Inputs: audit, filePath, content, contentBase64, +2 more.
konsulto_bulk_update_statusA
Change the status of many findings at once. Use for "client confirmed the fix on all of these" or "all stale findings should be closed". Set dryRun: true first to preview affected findings before committing.
Inputs: findingIds (required), status (required), dryRun.
konsulto_compose_findingA
Create a brand-new finding from structured fields + optional template + optional evidence. The backend builds the Tiptap body from a layout — NEVER pass Tiptap JSON as a field. Use plain prose for summary/impact/remediation, an array of plain strings for stepsToReproduce. Evidence is grafted into the body at the requested section ("auto" walks poc → description → impact → remediation → end).
Inputs: fields (required), audit, templateId, severity, +2 more.
konsulto_create_assetA
Create a new asset in the active audit. Use when a scan or evidence reveals a host/URL/IP that isn't yet tracked. After creating, use konsulto_link_asset to attach it to a finding.
Inputs: name (required), type (required), audit, identifiers, +2 more.
konsulto_get_audit_contextA
One-shot orientation tool — returns the active audit's name, status, dates, scope element count, asset count, finding severity rollup, and team. Call this at session start (after whoami) to ground yourself before doing work in the audit. Defaults to the active audit; pass audit to override.
Inputs: audit.
konsulto_get_findingA
Read a single finding by ID, including its body rendered as markdown so the LLM can reason about the prose. Use when the user asks to review, explain, or summarize a specific finding. The body markdown is alongside the structured fields (severity, status, taxonomy, etc.).
Inputs: findingId (required).
konsulto_link_assetA
Attach an asset to a finding. Tries to match an existing asset by name (case-insensitive substring); creates one if none matches. Then patches the finding's assets[] to include the reference. Use this when the user says "this finding affects acme.com:443" — the tool figures out whether to reuse an existing asset or make a new one.
Inputs: findingId (required), assetHint (required), assetType.
konsulto_list_assetsA
List assets in the audit (or tenant-wide if no audit filter). Returns name, type, identifiers (hostname/ip/url/cidr) so you can match evidence to the right asset. Use konsulto_link_asset to attach an asset to a finding.
Inputs: audit, q, limit.
konsulto_list_my_auditsA
List audits this user is a team member of. Use to find the audit ID you want to work in. Filter by status (active/draft/completed/archived).
Inputs: status, limit.
konsulto_list_scopeA
List the scope elements for an audit — what's authorized to be tested. Use to confirm targets are in-scope before recording findings against them. Defaults to the active audit.
Inputs: audit.
konsulto_read_sectionA
Read just one section of a finding's body as markdown. Use for "explain the POC", "summarize the impact", "show me the remediation". Cheaper context-wise than konsulto_get_finding when the user only cares about one section. Section name accepts aliases (recommendations, mitigation, summary, etc.) — they map to canonical names server-side.
Inputs: findingId (required), section (required).
konsulto_replace_sectionA
Replace the entire prose under a named section. The previous content is preserved on the audit trail (recoverable). Prefer konsulto_append_to_section unless the user explicitly wants to rewrite the section. Content is markdown.
Inputs: findingId (required), section (required), content (required).
konsulto_search_findingsA
Search findings within an audit. Defaults to the active audit when set. Returns titles, severities, statuses, and IDs — the body field is not included. Use to check for duplicates before creating a new finding and to find a specific finding to update or attach evidence to.
Inputs: audit, q, severity, status, +1 more.
konsulto_search_templatesA
Search the finding-template catalog. Returns a slim shape (id, title, severity, summary, slot names, taxonomy) — NOT the full template body. Use this to pick a template before calling konsulto_compose_finding. When multiple candidates match, prefer the one whose summary best fits the evidence in hand.
Inputs: q, severity, limit.
konsulto_set_active_auditA
Pin one audit as the session's active audit. Subsequent tools that take an optional audit argument will default to this one. Accepts an audit ID OR a substring of the audit name (fuzzy match — exact match wins, then unique substring). Folder-level pinning via .konsulto.yml is the recommended persistent alternative.
Inputs: audit (required).
konsulto_update_findingA
Update scalar fields on an existing finding. Use this for changing title, severity, status, taxonomy, or assets — NOT for editing the prose body (use konsulto_append_to_section / konsulto_replace_section for that). NOT for evidence (use konsulto_add_evidence_to_finding).
Inputs: findingId (required), patch (required).
konsulto_whoamiA
Show who the MCP is acting as, their permissions, the active audit, and how authentication is configured. Call this first in any session to orient yourself before performing actions. Returns user identity, tenant, role permissions, MCP token expiry, and active audit pin.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Every tool has a clearly distinct purpose. Overlaps like append_to_section and replace_section are differentiated by operation type, and search vs get findings serve different needs. No ambiguity.
All tools follow a consistent 'konsulto_verb_noun' pattern. Verbs are action-specific (add, append, attach, compose, create, etc.) and nouns target distinct entities, making names predictable and easy to navigate.
19 tools cover the core workflows of a security audit MCP server—finding management, evidence, assets, templates, and audit context. The count is well-scoped, each tool earning its place without bloat.
The tool surface is comprehensive for the stated purpose, covering creating, reading, updating, and searching findings, evidence lifecycle, asset management, and audit orientation. The only notable gap is the absence of deletion operations (findings, assets, etc.), which may be intentional but slightly reduces completeness.
Maintenance
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server for the OnSecurity API that allows Claude to query Rounds, Findings, Prerequisites, Blocks and Notifications.5MIT
- AlicenseBqualityDmaintenanceMCP server for managing Claude Code conversation sessions12MIT
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT
- AlicenseAqualityDmaintenanceMCP server orchestrating local CLI agents (Claude Code, OpenAI Codex, Google Gemini) for cross-validation, second opinions, and persona-driven prompting.18MIT