bytebase/dbhub

bytebase/dbhub

от bytebase
DBHub выполняет SQL-запросы и ищет объекты схемы в PostgreSQL, MySQL, SQL Server и SQLite. Лёгкий, с read-only режимом.

Заметка

If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

GitHub Trending Repository of the Day

DBHub Logo

            +------------------+    +--------------+    +------------------+
            |                  |    |              |    |                  |
            |  Claude Desktop  +--->+              +--->+    PostgreSQL    |
            |                  |    |              |    |                  |
            |  Claude Code     +--->+              +--->+    SQL Server    |
            |                  |    |              |    |                  |
            |  Cursor          +--->+    DBHub     +--->+    Oracle        |
            |                  |    |              |    |                  |
            |  VS Code         +--->+              +--->+    SQLite        |
            |                  |    |              |    |                  |
            |  Copilot CLI     +--->+              +--->+    MySQL         |
            |                  |    |              |    |                  |
            |                  |    |              +--->+    MariaDB       |
            |                  |    |              |    |                  |
            +------------------+    +--------------+    +------------------+
                 MCP Clients           MCP Server             Databases

DBHub is a minimal MCP server: token-efficient, zero-dependency, and just two tools by default with opt-in extras. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:

  • Minimal: Zero dependency, token efficient with a minimal set of MCP tools to maximize context window
  • Multi-Database: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite through a single interface
  • Multi-Connection: Connect to multiple databases simultaneously with TOML configuration
  • Guardrails: Read-only mode, row limiting, and query timeout to prevent runaway operations
  • Secure Access: SSH tunneling and SSL/TLS encryption
У этого сервера пока нет списка инструментов.
1.5.0основная
1.4.0
1.3.1
1.3.0
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.24.0
0.23.0
0.22.6
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.21.2
0.21.1
0.21.0
0.20.0
0.19.1
0.19.0
0.18.0
0.17.0
0.16.1
0.16.0
0.15.0
0.14.0
0.13.2
0.13.1
0.13.0
0.12.0
0.11.10
0.11.9
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.0
0.8.4
0.8.2
0.7.0
0.6.2
0.6.1
0.6.0
0.5.0
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.1.2
0.1.1
0.1.0
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2-20250312
0.0.1
0.0.1-20250312.929c614

Выберите клиент, чтобы установить bytebase/dbhub:

Любой клиент

Конфиг добавления MCP сервера стандартный, обычно он не меняется вообще, поэтому подходит практически к любому ИИ клиенту, поддерживающему MCP.

