1. Conduid
  2. Blockchain
  3. DB Analyzer
MCP server · Blockchain

DB Analyzer

MCP server for PostgreSQL, MySQL, and SQLite schema analysis, index optimization, and query plan inspection

45Fair

Scored just now · breakdown

About DB Analyzer

DB Analyzer is an MCP server published by Dmitriusan in the Blockchain category: mCP server for PostgreSQL, MySQL, and SQLite schema analysis, index optimization, and query plan inspection. Conduid read 9 tools from its source: analyze_connections, analyze_indexes, analyze_slow_queries, analyze_table_bloat, analyze_table_relationships, analyze_vacuum and 3 more. It is published to npm as mcp-db-analyzer and starts with npx.

The repository has 1 stars and 0 forks, and its last commit was on 18 Aug 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include database, devtools, java-backend, mysql, postgresql and schema-analysis.

Install

Claude Code
claude mcp add db-analyzer -- npx -y mcp-db-analyzer
npx
npx -y mcp-db-analyzer
From source
git clone https://github.com/Dmitriusan/mcp-db-analyzer

Tools (9)

analyze_connectionsAnalyze active database connections. Detects idle-in-transaction sessions and lock contention between sessions (PostgreSQL), long-running queries flagged at >30 seconds, and connection pool utilization. Idle-in-transaction and lock contention detection are not available on MySQL — use this tool's output to investigate PostgreSQL-specific blocking scenarios. Not available for SQLite.
analyze_indexesAnalyze index usage statistics to find unused indexes wasting space and missing indexes causing slow sequential scans. Also detects unindexed foreign keys.
analyze_slow_queriesFind the slowest queries using pg_stat_statements (PostgreSQL) or performance_schema (MySQL). Shows execution times, call counts, and optimization recommendations. PostgreSQL requires the pg_stat_statements extension to be installed and listed in shared_preload_libraries — the tool returns setup instructions if the extension is missing. Not available for SQLite.
analyze_table_bloatAnalyze table bloat by checking dead tuple ratios (PostgreSQL) or InnoDB fragmentation (MySQL), vacuum history, and table sizes.
analyze_table_relationshipsAnalyze foreign key relationships between tables. Builds a dependency graph showing entity connectivity, orphan tables (no FKs), cascading delete chains (shown at full depth), hub entities (tables with 5+ FK connections), and circular FK dependencies. Useful for understanding schema design, planning migrations, and impact analysis.
analyze_vacuumAnalyze PostgreSQL VACUUM maintenance status. Checks dead tuple ratios, vacuum staleness, autovacuum configuration, and identifies tables needing manual VACUUM. PostgreSQL only.
explain_queryRun EXPLAIN on a SQL query and return a formatted plan with cost estimates, node types, and optimization warnings. Optionally runs EXPLAIN ANALYZE for actual execution statistics (read-only queries only).
inspect_schemaList all tables in a schema with row counts and sizes, or inspect a specific table's columns, types, constraints, and foreign keys.
suggest_missing_indexesFind tables with high sequential scan counts and zero index usage, cross-referenced with unused indexes wasting space. Provides actionable CREATE INDEX and DROP INDEX recommendations.

Security checks

  • ✓README presentThe repository's README runs to about 1.8K words.

5 checks have not been run yet.

README

The repository's README runs to about 1.8K words. The original in the repository is authoritative.

Read full README
Questions

About DB Analyzer

How do I install DB Analyzer?

In Claude Code, run claude mcp add db-analyzer -- npx -y mcp-db-analyzer. Other MCP clients take the command after "--" in their server configuration.

Is DB Analyzer safe to use with an AI agent?

Its trust score is 45 out of 100 (fair). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is DB Analyzer still maintained?

Yes — the last commit was 3 months ago. The repository has 1 stars and 0 forks.

What tools does DB Analyzer provide?

Conduid read 9 tools from the source: analyze_connections, analyze_indexes, analyze_slow_queries, analyze_table_bloat, analyze_table_relationships, analyze_vacuum, explain_query, inspect_schema and 1 more.