DBeaver
STDIOMCP server integrating with DBeaver to provide AI assistants access to 200+ database types
MCP server integrating with DBeaver to provide AI assistants access to 200+ database types
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.
This MCP server automatically detects and supports both DBeaver configuration formats:
.metadata/.plugins/org.jkiss.dbeaver.core/General/.dbeaver/The server will automatically detect your DBeaver version and use the appropriate configuration parser.
| Tool | Description | Safety Level | 
|---|---|---|
list_connections | List all DBeaver database connections | ✅ Safe | 
get_connection_info | Get detailed connection information | ✅ Safe | 
test_connection | Test database connectivity | ✅ Safe | 
| Tool | Description | Safety Level | 
|---|---|---|
execute_query | Execute SELECT queries (read-only) | ✅ Safe | 
write_query | Execute INSERT, UPDATE, DELETE queries | ⚠️ Modifies data | 
export_data | Export query results to CSV/JSON/XML/Excel | ✅ Safe | 
| Tool | Description | Safety Level | 
|---|---|---|
list_tables | List all tables and views in database | ✅ Safe | 
get_table_schema | Get detailed table schema information | ✅ Safe | 
create_table | Create new database tables | ⚠️ Schema changes | 
alter_table | Modify existing table schemas | ⚠️ Schema changes | 
drop_table | Remove tables (requires confirmation) | ❌ Destructive | 
| Tool | Description | Safety Level | 
|---|---|---|
get_database_stats | Get database statistics and info | ✅ Safe | 
append_insight | Add business insights to memo | ✅ Safe | 
list_insights | List stored business insights | ✅ Safe | 
npm install -g dbeaver-mcp-server
dbeaver-mcp-server --help
git clone https://github.com/srthkdev/dbeaver-mcp-server.git cd dbeaver-mcp-server npm install npm run build npm link # Makes the command available globally
{ "mcpServers": { "dbeaver": { "command": "dbeaver-mcp-server", "env": { "DBEAVER_DEBUG": "false", "DBEAVER_TIMEOUT": "30000" } } } }
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)# List all your database connections "Show me all my database connections" # Execute a simple query "Run this query on my PostgreSQL database: SELECT COUNT(*) FROM orders WHERE date > '2024-01-01'" # Get table schema information "What's the schema of the users table in my MySQL database?" # Export data for analysis "Export all customer data to CSV from my Oracle database"
# Create new tables "Create a new table called 'products' with columns id, name, price, created_at" # Modify existing tables "Add a 'description' column to the products table" # Safe table removal (requires confirmation) "I want to drop the test_table - make sure to confirm first"
# Data analysis with insights "Find the top 10 customers by order value and save this insight" # Track business findings "The Q4 sales data shows a 23% increase in mobile orders - tag this as 'quarterly-analysis'" # Review past analysis "Show me all insights related to sales performance"
# Performance analysis "Analyze query performance and identify slow queries in my production database" # Data quality checks "Check for missing or invalid data in the customer table" # Migration planning "Help me analyze the current schema for migrating from MySQL to PostgreSQL"
The server provides MCP resources for browsing database schemas:
git clone https://github.com/srthkdev/dbeaver-mcp-server.git cd dbeaver-mcp-server npm install
npm run build # Build the project npm run dev # Watch mode for development npm run clean # Clean build artifacts npm run start # Start the server npm run test # Run tests (placeholder) npm run lint # Run linter (placeholder)
npm run publish # Interactive publish script npm run publish:patch # Quick patch version (1.1.3 → 1.1.4) npm run publish:minor # Quick minor version (1.1.3 → 1.2.0) npm run publish:major # Quick major version (1.1.3 → 2.0.0)
scripts/build.sh: Build the projectscripts/install.sh: Install dependencies and buildscripts/publish.sh: Publish to npm with checks| 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 | 
git checkout -b feature/new-featuregit commit -m 'Add new feature'git push origin feature/new-featureThis project is published on npm as dbeaver-mcp-server:
npm install -g dbeaver-mcp-serverMIT License - see LICENSE file for details
Note: This project is not officially affiliated with DBeaver or Anthropic. It's designed for real-world production use with AI assistants.