{
  "mcpServers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}
CursorCursor

Перейдите по ссылке и сервер автоматически будет добавлен в Cursor. Либо откройте/создайте файл ~/.cursor/mcp.json(%USERPROFILE%\.cursor\mcp.json на Windows) и добавьте конфиг сервера:

{
  "mcpServers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}
VS Code

Создайте .vscode/mcp.json в проекте (ключ верхнего уровня — servers):

{
  "servers": {
    "bytebase-dbhub-sjp5": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}

Либо добавьте сервер через терминал:

code --add-mcp "{\"name\":\"bytebase-dbhub-sjp5\",\"type\":\"stdio\",\"command\":\"npx\",\"args\":[\"@bytebase/dbhub@latest\",\"--transport\",\"stdio\",\"--dsn\",\"postgres://user:password@localhost:5432/yourdb\"]}"
ClaudeClaude Desktop

Откройте Settings → Developer → Edit Config — это откроет файл claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Впишите сервер и полностью перезапустите Claude Desktop:

{
  "mcpServers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}
Claude CodeClaude Code

Добавьте сервер одной командой в терминале:

claude mcp add bytebase-dbhub-sjp5 -- npx @bytebase/dbhub@latest --transport stdio --dsn postgres://user:password@localhost:5432/yourdb

Либо через JSON-конфиг:

claude mcp add-json bytebase-dbhub-sjp5 "{\"command\":\"npx\",\"args\":[\"@bytebase/dbhub@latest\",\"--transport\",\"stdio\",\"--dsn\",\"postgres://user:password@localhost:5432/yourdb\"]}"
CodexCodex

Добавьте сервер командой в терминале:

codex mcp add bytebase-dbhub-sjp5 -- npx @bytebase/dbhub@latest --transport stdio --dsn postgres://user:password@localhost:5432/yourdb

Либо вручную в ~/.codex/config.toml(%USERPROFILE%\.codex\config.toml на Windows):

[mcp_servers.bytebase-dbhub-sjp5]
command = "npx"
args = ["@bytebase/dbhub@latest", "--transport", "stdio", "--dsn", "postgres://user:password@localhost:5432/yourdb"]
PerplexityPerplexity

MCP доступен подписчикам Perplexity Pro / Max / Enterprise. Локальные серверы — только в приложении для macOS.

  1. Откройте Настройки аккаунта → Connectors.
  2. Установите вспомогательное приложение PerplexityXPC (один раз).
  3. Нажмите Add Connector → вкладка Simple.
  4. В поле Server Name укажите bytebase/dbhub, а в поле команды запуска — строку ниже:
npx @bytebase/dbhub@latest --transport stdio --dsn postgres://user:password@localhost:5432/yourdb

Нажмите Save и дождитесь статуса Running.

WindsurfWindsurf

Откройте Windsurf Settings → Cascade → MCP Servers или отредактируйте файл ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}
ClineCline

В панели Cline нажмите иконку MCP Servers → Configure → Configure MCP Servers (или отредактируйте ~/.cline/mcp.json) и добавьте сервер:

{
  "mcpServers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}
Continue

Создайте файл в .continue/mcpServers/ (например bytebase-dbhub-sjp5.yaml) или добавьте блок в config.yaml. MCP работает только в режиме agent:

mcpServers:
  - name: bytebase-dbhub-sjp5
    command: npx
    args:
      - "@bytebase/dbhub@latest"
      - "--transport"
      - "stdio"
      - "--dsn"
      - "postgres://user:password@localhost:5432/yourdb"
Zed

Выполните agent: add context server или откройте настройки (zed: open settings file) и добавьте сервер в объект context_servers:

{
  "context_servers": {
    "bytebase-dbhub-sjp5": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/yourdb"
      ]
    }
  }
}

Похожие MCP-сервера

ThinAirTelematics/thinair-data

ThinAirTelematics/thinair-data

от thinairtelematics

ThinAir Data — безопасный read-only MCP-сервер для AI-агентов к PostgreSQL, MySQL и SQL Server. Включает 23 инструмента от схемы до PII-сканирования и кросс-базового сравнения, без риска записи. Ид...

JavaScript⭐ 1
JaviMaligno/postgres_mcp

JaviMaligno/postgres_mcp

от javimaligno

MCP сервер для работы с PostgreSQL: выполняет SQL-запросы, исследует схемы, таблицы и индексы, помогает с производительностью через EXPLAIN. Работает read-only по умолчанию — безопасность на первом месте. Подходит для Claude Desktop, Cursor и других MCP-клиентов.

Python⭐ 12
ClickHouse/mcp-clickhouse

ClickHouse/mcp-clickhouse

официальный

от clickhouse

Выполняет SQL-запросы к ClickHouse: перечисляет базы, таблицы, читает данные в режиме read-only. chDB позволяет запрашивать файлы и URL без отдельного сервера.

Python⭐ 890
ktanaka101/mcp-server-duckdb

ktanaka101/mcp-server-duckdb

от ktanaka101

MCP сервер для DuckDB позволяет LLM выполнять SQL-запросы, создавать таблицы и просматривать схему. Для локального анализа: откройте .db-файл в режиме read-only или с постоянным подключением. Устан...

Python⭐ 179
benborla29/mcp-server-mysql

benborla29/mcp-server-mysql

от benborla

Выполняет SQL-запросы к MySQL: инспектирует схемы, читает и пишет данные с контролем прав. По умолчанию только чтение, автоматически маскирует персональные данные.

JavaScript⭐ 2169
crystaldba/postgres-mcp

crystaldba/postgres-mcp

от crystaldba

Подбирает оптимальные индексы, объясняет планы запросов и проверяет здоровье PostgreSQL. Выполняет SQL в безопасном режиме только для чтения.

Python⭐ 3413
© Каталог MCP, 2026. Все права защищены.
Проект не аффилирован с Anthropic и любыми упомянутыми продуктами.
Все названия и торговые марки принадлежат их владельцам.
Контакты для связи: hi@mcp-katalog.ru

Лука Никитин