Skip to main content
Glama
rog0x

mcp-database-tools

by rog0x

mcp-database-tools

MCP-сервер, предоставляющий инструменты SQL и базы данных для AI-агентов. Весь анализ выполняется на тексте SQL — фактическое подключение к базе данных не требуется.

Инструменты

sql_format

Форматирование и улучшение читаемости SQL-запросов с правильными отступами, ключевыми словами в верхнем регистре и выровненными столбцами. Поддерживает синтаксис MySQL, PostgreSQL и SQLite.

sql_explain

Принимает SQL-запрос и объясняет, что он делает, простым английским языком, шаг за шагом. Определяет тип запроса, таблицы, столбцы, условия и предоставляет советы по оптимизации.

schema_analyze

Разбор операторов CREATE TABLE для извлечения таблиц, столбцов, типов, ограничений, внешних ключей и индексов. Генерирует ER-диаграмму в формате Mermaid.

query_build

Создание SQL-запросов на основе описаний на естественном языке. Поддерживает распространённые шаблоны, такие как фильтрация по дате, агрегация, объединения, сортировка и пагинация.

migration_generate

Сравнение двух схем (старые и новые операторы CREATE TABLE) и генерация операторов миграции ALTER TABLE. Создаёт как прямые (вперёд), так и обратные (откат) миграции.

Related MCP server: DB MCP Server

Установка

npm install
npm run build

Использование

С Claude Desktop

Добавьте в конфигурацию Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "database-tools": {
      "command": "node",
      "args": ["path/to/mcp-database-tools/dist/index.js"]
    }
  }
}

Автономно

npm start

Разработка

npm run build    # Compile TypeScript
npm start        # Run the server

Лицензия

MIT

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.
    1,118
    3,147
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables executing SQL queries, schema introspection, and data management for PostgreSQL and MySQL databases via natural language, supporting local, SSH, and AWS RDS connections.
    92
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.
    1
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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