mcp-database-tools
mcp-database-tools
Servidor MCP que proporciona herramientas SQL y de base de datos para agentes de IA. Todo el análisis se realiza sobre texto SQL; no se requiere conexión real a la base de datos.
Herramientas
sql_format
Formatea y embellece consultas SQL con sangría adecuada, palabras clave en mayúsculas y columnas alineadas. Admite sintaxis de MySQL, PostgreSQL y SQLite.
sql_explain
Toma una consulta SQL y explica qué hace en lenguaje sencillo, paso a paso. Identifica el tipo de consulta, tablas, columnas, condiciones y proporciona consejos de optimización.
schema_analyze
Analiza sentencias CREATE TABLE para extraer tablas, columnas, tipos, restricciones, claves foráneas e índices. Genera un diagrama ER en formato Mermaid.
query_build
Construye consultas SQL a partir de descripciones en lenguaje natural. Admite patrones comunes como filtrado por fecha, agregación, uniones, ordenamiento y paginación.
migration_generate
Compara dos esquemas (sentencias CREATE TABLE antiguas vs nuevas) y genera sentencias de migración ALTER TABLE. Produce migraciones tanto hacia arriba (avance) como hacia abajo (reversión).
Related MCP server: DB MCP Server
Instalación
npm install
npm run buildUso
Con Claude Desktop
Agrega a tu configuración de Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"database-tools": {
"command": "node",
"args": ["path/to/mcp-database-tools/dist/index.js"]
}
}
}Independiente
npm startDesarrollo
npm run build # Compile TypeScript
npm start # Run the serverLicencia
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.1,1183,147Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables executing SQL queries, schema introspection, and data management for PostgreSQL and MySQL databases via natural language, supporting local, SSH, and AWS RDS connections.92MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.1MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI tools to understand a database, inspect schema, and run safe SELECT queries with SQL guardrails, plus optional codebase reading.
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-database-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server