{
  "markdown": "\n# mcp-database-tools\n\nMCP server providing SQL and database tools for AI agents. All analysis is performed on SQL text — no actual database connection required.\n\n## Tools\n\n### sql_format\nFormat and prettify SQL queries with proper indentation, uppercased keywords, and aligned columns. Supports MySQL, PostgreSQL, and SQLite syntax.\n\n### sql_explain\nTake a SQL query and explain what it does in plain English, step by step. Identifies query type, tables, columns, conditions, and provides optimization tips.\n\n### schema_analyze\nParse CREATE TABLE statements to extract tables, columns, types, constraints, foreign keys, and indexes. Generates an ER diagram in Mermaid format.\n\n### query_build\nBuild SQL queries from natural language descriptions. Supports common patterns like filtering by date, aggregation, joins, ordering, and pagination.\n\n### migration_generate\nCompare two schemas (old vs new CREATE TABLE statements) and generate ALTER TABLE migration statements. Produces both up (forward) and down (rollback) migrations.\n\n## Installation\n\n```bash\nnpm install\nnpm run build\n```\n\n## Usage\n\n### With Claude Desktop\n\nAdd to your Claude Desktop config (`claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"database-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"path/to/mcp-database-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n### Standalone\n\n```bash\nnpm start\n```\n\n## Development\n\n```bash\nnpm run build    # Compile TypeScript\nnpm start        # Run the server\n```\n\n## License\n\nMIT\n",
  "bytes": 1498,
  "sha": "10a76b83ce90501af9fe9a1a8aa230865facc98c9fe9da5b751b6dd3cc1e65e4",
  "repo_slug": "rog0x/mcp-database-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_database_66bd8912/readme"
}