Skip to main content
Glama

[!NOTE] オープンソースのデータベースDevSecOpsプラットフォームであるBytebaseが提供しています。

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

DBHubは、Model Context Protocol (MCP) サーバーインターフェースを実装した、依存関係ゼロでトークン効率の高いMCPサーバーです。この軽量なゲートウェイにより、MCP互換クライアントはさまざまなデータベースに接続し、探索することができます:

  • ローカル開発ファースト: 依存関係ゼロ、トークン効率が高く、わずか2つのMCPツールでコンテキストウィンドウを最大化

  • マルチデータベース: 単一のインターフェースでPostgreSQL、MySQL、MariaDB、SQL Server、SQLiteに対応

  • マルチ接続: TOML設定を使用して、複数のデータベースに同時に接続可能

  • ガードレール: 読み取り専用モード、行制限、クエリタイムアウトにより、暴走操作を防止

  • セキュアなアクセス: SSHトンネリングおよびSSL/TLS暗号化

対応データベース

PostgreSQL、MySQL、SQL Server、MariaDB、およびSQLite。

Related MCP server: CentralMind/Gateway

MCPツール

DBHubは、データベース操作のためのMCPツールを実装しています:

  • execute_sql: トランザクションサポートと安全制御を備えたSQLクエリの実行

  • search_objects: 段階的な開示により、データベーススキーマ、テーブル、カラム、インデックス、プロシージャを検索・探索

  • Custom Tools: dbhub.toml設定ファイルで、再利用可能なパラメータ化されたSQL操作を定義

ワークベンチ

DBHubには、データベースツールと対話するための組み込みWebインターフェースが含まれています。MCPクライアントを必要とせずに、クエリの実行、カスタムツールの実行、リクエストトレースの表示を視覚的に行うことができます。

workbench

インストール

詳細な手順については、完全なインストールガイドを参照してください。

クイックスタート

Docker:

docker run --rm --init \
   --name dbhub \
   --publish 8080:8080 \
   bytebase/dbhub \
   --transport http \
   --port 8080 \
   --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

NPM:

npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

デモモード:

npx @bytebase/dbhub@latest --transport http --port 8080 --demo

利用可能なすべてのパラメータについては、コマンドラインオプションを参照してください。

マルチデータベース設定

TOML設定ファイルを使用して、複数のデータベースに同時に接続します。本番環境、ステージング環境、開発環境のデータベースを単一のDBHubインスタンスから管理するのに最適です。

設定の完全な手順については、マルチデータベース設定を参照してください。

開発

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

# Build and run for production
pnpm build && pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

テストおよびデバッグを参照してください。

コントリビューター

スターの推移

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
6hResponse time
6dRelease cycle
7Releases (12mo)
Commit activity
Issues opened vs closed

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

View all related MCP servers

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • MCP server for managing Prisma Postgres.

  • MCP server for GLM chat completions using Zhipu AI models via AceDataCloud

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/bytebase/dbhub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server