← Back to search

io.github.cocaxcode/database-mcp

cocaxcode Scanned 6h ago

MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.

C
74.2 / 100

Versions

0.1.14latest
first seen May 19, 2026
PermissionsTool SafetyAuthAnnotationsCode QualityStabilitySpecVuln HistoryAuthorTransparencyCommunity

Tools 34

conn_create
annotations: none low

Crea una nueva conexion a base de datos (PostgreSQL, MySQL o SQLite). SIEMPRE pregunta al usuario a que grupo pertenece.

dsn string host string name string port number user string group string database string filepath string password string
conn_list
annotations: none low

Lista todas las conexiones disponibles e indica cual esta activa.

conn_get
annotations: none low

Obtiene los detalles de una conexion. El password se muestra enmascarado.

name string
conn_set
annotations: none low

Actualiza un campo de una conexion existente.

key string name string value string
conn_switch
annotations: none low

Cambia la conexion activa (de sesion). Para cambiar el default permanente usa conn_set_default.

name string project string
conn_rename
annotations: none low

Renombra una conexion existente.

name string new_name string
conn_delete
annotations: none low

Elimina una conexion. IMPORTANTE: pide confirmacion al usuario antes de llamar esta tool con confirm=true.

name string confirm boolean
conn_duplicate
annotations: none low

Duplica una conexion existente con un nuevo nombre.

name string new_name string
conn_test
annotations: none low

Prueba la conexion a una base de datos. Ejecuta SELECT 1 y mide la latencia.

name string
conn_project_list
annotations: none low

Lista todos los proyectos con conexiones especificas asignadas.

conn_project_clear
annotations: none low

Elimina la asociacion de conexion especifica de un proyecto.

project string
conn_export
annotations: none low

Exporta conexiones a JSON. Por defecto enmascara passwords — usa include_secrets=true para incluirlos.

name string include_secrets boolean
conn_import
annotations: none low

Importa conexiones desde un JSON exportado. Omite conexiones que ya existen (usa overwrite=true para reemplazar).

json string overwrite boolean
conn_group_create
annotations: none low

Crea un nuevo grupo de conexiones. Luego añade scopes (directorios) con conn_group_add_scope.

name string
conn_group_list
annotations: none low

Lista todos los grupos con sus scopes, default y conexiones.

conn_group_delete
annotations: none low

Elimina un grupo. Las conexiones del grupo NO se eliminan pero quedaran huerfanas.

name string
conn_group_add_scope
annotations: none low

Añade un directorio (scope) a un grupo. Las conexiones del grupo seran accesibles desde ese directorio.

group string scope string
conn_group_remove_scope
annotations: none low

Quita un directorio (scope) de un grupo.

group string scope string
conn_set_default
annotations: none low

Marca una conexion como el default de su grupo. El default se activa automaticamente al entrar al proyecto.

name string
conn_set_group
annotations: none low

Asigna o cambia el grupo de una conexion existente.

group string connection string
execute_query
annotations: none low

Ejecuta una consulta de lectura (SELECT, SHOW, etc.). Inyecta LIMIT automaticamente. El result se comprime por defecto (verbosity=normal, celdas truncadas a 500 bytes) para ahorrar tokens; usa inspect_last_query con el call_id para recuperar el result completo sin re-ejecutar.

sql string limit number
execute_mutation
annotations: none low

Ejecuta una mutacion (INSERT, UPDATE, DELETE, DDL). Pide confirmacion y crea snapshot para rollback. El result se comprime por defecto — para mutations usa verbosity=minimal si solo te interesa affectedRows.

sql string
explain_query
annotations: none low

Muestra el plan de ejecucion de una consulta (EXPLAIN). Sin ANALYZE por defecto.

sql string analyze boolean
inspect_last_query
annotations: none low

