dbeaver-mcp-server
Allows AI agents to discover DBeaver workspaces, list database connections, and execute read-only SQL queries using DBeaver's existing JDBC drivers.
Click on "Deploy 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., "@dbeaver-mcp-server list all tables in the sales database"
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.
dbeaver-mcp-server
MCP server that reads DBeaver database configurations and provides SQL execution via existing JDBC drivers — no extra driver downloads needed.
Features
Auto-discover DBeaver workspaces and projects (macOS / Linux / Windows)
List connections from DBeaver's
data-sources.jsonExecute read-only SQL via DBeaver's existing JDBC drivers (JayDeBeApi + JPype)
Auto-decrypt DBeaver's encrypted credentials
Multi-driver support — all JDBC drivers installed in DBeaver are loaded at once
Related MCP server: Universal Database MCP Server
Tools
Tool | Description |
| List all discovered DBeaver workspaces and projects |
| List database connections, optionally filtered by workspace |
| Execute a read-only SQL query (only SELECT / SHOW / DESCRIBE / EXPLAIN / WITH) |
Requirements
Python >= 3.13
uv (Python package manager)
Java Runtime (for JPype/JDBC)
DBeaver 26.x (Community Edition)
Installation
git clone <repo-url> dbeaver-mcp-server
cd dbeaver-mcp-server
uv syncUsage
Standalone
cd /path/to/dbeaver-mcp-server
source .venv/bin/activate
mcp dev src/server.pyWith OpenCode
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"dbeaver": {
"type": "local",
"command": [
"/path/to/dbeaver-mcp-server/.venv/bin/python",
"-m",
"src.server"
],
"enabled": true
}
}
}Environment Variables
Variable | Description | Default |
| Override workspace path | Auto-discovered |
| Override drivers.xml path | Auto-discovered |
| Override credential encryption key (hex) | Default |
Security
Only read-only SQL is allowed:
SELECT,SHOW,DESCRIBE,EXPLAIN,WITHINSERT,UPDATE,DELETE,DROP,ALTER,CREATE,TRUNCATEare blockedPasswords are decrypted in-memory only, never written to disk
How It Works
Discovers DBeaver workspace via default paths or
DBEAVER_WORKSPACE_PATHReads
data-sources.jsonfor connection configurationsReads
drivers.xmland scans JDBC jars for driver class namesDecrypts
credentials-config.jsonusing DBeaver's AES-128-CBC keyStarts a JVM with all JDBC jars and executes queries via JayDeBeApi
Available Tools
3 toolsexecute_sqlA
Execute a read-only SQL query on a specified DBeaver database connection. Only SELECT, SHOW, DESCRIBE, EXPLAIN, WITH statements are allowed. Write operations are strictly prohibited.
Args: connection_name: The name of the database connection (as shown in list_connections). sql: The read-only SQL query to execute.
Inputs: sql (required), connection_name (required). Returns: result
list_connectionsA
List all configured database connections from DBeaver. Optionally filter by workspace_path from list_workspaces.
Args: workspace_path: Optional workspace path to filter connections. If empty, returns all.
Inputs: workspace_path. Returns: result
list_workspacesA
List all discovered DBeaver workspaces with their projects and data source locations.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: listing workspaces, listing connections, and executing SQL queries. No overlap in functionality.
All tools follow a consistent verb_noun pattern using snake_case (list_workspaces, list_connections, execute_sql).
Three tools are appropriate for the server's focused purpose of managing database connections and executing read-only SQL queries. Each tool serves a clear role.
The tool set covers workspace discovery, connection listing, and SQL execution, but lacks schema exploration (e.g., listing tables or describing schemas), which is a notable gap for a database tool.
Maintenance
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for interacting with the Supabase platform
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for connecting to databases (PostgreSQL, MySQL, SQL Server, Redis) enabling SQL queries, table exploration, and Redis key-value operations.1MIT
- FlicenseNot gradedqualityDmaintenanceA versatile MCP server that connects to multiple relational databases (MySQL, PostgreSQL, Oracle, SQL Server, SQLite) and enables secure read-only SQL query execution and metadata access.4-
- AlicenseAqualityCmaintenanceMCP server for querying and managing multiple databases (SQLite, PostgreSQL, MySQL) with read-only mode and schema inspection.213MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that connects to SQL databases (SQLite, PostgreSQL, MSSQL, MySQL) and provides tools to run read-only queries, list schemas/tables, and manage connections via stdio transport.Apache 2.0