Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>QueryDeckNew to Visual Studio Code? Get it now.
QueryDeck

QueryDeck

vs-code-database-client

|
31 installs
| (0) | Free
AI-first SQL workbench for VS Code with multi-database connections, local query memory, performance recommendations, and result grids.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

QueryDeck

AI-first SQL workbench and database client for VS Code.

QueryDeck keeps the everyday database loop inside your editor: connect to databases, browse schemas, run SQL, inspect result grids, search query history, and use AI help without switching tools.

Built for Codex, Claude Code, and AI-assisted SQL workflows with local query memory and table performance recommendations.

Works with PostgreSQL, MySQL, SQLite, Microsoft SQL Server, Oracle, Redis, Snowflake, and Redshift.

Use QueryDeck when you want a VS Code-native database workbench that also gives AI coding agents controlled database context instead of copied schema snippets and risky write access.

QueryDeck MySQL result grid in VS Code

Why QueryDeck?

  • VS Code database client for local, staging, production, and warehouse connections.
  • SQL editor workflow with query consoles, .sql files, selection execution, and Ctrl+Enter / Cmd+Enter.
  • Schema explorer for tables, views, columns, keys, indexes, functions, procedures, triggers, and DDL.
  • Fast result grids with paging, filters, sorting, copy, export, charts, and pinned tabs.
  • Local query memory search by phrase, table, column, output field, SQL fragment, file, connection, or status.
  • AI SQL assistant for explaining SQL, fixing errors, modifying queries, summarizing history, and table performance review.
  • Safer database work with read-only connections and destructive-query confirmation for production.
  • Read-only MCP context for AI agents that need schema, DDL, query memory, and row-limited SELECT access.

Screenshots

Connections

QueryDeck saved database connections in VS Code

SQL Editor

QueryDeck SQL editor workflow in VS Code

PostgreSQL Explorer

QueryDeck database explorer with PostgreSQL connection in VS Code

PostgreSQL Table Data

QueryDeck PostgreSQL table data grid in VS Code

Daily Workflow

connect -> browse schema -> write SQL -> run query -> inspect results -> search history

Use QueryDeck for reporting, analytics checks, migration review, debugging, data cleanup, production support, and exploratory SQL.

Core Features

Area Highlights
Connections PostgreSQL, MySQL, SQLite, SQL Server, Oracle, Redis, Snowflake, Redshift
Explorer Schemas, tables, views, columns, keys, indexes, functions, procedures, triggers
Querying Persistent consoles, .sql files, selected SQL, current statement, full file, multi-statement batches
Results Grid paging, filters, sorting, copy, CSV/export, charting, pinned result tabs
Search Find past queries by natural phrases, SQL text, tables, columns, files, status, and result fields
AI Explain SQL, fix SQL, modify SQL, summarize query memory, analyze table performance
Safety SecretStorage passwords, local query history, production prompts, read-only connection mode

Quick Start

  1. Install QueryDeck from the VS Code Marketplace.
  2. Open the Database activity view.
  3. Run Database: Add Database Connection.
  4. Choose PostgreSQL, MySQL, SQLite, SQL Server, Oracle, Redis, Snowflake, or Redshift.
  5. Connect, open a query console, and run SQL with Ctrl+Enter or Cmd+Enter.

Search Past Queries

Run Database: Find Past Query... and search like this:

monthly revenue by status
failed customer lookup
orders last 30 days
email domain counts

QueryDeck searches local query memory across titles, summaries, SQL text, source files, connection names, tables, columns, output columns, and execution status.

AI SQL Tools

When VS Code language models or an OpenAI-compatible provider are configured, QueryDeck can explain selected SQL, fix failed SQL, rewrite queries from instructions, summarize query memory, and analyze table performance.

Saved database passwords are not sent to AI prompts.

MCP Server For AI Agents

QueryDeck includes a read-only MCP server for Codex, Claude, Cursor, and other MCP clients. It exposes tools to list database connections, inspect schemas, get table DDL, search query memory, explain queries, and run read-only SQL with row limits.

Create a config file and point your MCP client at dist/mcpServer.js from the installed extension or local checkout:

{
  "defaultMaxRows": 100,
  "connections": [
    {
      "id": "local-postgres",
      "name": "Local PostgreSQL",
      "type": "postgres",
      "host": "localhost",
      "port": 5432,
      "database": "postgres",
      "username": "postgres",
      "passwordEnv": "QUERYDECK_POSTGRES_PASSWORD",
      "sslMode": "disable",
      "color": "blue"
    }
  ],
  "queryMemory": []
}

Set QUERYDECK_MCP_CONFIG to that file and configure the client command as node dist/mcpServer.js. MCP query execution is read-only by default; write and destructive statements are rejected.

Coming From Another Database Tool?

  • Compared with SQLTools: QueryDeck focuses on a full workbench loop: query consoles, result tabs, local query memory, AI SQL tools, and MCP context for agents.
  • Compared with Database Client: QueryDeck's differentiator is AI-assisted SQL workflow, local query memory search, and safer agent access rather than only broad connection coverage.
  • Compared with DBCode: QueryDeck is open source and focused on local-first VS Code/Cursor workflows with explicit read-only MCP posture.
  • Compared with desktop IDEs: QueryDeck keeps everyday SQL work inside the editor where code, AI assistance, and database context already meet.

Privacy And Safety

  • Passwords are stored with VS Code SecretStorage.
  • Query history stays local to your VS Code environment.
  • Production connections can require confirmation before destructive SQL.
  • Read-only connections block non-SELECT-style queries.
  • See PRIVACY.md, SECURITY.md, and SUPPORT.md for launch and support details.

Local Live Tests

The project includes Docker-backed live tests for PostgreSQL, MySQL, Redis, SQL Server, Oracle, and SQLite.

docker compose -f docker-compose.live-tests.yml up -d postgres
LIVE_DATABASE_ENGINE=postgres npm run test:live
docker compose -f docker-compose.live-tests.yml down -v

Use LIVE_DATABASE_ENGINE=all after starting the Docker services to run the full live matrix.

Status

QueryDeck is early and moving quickly. Try it against a real workflow and open issues for missing drivers, rough edges, or SQL workflows that should be faster.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft