DBeaver MCP Server
Integrates with DBeaver to provide AI assistants access to over 200 database types using existing connections.
DBeaver MCP Server
MCP server that provides AI assistants access to databases through DBeaver connections.
Features
- Uses existing DBeaver connections (no separate config needed)
- Native query execution for PostgreSQL, MySQL/MariaDB, SQLite, SQL Server
- Falls back to DBeaver CLI for other database types
- Connection pooling with configurable pool size and timeouts
- Transaction support (BEGIN/COMMIT/ROLLBACK)
- Query execution plan analysis (EXPLAIN)
- Schema comparison between connections
- Read-only mode and tool filtering
- Query validation to block dangerous operations
- Data export to CSV/JSON
Requirements
- Node.js 18+
- DBeaver with at least one configured connection
Installation
npm install -g dbeaver-mcp-server
Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"dbeaver": {
"command": "dbeaver-mcp-server"
}
}
}
Environment Variables
| Variable | Description | Default |
|---|---|---|
DBEAVER_PATH | Path to DBeaver executable | Auto-detected |
DBEAVER_WORKSPACE | Path to DBeaver workspace | OS default |
DBEAVER_TIMEOUT | Query timeout (ms) | 30000 |
DBEAVER_DEBUG | Enable debug logging | false |
DBEAVER_READ_ONLY | Disable write operations | false |
DBEAVER_DISABLED_TOOLS | Comma-separated tools to disable | None |
DBEAVER_POOL_MIN | Minimum connections per pool | 2 |
DBEAVER_POOL_MAX | Maximum connections per pool | 10 |
DBEAVER_POOL_IDLE_TIMEOUT | Idle connection timeout (ms) | 30000 |
DBEAVER_POOL_ACQUIRE_TIMEOUT | Connection acquire timeout (ms) | 10000 |
Read-Only Mode
{
"mcpServers": {
"dbeaver": {
"command": "dbeaver-mcp-server",
"env": {
"DBEAVER_READ_ONLY": "true"
}
}
}
}
Disable Specific Tools
{
"mcpServers": {
"dbeaver": {
"command": "dbeaver-mcp-server",
"env": {
"DBEAVER_DISABLED_TOOLS": "drop_table,alter_table"
}
}
}
}
Available Tools
Connection Management
list_connections- List all DBeaver connectionsget_connection_info- Get connection detailstest_connection- Test connectivity
Data Operations
execute_query- Run SELECT querieswrite_query- Run INSERT/UPDATE/DELETEexport_data- Export to CSV/JSON
Schema Management
list_tables- List tables and viewsget_table_schema- Get table structurecreate_table- Create tablesalter_table- Modify tablesdrop_table- Drop tables (requires confirmation)
Transactions
begin_transaction- Start a new transactionexecute_in_transaction- Execute query within a transactioncommit_transaction- Commit a transactionrollback_transaction- Roll back a transaction
Query Analysis
explain_query- Analyze query execution plancompare_schemas- Compare schemas between two connectionsget_pool_stats- Get connection pool statistics
Other
get_database_stats- Database statisticsappend_insight- Store analysis noteslist_insights- Retrieve stored notes
DBeaver Version Support
Supports both configuration formats:
- DBeaver 6.x: XML config in
.metadata/.plugins/org.jkiss.dbeaver.core/ - DBeaver 21.x+: JSON config in
General/.dbeaver/
Development
git clone https://github.com/srthkdev/dbeaver-mcp-server.git
cd dbeaver-mcp-server
npm install
npm run build
npm test
npm run lint
License
MIT
Related Servers
Certinia MCP Server by CData
A read-only MCP server that allows LLMs to query live Certinia data. Powered by CData.
Metabase Server
Integrates with Metabase for data visualization and business intelligence. Requires METABASE_URL, METABASE_USERNAME, and METABASE_PASSWORD environment variables.
SurveyMonkey by CData
A read-only MCP server for querying live SurveyMonkey data, powered by CData.
Databricks
Fetch enterprise data and automate developer actions on the Databricks platform.
CData Salesforce MCP Server
A read-only MCP server by CData that allows LLMs to query live Salesforce data. Requires the CData JDBC Driver for Salesforce.
AWS PostgreSQL MCP Server
A read-only MCP server for querying AWS PostgreSQL databases.
FrankfurterMCP
MCP server acting as an interface to the Frankfurter API for currency exchange data.
MCP Memory Server
An advanced memory system for Claude Desktop that provides persistent memory using MCP. Requires an Azure Cosmos DB account and an OpenAI API key.
Self-Hosted Supabase MCP Server
Interact with self-hosted Supabase instances for database introspection, management, and interaction.
Kollektiv MCP
Build and access a personal LLM knowledge base from your editor or client without any infrastructure setup.