Integrates with DBeaver to provide access to 200+ database types through existing DBeaver connections, allowing database querying, schema exploration, and data export functionality without additional configuration.
Provides access to MySQL databases for schema exploration and query execution through existing DBeaver connections.
Enables running queries on PostgreSQL databases through DBeaver connections, with support for data retrieval and manipulation operations.
DBeaver MCP Server
A production-ready Model Context Protocol (MCP) server that seamlessly integrates with DBeaver to provide AI assistants universal access to 200+ database types through your existing DBeaver connections. Built for real-world usage with Claude, Cursor, and other MCP-compatible AI assistants.
🚀 Key Features
🔗 Universal Database Connectivity
200+ Database Types: PostgreSQL, MySQL, Oracle, SQL Server, SQLite, MongoDB, and more
Zero Configuration: Leverages your existing DBeaver connections
Auto-Detection: Automatically finds and connects to your DBeaver workspace
Cross-Platform: Windows, macOS, and Linux support
🛡️ Enterprise-Grade Security & Safety
Credential Management: Uses DBeaver's secure credential storage
Query Validation: Built-in protection against dangerous operations
Confirmation Prompts: Destructive operations require explicit confirmation
Connection Validation: All connections verified before operations
Error Handling: Comprehensive error recovery and logging
📊 Advanced Data Operations
Read Operations: Safe SELECT queries with automatic LIMIT protection
Write Operations: INSERT, UPDATE, DELETE with validation
Schema Management: Complete DDL operations (CREATE, ALTER, DROP)
Data Export: CSV, JSON, XML, Excel export formats
Performance Monitoring: Query execution time tracking
🧠 AI-Powered Intelligence
Business Insights: Track and store analysis insights with tagging
Resource Browsing: Browse table schemas through MCP resources
Smart Suggestions: Context-aware database recommendations
Analysis Tracking: Persistent storage of business intelligence findings
🔧 Developer Experience
MCP Protocol: Full Model Context Protocol compliance
TypeScript: Complete type safety and IntelliSense support
Debug Mode: Comprehensive logging and troubleshooting
Version Compatibility: Supports DBeaver 6.x through 21.x+
🔧 Version Compatibility
This MCP server automatically detects and supports both DBeaver configuration formats:
Legacy DBeaver (6.x): Uses XML-based configuration in
.metadata/.plugins/org.jkiss.dbeaver.core/
Modern DBeaver (21.x+): Uses JSON-based configuration in
General/.dbeaver/
The server will automatically detect your DBeaver version and use the appropriate configuration parser.
🛠️ Available Tools
📋 Connection Management
Tool | Description | Safety Level |
| List all DBeaver database connections | ✅ Safe |
| Get detailed connection information | ✅ Safe |
| Test database connectivity | ✅ Safe |
📊 Data Operations
Tool | Description | Safety Level |
| Execute SELECT queries (read-only) | ✅ Safe |
| Execute INSERT, UPDATE, DELETE queries | ⚠️ Modifies data |
| Export query results to CSV/JSON/XML/Excel | ✅ Safe |
🏗️ Schema Management
Tool | Description | Safety Level |
| List all tables and views in database | ✅ Safe |
| Get detailed table schema information | ✅ Safe |
| Create new database tables | ⚠️ Schema changes |
| Modify existing table schemas | ⚠️ Schema changes |
| Remove tables (requires confirmation) | ❌ Destructive |
📈 Analytics & Intelligence
Tool | Description | Safety Level |
| Get database statistics and info | ✅ Safe |
| Add business insights to memo | ✅ Safe |
| List stored business insights | ✅ Safe |
📋 Prerequisites
Node.js 18+
DBeaver installed and configured with at least one connection
Claude Desktop, Cursor, or another MCP-compatible client
🛠️ Installation
Quick Install (Recommended)
Verify Installation
Manual Installation
🖥️ Configuration
Claude Desktop Configuration
Environment Variables
DBEAVER_PATH
: Path to DBeaver executable (auto-detected if not set)DBEAVER_TIMEOUT
: Query timeout in milliseconds (default: 30000)DBEAVER_DEBUG
: Enable debug logging (true/false)
💡 Quick Start Examples
🔍 Basic Database Operations
🏗️ Schema Management
📊 Business Intelligence & Analytics
🔧 Advanced Use Cases
🔧 Resource Browsing
The server provides MCP resources for browsing database schemas:
Browse table schemas directly in your MCP client
Resources are automatically discovered from your DBeaver connections
Provides structured schema information in JSON format
🛡️ Safety Features
Query Validation: Automatic detection of dangerous operations
Confirmation Requirements: Destructive operations require explicit confirmation
Connection Validation: All connections are verified before operations
Error Handling: Comprehensive error messages and logging
Rate Limiting: Built-in timeouts to prevent runaway queries
🚀 Production Features
Comprehensive Logging: Debug mode for troubleshooting
Error Recovery: Graceful handling of connection failures
Performance Monitoring: Query execution time tracking
Business Context: Insight tracking for data analysis workflows
Multi-format Export: Support for CSV and JSON export formats
🛠️ Development
Setup Development Environment
Available Scripts
Publishing to npm
Build Scripts
scripts/build.sh
: Build the projectscripts/install.sh
: Install dependencies and buildscripts/publish.sh
: Publish to npm with checks
📝 Documentation
🆚 Why Choose DBeaver MCP Server?
🏆 Industry-Leading Features
Feature | DBeaver MCP | Other MCP Servers |
Database Support | 200+ databases | 4-5 databases |
Configuration | Zero config (uses existing DBeaver) | Manual setup required |
Schema Browsing | ✅ MCP Resources | ❌ Limited |
Business Intelligence | ✅ Insights tracking | ❌ Not available |
DDL Operations | ✅ Complete (CREATE, ALTER, DROP) | ⚠️ Limited |
Safety Features | ✅ Advanced validation | ⚠️ Basic |
Export Formats | ✅ CSV, JSON, XML, Excel | ⚠️ Limited |
Error Handling | ✅ Production-ready | ⚠️ Basic |
Cross-Platform | ✅ Windows, macOS, Linux | ⚠️ Limited |
🎯 Perfect For
Data Analysts: Comprehensive database access with AI assistance
Database Administrators: Complete schema management and monitoring
Developers: Seamless integration with existing DBeaver workflows
Business Intelligence: Advanced analytics with insight tracking
Enterprise Teams: Production-ready with enterprise security features
🤝 Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/new-feature
Make your changes and add tests if applicable
Commit your changes:
git commit -m 'Add new feature'
Push to the branch:
git push origin feature/new-feature
Submit a pull request
📦 NPM Package
This project is published on npm as dbeaver-mcp-server
:
Package: dbeaver-mcp-server
Install:
npm install -g dbeaver-mcp-server
Current Version: 1.1.3
License: MIT
GitHub: srthkdev/dbeaver-mcp-server
📝 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
Anthropic for the Model Context Protocol
DBeaver for the amazing database tool
The open source community for inspiration and feedback
Note: This project is not officially affiliated with DBeaver or Anthropic. It's designed for real-world production use with AI assistants.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
A Model Context Protocol server that enables AI assistants to access and query 200+ database types through existing DBeaver connections without additional configuration.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI models to interact with MySQL databases through natural language, supporting SQL queries, table creation, and schema exploration.Last updated -3
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to securely interact with Apache IoTDB databases through a controlled interface for listing tables, reading data, and executing SQL queries.Last updated -
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants (Cursor, Windsurf, Claude Code) to interact with Microsoft SQL Server databases by providing connectivity through environment-configurable connections.Last updated -862MIT License
- -securityAlicense-qualityA Model Context Protocol server that provides AI assistants with comprehensive access to SQL databases, enabling schema inspection, query execution, and database operations with enterprise-grade security.Last updated -12MIT License