db-management
db-management equips database developers and DBAs with targeted tools for query optimization. Use analyze_query for AI-driven performance analysis, root causes, and fix recommendations; detect_slow_queries to identify slow runners in PostgreSQL, MySQL, or MongoDB; and suggest_indexes to spot missing indexes from WHERE, JOIN, and ORDER BY clauses. Get execution plans via explain_query and table health stats with get_table_stats.
Free Community Server
- Free
- Direct access
- No signup
Connect db-management
Pick where you'll use it. We'll show the one step you need.
API key required
Replace YOUR_API_KEY below with the key this server's developer gave you.
Add it to Claude
Opens Claude with this server filled in as a custom connector. Click Add, then Connect and sign in with MCPize. Works on claude.ai, Claude Desktop and mobile.
Add to ClaudeOn Claude Team and Enterprise, only organization Owners can add custom connectors.
Using Claude Code?
terminal claude mcp add --transport http --scope user db-management https://db-management.mcpize.runOr let the MCPize CLI set it up.
$ npx mcpize install db-management --client claude-codeManual setup & config
Paste this JSON config
JSON { "mcpServers": { "db-management": { "type": "http", "url": "https://db-management.mcpize.run" } } }Config file: Claude Code: .mcp.json (project) or ~/.claude.json (user). claude.ai, Claude Desktop and mobile: use Add to Claude above.
Direct access — no authentication required
Config files for Claude, Cursor and VS Code
Claude Code
Run in your terminal.
claude mcp add --transport http --scope user db-management https://db-management.mcpize.runCursor
Add to ~/.cursor/mcp.json, or .cursor/mcp.json in your project.
{
"mcpServers": {
"db-management": {
"url": "https://db-management.mcpize.run"
}
}
}VS Code
Run in your terminal, or add the server to .vscode/mcp.json.
code --add-mcp '{"name":"db-management","type":"http","url":"https://db-management.mcpize.run"}'About db-management
Overview
The db-management MCP server provides specialized tools for diagnosing and optimizing database queries across PostgreSQL, MySQL, and MongoDB. It connects directly to your database to analyze execution plans, detect slow queries, and suggest indexes, enabling precise performance tuning without manual deep dives. Database teams use it to reduce query times and resource usage through data-driven insights.
Key Capabilities
analyze_query: Analyzes a raw SQL query's execution plan to pinpoint performance issues, root causes, severity levels, and targeted fixes with estimated improvements.detect_slow_queries: Scans live or historical queries using database-specific stats (pg_stat_statements for PostgreSQL, performance_schema for MySQL, currentOp for MongoDB) to identify current or past slow performers.suggest_indexes: Parses WHERE, JOIN, and ORDER BY clauses in a query, compares against existing indexes, and recommends missing ones for better performance.explain_query: Executes EXPLAIN (or EXPLAIN ANALYZE with verbose flag) on a query, delivering a readable breakdown of the plan, bottlenecks like sequential scans, and improvement suggestions.get_table_stats: Fetches table metrics including size, row count, index size, health score, plus PostgreSQL-specific details like last vacuum time and sequential scans.compare_queries: Contrasts execution plans of two query versions side-by-side, uses AI to declare a winner, and explains why with actionable recommendations.
Use Cases
Run detect_slow_queries on a production PostgreSQL instance to list top slow queries from pg_stat_statements, then apply analyze_query to refactor the worst offender. Before deploying a new report query, use suggest_indexes to check for missing indexes on JOIN columns and avoid full table scans. Compare an original SQL query against a rewritten version with compare_queries to validate which runs faster and why during code reviews. Check table bloat with get_table_stats on high-traffic tables to schedule vacuums based on sequential scan counts.
Who This Is For
Database administrators, backend developers, and data engineers who write and optimize SQL queries. Requires familiarity with SQL and basic database concepts like indexes and execution plans; ideal for intermediate users managing PostgreSQL, MySQL, or MongoDB workloads.
Tools
- Try: "Analyze slow users join query on PostgreSQL"
Takes a raw SQL query and returns a full AI-powered analysis. Analyzes query execution plan to identify performance issues, root causes, and provides fix recommendations with severity and estimated improvement.
- Try: "Compare old vs new orders query on PostgreSQL"
Takes two versions of the same query and compares their execution plans side by side. Uses AI to determine which is better and why, returning a winner with reasoning and recommendation.
- Try: "Find slow queries in PostgreSQL db over 2s"
Connects to the database and finds queries that are currently running slow or have historically been slow. For PostgreSQL uses pg_stat_statements, for MySQL uses performance_schema, for MongoDB uses currentOp.
- Try: "Explain this query with timings on MySQL"
Runs EXPLAIN on a query and returns a human-readable breakdown of the execution plan. Uses EXPLAIN ANALYZE for real timing if verbose flag is set. Identifies bottlenecks like sequential scans and provides suggestions.
- Try: "Get health stats for products table in MongoDB"
Returns health statistics about a table - size, row count, index size, and health score. For PostgreSQL also shows last vacuum time and sequential scan count.
- Try: "Suggest indexes for orders query on users table"
Analyzes a query and compares it with existing indexes on the table to suggest what indexes are missing. Parses WHERE, JOIN, and ORDER BY clauses to identify columns that should be indexed.
Loading reviews...
Developer
MCP servers related to db-management
- SpectraFree tierGenerates high-quality unit tests for source code and proves it with a coverage before/after report on every run. Free tools: suggest_edge_cases, check_quota. Paid tools: generate_tests, analyze_coverage.
- DevArchitect ProFree tierDevArchitect Pro MCP server (devarchitect-pro-mcp) enables API access to professional software architecture functions for modeling systems, generating diagrams, and scaffolding code. Software architects and senior developers use it to manage designs in large-scale projects and ensure architectural consistency across teams.
- upwork-bidcraftFree tierGenerate personalized, high-converting Upwork proposals from any job post in seconds.
- deadcode-mcpFree tierdeadcode-mcp provides MCP access to dead code detection in JavaScript and TypeScript projects. It scans codebases for unused functions, variables, imports, and files using static analysis. Software developers and DevOps teams apply it in refactoring, CI/CD pipelines, and monorepo maintenance to reduce bloat and technical debt.
- Dep Upgrade AdvisorFree tierThe Dep Upgrade Advisor MCP server scans project dependencies, assesses upgrade paths, and generates reports on compatibility risks and migration steps. It processes lockfiles and manifests from package managers like npm, yarn, or pip. Developers and DevOps engineers use it to plan dependency updates without introducing regressions in production codebases.
- Deploy Readiness PostmortemFree tierProvides MCP access to functions for analyzing deployment readiness failures through structured postmortems. Captures incident details from CI/CD gates, performs root cause analysis, and generates reports. DevOps engineers and SREs use it to diagnose pre-deploy issues and refine pipelines.
- Developer Tools MCP ServerFree tierProvides an MCP server with APIs to retrieve and search GitHub repositories, npm and PyPI packages, and Stack Overflow content. Useful for developers needing programmatic access to code repositories, package metadata, and developer Q&A for integration or automation tasks.
- Docker CI LintFree tierRuns docker-ci-lint to analyze Dockerfiles for syntax errors, best practices violations, and security issues within CI/CD pipelines. DevOps engineers and developers use it to validate configurations before building images, integrating via MCP for automated checks in GitHub Actions or Jenkins.
- docker-ops-mcpFreeDocker Ops MCP lets developers manage Docker environments via intuitive LLM commands. Verify availability with docker_check, scan repositories for Dockerfiles and Compose files using analyze_repo, and retrieve container, image, and volume stats via docker_overview. Build images with docker_build, prune unused resources with docker_prune, back up volumes with volume_backup, or rewrite single-stage Dockerfiles as multistage builds using dockerfile_multistage_suggest and dockerfile_multistage_apply.
- document-to-json-mcpFree tierConvert any document to structured JSON in ~2 seconds. 100+ types: invoices, receipts, contracts, purchase orders, bills of lading, NDAs, packing lists, customs declarations. REST API + MCP for AI agents.