DBCode
DBCode is a Visual Studio Code extension that allows you to manage many databases, including PostgreSQL, MySQL, SQL Server, DuckDB, Redis, MongoDB, and more. DBCode offers the option to run an MCP server, providing access to those databases, their schemas, and the ability to execute queries.
README Documentation
DBCode - Database Client for VS Code
A database manager and SQL editor built into VS Code. Browse schemas, edit data, visualize queries, and manage 50+ databases without leaving your editor.
50+ supported databases, warehouses, lakehouses, and file formats
Data Viewing & Editing
- Filter, sort, and group data with a few clicks
- Edit rows directly — insert, update, delete without writing SQL
- Changes verified before execution so you don't have a production horror story
Copilot Integration
Query your data with natural language. Ask schema questions, generate queries, create tables.
Entity Relationship Diagrams
Auto-generated diagrams from your live database schema. Export as PDF, HTML or PNG.
Foreign Key Navigation
Click any foreign key value to jump to the referenced row. Navigate relationships without writing JOINs.
SQL Editor
Full SQL editor with database-specific syntax highlighting, autocomplete, and inline signature help.
SQL Intellisense
- Database-specific SQL keywords and syntax
- Table, view, and procedure autocomplete with column types
Secure Report Sharing
Share query results as encrypted reports. No credentials or raw data exposed.
Database Notebooks
SQL and Python cells in VS Code Notebooks. Query, analyze, and document in one place with Jupyter kernel integration.
Stored Procedures & Functions
Edit and deploy database logic directly from VS Code. Full syntax support for PL/pgSQL, T-SQL, PL/SQL, and more.
Data Visualization
Transform query results into charts and graphs. Bar, line, pie, scatter, and more.
Data Compare
Compare data between tables, databases, or connections. See differences side-by-side, generate sync scripts, or apply changes directly. Learn more
Zero Config Connections
Automatically discovers database connections from your project's .env, application.properties, database.yml, settings.py, and other config files. Supports Laravel, Django, Spring Boot, Node.js, Rails, and more. Learn more
Execution Plans
Visualize EXPLAIN and ANALYZE output as interactive node graphs. Identify slow operations, see row estimates vs actuals, and drill into cost breakdowns. Supported for PostgreSQL, MySQL, SQL Server, and more. Learn more
More Features
Data
- Import/Export: CSV, Excel, JSON, Parquet, Avro
- Backup/Restore: Native tools for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB
- File Formats: Open and edit CSV, Excel, Parquet, Avro files directly
- Data Formatters: Lookup values from other tables, expand JSON columns
- Inferred Relationships: Define relationships for databases without foreign keys (MongoDB, DynamoDB)
- Data Search: Search across all columns in a table
Query & Analysis
- Transaction Control: Manual commit/rollback with auto-commit toggle
- SQL Filters: WHERE clause filtering with saved filters
- Query Parameters: Reuse queries with different inputs
- Query History: Full history with search, re-execute, and sync across devices
Connectivity
- Auth Profiles: OAuth, AWS SSO, 1Password, HashiCorp Vault
- SSL Auto Config: Automatic SSL for known hosts
- SSH Tunnels: Manual config or auto-discovery from SSH config
- Command Tunnels: Local proxy tools (cloud-sql-auth-proxy, kubectl port-forward, AWS SSM)
AI
- Copilot Chat: Drag tables into Copilot, natural language queries
- MCP Integration: Model Context Protocol for AI tools with full schema context
- Inline Completion: AI-powered SQL code completion
VS Code Integration
- Theme Support: Full compatibility with VS Code themes
- Localization: Available in all VS Code supported languages
Pricing
Core features are free, forever. Some advanced features require a subscription. See Pricing.
Telemetry
Anonymous usage data is collected when VS Code telemetry is enabled. Telemetry respects your VS Code settings if disabled there, we collect nothing. See our privacy policy.