π NexQL
July 9, 2026 Β· View on GitHub
π NexQL
Professional Database Management for VS Code
NexQL is a comprehensive PostgreSQL database management extension featuring interactive SQL notebooks, real-time monitoring dashboard, AI-powered assistance, and advanced database operationsβall within VS Code.
πΈ Screenshots
π₯ Video Guides
1. Quick Setup

2. More Settings

3. AI Assistant

4. AI Copilot

5. Dashboard

6. DB Operations

7. Power Editor

8. More Features

β¨ Key Features
| Feature | Description |
|---|---|
| π Secure Connections | Manage multiple connections with VS Code SecretStorage encryption |
| π‘οΈ Connection Safety | Environment tagging (π΄ PROD, π‘ STAGING, π’ DEV), read-only mode, query safety analyzer |
| π Live Dashboard | Real-time metrics, active query monitoring, and performance graphs |
| π SQL Notebooks | Interactive notebooks with rich output, AI assistance, and export options |
| πΎ Saved Queries | Tag-based organization, AI metadata generation, connection context restoration, edit & reuse |
| π³ Database Explorer | Browse tables, views, functions, types, extensions, roles, and FDWs |
| π οΈ Object Operations | Full CRUD operations, scripts, VACUUM, ANALYZE, REINDEX |
| π Table Intelligence | Profile, activity monitor, index usage analytics, definition viewer |
| π EXPLAIN CodeLens | One-click EXPLAIN/ANALYZE with results in notebooks |
| π‘οΈ Auto-LIMIT | Automatic query protection with configurable row limits (default 1000) |
| π Foreign Data Wrappers | Manage foreign servers, user mappings, and tables |
| π€ NexQL Free AI | Zero-config AI assistant β Smart/Engineer/Architect tiers, no API keys needed |
| π MCP Server | Built-in MCP server β expose your database to Copilot, Cursor, Claude Desktop & more |
| β¨οΈ Developer Tools | IntelliSense, keyboard shortcuts, PSQL terminal access |
| π€ Export Data | Export query results to CSV, JSON, or Excel formats |
| π Large result streaming | Optional sliding-window cursor mode for big SELECTs β bounded memory, scroll to fetch |
| π’ Binary columns | Configurable bytea display (hex / PostgreSQL / JSON debug) |
| π€ SQL Assistant | Regenerate last reply or resend from an earlier user message; prefill when attaching context |
π― Why NexQL?
π¨ Modern Interface
|
β‘ Powerful Features
|
π Secure & Reliable
|
π Performance Intelligence
|
π Developer Friendly
|
π Feature Matrix
| Area | NexQL v2.2.0 | Notes |
|---|---|---|
| Core PostgreSQL object operations | β | Tables, views, mat views, functions, roles, extensions, FDWs, and more |
| AI-assisted SQL workflows | β | Generate, optimize, explain, analyze, and notebook handoff |
| NexQL Free AI (zero-config) | β | Smart / Engineer / Architect tiers, no API keys required |
| MCP Server | β | Expose DB tools to Copilot, Cursor, Claude Desktop, and more |
| Production safety controls | β | Read-only mode, query risk scoring, confirmation prompts, Auto-LIMIT |
| Real-time monitoring dashboard | β | Activity and performance telemetry in VS Code |
| Interactive SQL notebooks | β | Native .pgsql notebook workflow |
| Data Import | β Free | No usage cap β unlimited across all tiers |
| Backup & Restore | β Free | No usage cap β unlimited across all tiers |
| Database Indexing | β Free | Build, auto-index, semantic index β unlimited across all tiers |
| In-grid editing parity with desktop IDEs | β οΈ Partial | Planned enhancements in upcoming releases |
| ERD/schema visualization parity | β οΈ Partial | Under active expansion |
β οΈ Known Limitations (v2.2.0)
- In-grid editing is currently more limited than full desktop DB IDEs.
- ERD/schema visualization is available but not yet feature-complete.
- Some advanced PostgreSQL admin workflows are partial and are scheduled for incremental updates.
- NexQL Free AI gateway is in Beta and may be subject to quota adjustments.
π Works With Your Postgres β Wherever It Runs
NexQL connects to any PostgreSQL-wire-compatible database:
- β PostgreSQL 12β17 β self-hosted, Docker, on-prem
- β
Neon β serverless Postgres (use the direct endpoint, SSL
require) - β Supabase β direct or session pooler connections
- β TimescaleDB & Timescale Cloud β 100% compatible (Postgres extension)
- β YugabyteDB (YSQL) β distributed Postgres, port 5433
- β AWS RDS / Aurora, Google Cloud SQL / AlloyDB, Azure Database for PostgreSQL
See the compatibility guide for per-platform connection settings and caveats.
π³ Database Explorer
Navigate your database with an intuitive hierarchical tree view:
π Connection
βββ ποΈ Database
βββ π Schema
βββ π Tables
βββ ποΈ Views
βββ π Materialized Views
βββ βοΈ Functions
βββ π·οΈ Types
βββ π Foreign Data Wrappers
βββ π§© Extensions
βββ π₯ Roles
πΎ Saved Queries Library
Organize, manage, and reuse your most important queries with intelligent tagging and context preservation.
Core Capabilities
- π·οΈ Tag-Based Organization β Group queries by purpose for instant discovery
- π Connection Context β Queries remember their original connection, database, and schema
- π One-Click Reopening β Restore queries with full context in a new notebook
- βοΈ In-Place Editing β Modify queries without creating duplicates
- π€ AI Metadata Generation β Auto-generate titles, descriptions, and tags
- π Rich Metadata Display β See creation date, usage count, database, and connection at a glance
π€ AI-Powered Assistance
Leverage AI to write, optimize, and debug your queries faster.
π NexQL Free AI β Zero-Config (Default, v2.2.0)
No API keys, no provider accounts, no setup. NexQL Free AI is the default AI provider, powered by managed models behind a secure gateway proxy:
- π§ Smart (free) β Daily-use AI for queries, explanations, and schema help. ~600K tokens/month.
- π§ Engineer (Sponsor Β· $2/mo) β Advanced model for complex optimization and migrations. ~3M tokens/month.
- ποΈ Architect (Singularity Β· $9/mo) β The best AI for database engineering. ~10M tokens/month.
π MCP Server β New in v2.2.0
NexQL now exposes your connected PostgreSQL databases as a Model Context Protocol (MCP) server, letting GitHub Copilot, Cursor, Claude Desktop, and any other MCP-compatible AI agent use NexQL's live schema tools:
- Schema discovery (
list_schemas,list_objects,describe_object,search_schema) - Safe SQL execution (
run_select,explain_query) - Join-path inference (
get_join_path) - Performance analytics (
get_table_stats,get_index_usage)
Enable via NexQL Settings β Preferences. VS Code's Copilot discovers NexQL automatically β no manual config required.
- Smart Completions β Context-aware SQL suggestions
- Query Explanation β Understand complex queries in plain English
- Query Optimization β Get performance improvement suggestions
- Error Detection β Real-time syntax and logical error detection
- Natural Language to SQL β Describe what you need, let AI write the SQL
π‘οΈ Safe AI Execution
NexQL provides a Safe Execution Model for AI interactions.
- Human-in-the-Loop: AI generates the code, but it is never executed automatically. You review it in a notebook cell first.
- Context Control: You decide which tables the AI can see.
Supported AI Providers:
- NexQL Free AI (default β no API key required)
- GitHub Copilot (VS Code LM)
- GitHub Models (GitHub account sign-in)
- OpenAI (GPT-4.1, o4-mini, and more)
- Anthropic Claude (Sonnet 4, Haiku, and more)
- Google Gemini (2.5 Flash, 2.5 Pro)
- Ollama / LM Studio / Custom OpenAI-compatible endpoints
π¨ Rich Data Visualization
Transform your data into insights without exporting to Excel.
Instantly Visualize Results
- One-Click Charts: Create Bar, Line, Area, and Pie charts from any query result.
- Customizable: Adjust log scales, use varied point styles, and control fill opacity.
- Modern VFX: Enable Glow and Blur effects for stunning, dashboard-ready visuals.
- Custom Endpoints
π Quick Start
Installation
- Open VS Code β Press
Ctrl+Shift+X - Search for NexQL
- Click Install
Or install via command line:
code --install-extension ric-v.postgres-explorer
First Connection
- Click the PostgreSQL icon in the Activity Bar
- Click Add Connection or use
Ctrl+Shift+PβPostgreSQL: Add Connection - Enter your connection details and click Save
- Click on your connection to connect and start exploring!
π Complete Database Operations
| Object Type | Operations |
|---|---|
| π Tables | View, Edit, Insert, Update, Delete, Truncate, Drop, VACUUM, ANALYZE, REINDEX |
| ποΈ Views | View Definition, Edit, Query Data, Drop |
| π Materialized Views | Refresh, View Data, Edit, Drop |
| βοΈ Functions | View, Edit, Call with Parameters, Drop |
| π·οΈ Types | View Properties, Edit, Drop |
| π Foreign Data Wrappers | Create/Drop Server, User Mappings, Import Schema |
| π Foreign Tables | View, Edit, Drop |
| π§© Extensions | Enable, Disable, Drop |
| π₯ Roles | Grant/Revoke Permissions, Edit, Drop |
β¨οΈ Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Enter | Execute current cell |
Shift+Enter | Execute and move to next |
F5 | Refresh current item |
Ctrl+Shift+P | Command palette |
π Resources
- π Full Documentation
- π Report Issues
- π‘ Request Features
- β Star on GitHub
π License
This extension is licensed under the MIT License.
Made with β€οΈ for the PostgreSQL Community
Also available on Open VSX