Back to Home
bytebase icon

dbhub

Verified Safe

by bytebase

Overview

A universal database abstraction layer exposing databases as tools for AI/ML agents via the Model Context Protocol (MCP), and providing an admin console for monitoring requests.

Installation

Run Command
pnpm start

Environment Variables

  • DSN
  • DB_TYPE
  • DB_HOST
  • DB_PORT
  • DB_USER
  • DB_PASSWORD
  • DB_NAME
  • TRANSPORT
  • PORT
  • ID
  • READONLY
  • SSH_HOST
  • SSH_PORT
  • SSH_USER
  • SSH_PASSWORD
  • SSH_KEY
  • SSH_PASSPHRASE
  • NODE_ENV
  • HOME

Security Notes

The server demonstrates strong security awareness through features like DSN password redaction, explicit `SafeURL` parsing to handle special characters in connection strings, and structured validation for custom SQL tools' parameters. For its HTTP API, it includes CORS configuration and `Origin` header validation to mitigate DNS rebinding attacks. File system interactions, such as loading TOML configuration, environment files, and SSH keys, are part of the setup, implying a reliance on a trusted deployment environment where these paths and configurations are controlled by an administrator. SQL injection risks are mitigated via parameterized queries for user-provided SQL in custom tools and built-in SQL execution, and through robust identifier quoting for database metadata access. The primary security considerations for operators are the inherent risks of executing user-defined SQL (even if validated) and managing access to sensitive configuration files and network ports.

Similar Servers

Stats

Interest Score100
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars1673
Forks147
Last Update2025-12-06

Tags

Database proxyAI agent toolsMCP serverDatabase managementData abstraction