Recupera el result completo (sin celdas truncadas, sin row cap) de un execute_query / execute_mutation / explain_query previo. Usa el call_id que aparece en la response comprimida. Sin call_id devuelve el más reciente. NO re-ejecuta el SQL.

config_get
annotations: none low

Muestra la configuracion actual del servidor (limites de rollback e historial).

config_set
annotations: none low

Modifica la configuracion del servidor. Los cambios se guardan permanentemente.

max_history number max_rollbacks number
db_dump
annotations: none low

Exporta la base de datos a un archivo SQL. Flujo conversacional: primero pregunta si exportar todas las tablas o personalizar, luego que contenido incluir (estructura, datos o todo).

schema string
db_restore
annotations: none low

Restaura un dump SQL en la base de datos activa. IMPORTANTE: esta operacion es destructiva (DROP TABLE + CREATE TABLE). Pide confirmacion al usuario antes de ejecutar con confirm=true.

confirm boolean filename string
db_dump_list
annotations: none low

Lista los dumps disponibles en el proyecto actual.

history_list
annotations: none low

Lista el historial de consultas ejecutadas. Filtrable por tipo, conexion y estado.

type string limit number success boolean connection string
history_clear
annotations: none low

Limpia el historial de consultas. Opcionalmente solo las anteriores a una fecha.

before string
rollback_list
annotations: none low

Lista los rollback snapshots disponibles. Muestra las mutaciones recientes que se pueden revertir.

limit number connection string
rollback_apply
annotations: none low

Revierte una mutacion usando un rollback snapshot. IMPORTANTE: confirma con el usuario antes de ejecutar con confirm=true.

id string confirm boolean
search_schema
annotations: none low

Busca tablas/vistas en el schema de la base de datos. Soporta 3 niveles de detalle: names (solo nombres), summary (nombres + columnas), full (todo + FK + indices).

schema string pattern string

Permissions 2

filesystem low
Server uses filesystem capabilities via: fs/promises
env_vars low
Server uses env_vars capabilities via: process.env

Scan Findings 86

medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-49j4-86m8-q2jw) dependency_analyzer · 95%
low
Tool 'conn_group_list' has no annotations annotation_checker · 100%
low
Tool 'conn_create' has no annotations annotation_checker · 100%
low
Tool 'conn_list' has no annotations annotation_checker · 100%
low
Tool 'conn_get' has no annotations annotation_checker · 100%
low
Tool 'conn_set' has no annotations annotation_checker · 100%
low
Tool 'conn_switch' has no annotations annotation_checker · 100%
low
Tool 'conn_rename' has no annotations annotation_checker · 100%
low
Tool 'conn_delete' has no annotations annotation_checker · 100%
low
Tool 'conn_duplicate' has no annotations annotation_checker · 100%
low
Tool 'conn_test' has no annotations annotation_checker · 100%
low
Tool 'conn_project_list' has no annotations annotation_checker · 100%
low
Tool 'conn_project_clear' has no annotations annotation_checker · 100%
low
Tool 'conn_export' has no annotations annotation_checker · 100%
low
Tool 'conn_import' has no annotations annotation_checker · 100%
low
Tool 'conn_group_create' has no annotations annotation_checker · 100%
low
Tool 'conn_group_delete' has no annotations annotation_checker · 100%
low
Tool 'conn_group_add_scope' has no annotations annotation_checker · 100%
low
Tool 'conn_group_remove_scope' has no annotations annotation_checker · 100%
low
Tool 'conn_set_default' has no annotations annotation_checker · 100%
low
Tool 'conn_set_group' has no annotations annotation_checker · 100%
low
Tool 'execute_query' has no annotations annotation_checker · 100%
low
Tool 'execute_mutation' has no annotations annotation_checker · 100%
low
Tool 'explain_query' has no annotations annotation_checker · 100%
low
Tool 'inspect_last_query' has no annotations annotation_checker · 100%
low
Tool 'config_get' has no annotations annotation_checker · 100%
low
Tool 'config_set' has no annotations annotation_checker · 100%
low
Tool 'db_dump' has no annotations annotation_checker · 100%
low
Tool 'db_restore' has no annotations annotation_checker · 100%
low
Tool 'db_dump_list' has no annotations annotation_checker · 100%
low
Tool 'history_list' has no annotations annotation_checker · 100%
low
Tool 'history_clear' has no annotations annotation_checker · 100%
low
Tool 'rollback_list' has no annotations annotation_checker · 100%
low
Tool 'rollback_apply' has no annotations annotation_checker · 100%
low
Tool 'search_schema' has no annotations annotation_checker · 100%
info
Sandbox failed to start for behavioral verification behavioral_verifier · 100%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-3f6p-5ww8-9rcr) dependency_analyzer · 95%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-4rch-2fh8-94vw) dependency_analyzer · 95%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-fpw7-j2hg-69v5) dependency_analyzer · 95%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-mqr2-w7wj-jjgr) dependency_analyzer · 95%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-pmh2-wpjm-fj45) dependency_analyzer · 95%
medium
Vulnerable dependency: mysql2@3.9.0 (GHSA-rgwj-5xj2-c3m3) dependency_analyzer · 95%
medium
Vulnerable dependency: vitest@3.2.0 (GHSA-5xrq-8626-4rwp) dependency_analyzer · 95%
medium
Vulnerable dependency: vitest@3.2.0 (GHSA-82fw-gwwq-j7x9) dependency_analyzer · 95%
info
package.json metadata manifest_parser · 100%
info
Tool: conn_create manifest_parser · 70%
info
Tool: conn_list manifest_parser · 70%
info
Tool: conn_get manifest_parser · 70%
info
Tool: conn_set manifest_parser · 70%
info
Tool: conn_switch manifest_parser · 70%
info
Tool: conn_rename manifest_parser · 70%
info
Tool: conn_delete manifest_parser · 70%
info
Tool: conn_duplicate manifest_parser · 70%
info
Tool: conn_test manifest_parser · 70%
info
Tool: conn_project_list manifest_parser · 70%
info
Tool: conn_project_clear manifest_parser · 70%
info
Tool: conn_export manifest_parser · 70%
info
Tool: conn_import manifest_parser · 70%
info
Tool: conn_group_create manifest_parser · 70%
info
Tool: conn_group_list manifest_parser · 70%
info
Tool: conn_group_delete manifest_parser · 70%
info
Tool: conn_group_add_scope manifest_parser · 70%
info
Tool: conn_group_remove_scope manifest_parser · 70%
info
Tool: conn_set_default manifest_parser · 70%
info
Tool: conn_set_group manifest_parser · 70%
info
Tool: execute_query manifest_parser · 70%
info
Tool: execute_mutation manifest_parser · 70%
info
Tool: explain_query manifest_parser · 70%
info
Tool: inspect_last_query manifest_parser · 70%
info
Tool: config_get manifest_parser · 70%
info
Tool: config_set manifest_parser · 70%
info
Tool: db_dump manifest_parser · 70%
info
Tool: db_restore manifest_parser · 70%
info
Tool: db_dump_list manifest_parser · 70%
info
Tool: history_list manifest_parser · 70%
info
Tool: history_clear manifest_parser · 70%
info
Tool: rollback_list manifest_parser · 70%
info
Tool: rollback_apply manifest_parser · 70%
info
Tool: search_schema manifest_parser · 70%
info
Transport: stdio manifest_parser · 90%
info
Required env vars (4) manifest_parser · 80%
info
Sandbox failed to start for output poisoning scan output_poisoning · 100%
low
Permission: filesystem access detected permission_analyzer · 90%
low
Permission: env_vars access detected permission_analyzer · 90%
info
SBOM generated: 371 components sbom_generator · 100%
medium
No build provenance detected (SLSA L0) slsa_assessor · 90%