DBHub
[!NOTE] オープンソースのデータベースDevSecOpsプラットフォームであるBytebaseが提供しています。
+------------------+ +--------------+ +------------------+
| | | | | |
| | | | | |
| Claude Desktop +--->+ +--->+ PostgreSQL |
| | | | | |
| Claude Code +--->+ +--->+ SQL Server |
| | | | | |
| Cursor +--->+ DBHub +--->+ SQLite |
| | | | | |
| VS Code +--->+ +--->+ MySQL |
| | | | | |
| Copilot CLI +--->+ +--->+ MariaDB |
| | | | | |
| | | | | |
+------------------+ +--------------+ +------------------+
MCP Clients MCP Server DatabasesDBHubは、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ツールを実装しています:
search_objects: 段階的な開示により、データベーススキーマ、テーブル、カラム、インデックス、プロシージャを検索・探索
Custom Tools:
dbhub.toml設定ファイルで、再利用可能なパラメータ化されたSQL操作を定義
ワークベンチ
DBHubには、データベースツールと対話するための組み込みWebインターフェースが含まれています。MCPクライアントを必要とせずに、クエリの実行、カスタムツールの実行、リクエストトレースの表示を視覚的に行うことができます。

インストール
詳細な手順については、完全なインストールガイドを参照してください。
クイックスタート
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"コントリビューター
スターの推移
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityAmaintenanceAn MCP server for MotherDuck and local DuckDB.508MIT
- AlicenseNot gradedqualityCmaintenanceMCP-Server from your Database optimized for LLMs and AI-Agents. Supports PostgreSQL, MySQL, ClickHouse, Snowflake, MSSQL, BigQuery, Oracle Database, SQLite, ElasticSearch, DuckDB544Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.14
- AlicenseAqualityAmaintenanceDatabase MCP server for MySQL, MariaDB, PostgreSQL & SQLite630MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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