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 "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., "@dbeaver-mcp-serverlist 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/dongchao-1/dbeaver-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server