dsh-dbhub-live
Allows executing SQL queries on MariaDB databases through workspace connections or temporary DSN-based connections.
Allows executing SQL queries on MySQL databases through workspace connections or temporary DSN-based connections.
Allows executing SQL queries on PostgreSQL databases through workspace connections or temporary DSN-based connections.
Allows executing SQL queries and searching database objects on SQLite databases through workspace connections or temporary DSN-based connections.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dsh-dbhub-liveshow me the first 10 rows from the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dsh-dbhub-live
Let DeepSeek Harness (DSH) operate databases directly and securely: persistent multi-source connections + per-workspace tools + ad-hoc dynamic connections.
dsh-dbhub-live is a DSH plugin based on DBHub (a database MCP server) that lets models query databases directly: reuse persistent connections on configured workspaces, or temporarily connect to any database for one-off troubleshooting.
✨ Features
Persistent multi-source service — A single dbhub service in the background connects to multiple data sources simultaneously, reusing connections for faster queries.
Per-workspace tools —
dbhub_execute_sql_<workspace>/dbhub_search_objects_<workspace>, tool names indicate the workspace, no confusion across workspaces, connections are clearly labeled (passwords masked).Ad-hoc dynamic connections —
dbhub_query/dbhub_query_objectsindependently connect to any database each time, allowing parallel queries across different databases for cross-environment troubleshooting.Out-of-the-box — Automatically installs
dbhubon first use if not present, then keeps it updated automatically without manual intervention.Multiple configuration methods — Explicit DSN / fill in fields / authorized scanning of project configuration files. Credentials are stored only in the local user directory, passwords are fully masked.
Supported Data Sources
MySQL · PostgreSQL · MariaDB · SQLite · SQL Server
Requirements
DeepSeek Harness's
dshCLI (dsh webfor GUI operation)Node.js ≥ 18 (with
npm) recommended on the local machine —dbhubwill be installed automatically on first use
Installation
# 方式一:使用本机已安装的 dsh
dsh plugin --profile web add dsh-dbhub-live
# 方式二:通过 npx 调用 dsh(无需本机全局安装 dsh)
npx @deepseek-ai/dsh plugin --profile web add dsh-dbhub-liveRestart dsh web after installation for changes to take effect.
Quick Start
# 1) 为当前工作区配置数据库连接(三种方式任选其一)
dbhub_configure
# 2) 在已配置工作区的常驻连接上执行查询
dbhub_execute_sql_myapp SELECT * FROM users LIMIT 10;
# 3) 临时连任意库做一次性排查
dbhub_query dsn=mysql://root:pass@192.168.77.6:3306/tx_sd_jinengshu sql="SHOW TABLES;"Tools
Tool | Description |
| Configure/persist a database connection for a workspace. |
| Execute SQL on the persistent connection of the specified workspace. |
| Search database objects (tables/views/columns/indexes, etc.) in the specified workspace. |
| Temporarily connect to any database and execute SQL (multiple statements separated by |
| Temporarily connect to any database and search database objects. |
Note:
search_objectsis only available for SQLite; for MySQL / PostgreSQL etc., usedbhub_querydirectly (e.g.,SHOW TABLES).
Configuration Methods
Explicit DSN — Provide a full connection string, e.g.,
mysql://user:pass@host:3306/db.Fill in fields — Fill in type / host / port / username / password / database name sequentially.
Authorized scanning — After authorization, scan project configuration files (
.env,application*.yml,docker-compose,jdbc.properties, etc.) and list candidates (passwords masked) for you to confirm.
If the workspace already has mise env or .env (DSN / DB_*), the plugin will auto-discover them without manual configuration.
🔄 dbhub Auto-Installation and Updates
Auto-install on first use: If
dbhubis not present on the local machine, the plugin will install it automatically on the first query; it will then be available offline.Auto-keep updated: Silently updates to the latest version in the background every 7 days; if it fails, the existing version is retained.
Does not touch your configuration: A
dbhubinstalled manually via PATH / mise will not be modified by the plugin.
Environment Variable | Description | Default |
| npm package name used for auto-installation |
|
| Auto-update interval in days; |
|
Data Location
All configurations and credentials are stored outside the module directory (unaffected by pnpm packaging). Delete this directory to completely clear everything:
~/.dsh/storages/dsh-dbhub-live/Uninstallation
dsh plugin --profile web remove dsh-dbhub-liveTroubleshooting
Symptom | Action |
First use reports "cannot get dbhub" | Ensure npm is available on the local machine and has internet access; offline, manually install |
Tool shows "dbhub service unavailable" | Check |
Scanning finds no configuration files | By default, directories like |
Need a custom dbhub version | Delete |
Do not want automatic dbhub updates | Set the environment variable |
License
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 Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
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/mr-mihu/dsh-dbhub-live'
If you have feedback or need assistance with the MCP directory API, please join our Discord server