Database MCP server
MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.
2 stars126 downloads/wk
Reviews
Write oneNobody has reviewed Database yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Database tools (26, 4 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
config_getMuestra la configuracion actual del servidor (limites de rollback e historial).
config_setModifica la configuracion del servidor. Los cambios se guardan permanentemente.
conn_createwrite actionCrea una nueva conexion a base de datos (PostgreSQL, MySQL o SQLite).
conn_deletewrite actionElimina una conexion. IMPORTANTE: pide confirmacion al usuario antes de llamar esta tool con confirm=true.
conn_duplicateDuplica una conexion existente con un nuevo nombre.
conn_exportExporta conexiones a JSON. Por defecto enmascara passwords \u2014 usa include_secrets=true para incluirlos.
conn_getObtiene los detalles de una conexion. El password se muestra enmascarado.
conn_importImporta conexiones desde un JSON exportado. Omite conexiones que ya existen (usa overwrite=true para reemplazar).
conn_listLista todas las conexiones disponibles e indica cual esta activa.
conn_project_clearElimina la asociacion de conexion especifica de un proyecto.
conn_project_listLista todos los proyectos con conexiones especificas asignadas.
conn_renameRenombra una conexion existente.
conn_setActualiza un campo de una conexion existente.
conn_switchCambia la conexion activa. Si se especifica project, solo aplica a ese directorio.
conn_testPrueba la conexion a una base de datos. Ejecuta SELECT 1 y mide la latencia.
db_dumpExporta 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).
db_dump_listLista los dumps disponibles en el proyecto actual.
db_restoreRestaura 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.
execute_mutationwrite actionEjecuta una mutacion (INSERT, UPDATE, DELETE, DDL). Pide confirmacion y crea snapshot para rollback.
execute_querywrite actionEjecuta una consulta de lectura (SELECT, SHOW, etc.). Inyecta LIMIT automaticamente.
explain_queryMuestra el plan de ejecucion de una consulta (EXPLAIN). Sin ANALYZE por defecto.
history_clearLimpia el historial de consultas. Opcionalmente solo las anteriores a una fecha.
history_listLista el historial de consultas ejecutadas. Filtrable por tipo, conexion y estado.
rollback_applyRevierte una mutacion usando un rollback snapshot. IMPORTANTE: confirma con el usuario antes de ejecutar con confirm=true.
rollback_listLista los rollback snapshots disponibles. Muestra las mutaciones recientes que se pueden revertir.
search_schemaBusca 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).
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan5 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 32 days ago12/15
- Maintainer identityregistry namespace matches repository owner6/10
How Database compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 85/100
- higher than 65% of 802 Databases servers
- Tools
- 26
- the typical Databases server has 8
- Tools that change things
- 15%
- typical: 10%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 60% of 601 Databases servers
- Downloads a week
- 126
- more than 63% of 324 Databases servers with a package
What its tools let an agent do: 22 read · 2 change · 2 run or deploy
Install Database in Claude Code, Cursor or VS Code
Runs npx -y @cocaxcode/database-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add database-mcp -- npx -y @cocaxcode/database-mcp
What the publisher says
From the Database repository's README, as published. We do not edit it. Read it on GitHub
@cocaxcode/database-mcp Your databases, one conversation away. 33 tools · PostgreSQL · MySQL · SQLite · Connection Groups · Rollback · Dump/Restore · Schema auto-discovery
Overview · Just Talk to It · Connection Groups · Installation · Features · Tool Reference · Storage · Architecture
Quick Overview
The most complete MCP server for databases. 33 tools across 3 engines (PostgreSQL, MySQL, SQLite), with connection groups, named connection management, automatic rollback, dump/restore, schema auto-discovery via MCP Resources, and full query history — all from natural language.
This is not just a query runner. It is a full database workbench: organize connections into groups scoped to your project directories, set defaults that persist between sessions, introspect schemas at three levels of detail, get pre-mutation snapshots on every write, undo mistakes with reverse SQL, dump and restore entire databases, and track every query you run — per project, per connection.
Every connection belongs to a group. Groups have scopes (directories), a default connection, and an active connection. When you work inside a scoped directory, you only see that group's connections — no clutter, no confusion.
You describe what you need. The AI reads your schema, writes the SQL, and executes it safely — with automatic LIMIT injection, pre-mutation snapshots, and confirmation before destructive operations. No cloud accounts, no ORMs, no config files. Credentials never leave your machine. Everything runs locally.
Works with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Codex CLI, Gemini CLI, and any MCP-compatible client.
Just Talk to It
You don't need to memorize tool names or SQL syntax. Just say what you want.
> "Connect to my local PostgreSQL on port 5432, database myapp, user admin"
> "Create a group called backend and add this directory"
> "Connect to my PostgreSQL on localhost, put it in the backend group"
> "Set local-pg as the default connection"
> "Show me all tables"
> "What columns does the users table have?"
> "Show me the last 10 orders with the customer name"
-> AI reads FKs from schema, builds the JOIN, applies LIMIT 10
> "Insert a test user called Alice"
-> Snapshot captured for rollback
> "Oops, undo that"
-> Rows restored via reverse SQL
> "Switch to the production database for this session"
-> Instant context change, all queries now go to prod
> "Delete all inactive users"
-> "This will affect N rows. Call again with confirm=true to proceed."
> "What did I run today?"
-> Full query history with timestamps and execution times
> "Dump the database — structure and data"
-> SQL file generated, ready for restoreShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Database: common questions
- Is Database MCP server safe?
- Yes, by our scan: it is graded A (85/100). Read the Database safety report
- How do I install Database?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Database need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Database maintained?
- The last commit was 68 days ago (2026-08-26). The latest release is v0.1.14.
- What can I use instead of Database?
- Servers from other publishers that do the same job: DBHub MCP server, Faucet MCP server and Quarry MCP server. Compare all Database alternatives.
- How does Database compare with other Databases MCP servers?
- safety score 85/100 (higher than 65% of 802 Databases servers); tools 26 (the typical Databases server has 8); tools that change things 15% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Database
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA
- QuarrySafety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.not reviewedGrowingA
NeoSQL MCPSchemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.not reviewedGrowingA- DB ExplorerRead-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advicenot reviewedGrowingB