Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DBADMIN_LOGNoPath to the dbadmin MCP log file. Defaults to ~/.dbadmin/dbadmin_mcp.log.
DBADMIN_HOMENoOverrides the dbadmin home directory path.
DBADMIN_CACHENoOverrides the dbadmin cache path.
DBADMIN_CONFIGNoPath to the dbadmin configuration file. Defaults to ./dbadmin.json.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_connectionsB

Список настроенных подключений к базам (PostgreSQL / MS SQL), драйвер, база, режим доступа.

db_overviewB

Обзор базы: версия, размер, число таблиц, shared_buffers, соединения, наличие pg_stat_statements.

top_tablesB

Самые большие таблицы: размер, данные, индексы, число индексов, строк, seq/index scans, есть ли статистика. На больших базах — быстрый режим с оценкой; exact=true для точного обхода.

top_indexesC

Самые большие индексы с числом сканов и определением (PostgreSQL).

db_healthC

Здоровье базы: попадание в кэш, соединения, откаты, временные файлы, долгие транзакции, мёртвые строки.

locksB

Кто кого блокирует прямо сейчас: ожидающий и блокирующий pid, тип ожидания, длительность, запросы.

slow_queriesA

Топ запросов по суммарному времени (pg_stat_statements / dm_exec_query_stats) или подсказка, как его включить.

posting_bottlenecksB

Диагностика «почему тормозит проведение»: блокировки, долгие транзакции, крупные таблицы без статистики и индексов, выводы.

table_profileB

Профиль таблицы: размер, оценки строк, индексы, колонки, vacuum/analyze, seq/index scans, внешние ключи.

run_selectA

Выполнить одиночный SELECT в транзакции только для чтения: лимит строк, statement_timeout. Запись невозможна.

explainB

План запроса PostgreSQL: EXPLAIN (ANALYZE, BUFFERS) для SELECT, в read-only транзакции.

delete_previewB

Предпросмотр удаления по отбору: сколько строк, объём, примеры, FK-ссылки, token. Ничего не удаляет.

delete_applyA

Выполнить удаление по токену preview: сначала резервная копия в схему backup, потом DELETE, при ошибке rollback.

delete_scriptB

Сгенерировать SQL-скрипт удаления для ручного запуска (с бэкапом и проверкой).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 14 tools

Disambiguation4/5

Most tools have clearly distinct targets: overview, health, locks, slow queries, table profiling, and a well-separated delete preview/apply/script workflow. There is some conceptual overlap between db_overview, db_health, and the composite posting_bottlenecks, which reuses signals from locks, slow_queries, and top_tables, but descriptions make their respective focuses understandable. top_tables (ranking across tables) vs table_profile (single table) is distinguishable but easy to misselect at a glance.

Naming Consistency3/5

All names are snake_case, but the convention is mixed: verb_noun (list_connections, run_select, delete_preview), bare nouns (locks), and noun phrases (db_overview, top_tables, table_profile, posting_bottlenecks), plus a bare verb (explain). It stays readable and no two tools collide, but there is no predictable verb_noun pattern to rely on.

Tool Count5/5

Fourteen tools is well within a healthy range for a DB admin server and each maps to a concrete task: connection inventory, monitoring, diagnostics, query execution/explain, and a three-step guarded delete workflow. Nothing feels padded; the preview/apply/script split is justified by the destructive operation's safety requirements.

Completeness4/5

Coverage is strong for read-only administration plus a safe delete lifecycle: inventory, health, locks, slow queries, table/index profiling, SELECT and EXPLAIN. Gaps exist on the remediation side—no tool to terminate blocking sessions, run VACUUM/ANALYZE, or create indexes, even though the diagnostics explicitly flag dead rows and missing statistics. These are workarounds via generated scripts but not first-class operations.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues