Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ—„οΈ Databases
  3. NexQL Postgres MCP
N
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:08:43 AM

NexQL Postgres MCP

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

Standalone Postgres MCP server β€” schema-aware, read-only by default, installable everywhere.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "nexql-postgres-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nexql-postgres-mcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ—„οΈ More in Databases

Documentation Overview

nexql-mcp

Standalone Postgres MCP server β€” schema-aware, read-only by default, installable everywhere.

NexQL Pro ships an in-process MCP server locked to VS Code (pro/src/mcp/). This repo extracts that capability into an independent Rust binary any MCP client can spawn: Claude Desktop, Cursor, VS Code Copilot, Zed, etc.

Status: Phases 0–6 + Phase 7 extension cutover (stdio spawn) + Phase 8 HTTP (bearer, sessions, rate limit) + Phase 9 write/admin tools landed. 53 tools across Schema, Query, Context, Perf, Write, and Admin. Full OAuth gateway stays pro-only; session-store LRU eviction cap not yet implemented. See docs/CUTOVER.md.

Why this exists

Competing Postgres MCP servers expose connect β†’ run query β†’ return rows. Models hallucinate table names against schemas that do not exist. NexQL's moat is the offline schema index (TF-IDF, join graph with inferred FKs, value profiles, optional embeddings, RRF fusion) built in pro/src/features/dbindex/. This repo ports that index plus 53 query/schema/DBA/meta tools from Pro into a fast, trivially installable binary.

Architecture

Code
crates/
β”œβ”€β”€ nexql-mcp/      CLI, subcommands, wiring (binary)
β”œβ”€β”€ nexql-proto/    MCP JSON-RPC types, transports
β”œβ”€β”€ nexql-tools/    tool registry, schemas, executors
β”œβ”€β”€ nexql-index/    dbindex port (builder, store, lexical, joins, embed)
β”œβ”€β”€ nexql-conn/     connection resolution, pool, credentials
└── nexql-policy/   access modes, allow/deny, PII, caps, audit
npm/                npx shim (per-platform optionalDependencies)
mcpb/               one-click Claude Desktop bundle
docs/               per-client setup, tool reference

Layering is one-directional: policy + conn are leaves β†’ index β†’ tools β†’ binary. nexql-tools never depends on nexql-proto.

Install

Pick whichever fits your workflow β€” all methods ship the same binary.

Linux system requirements: prebuilt GNU/Linux binaries target glibc 2.35+ (Ubuntu 22.04, Debian 12, RHEL 9, and newer). Releases from v0.2.1 and earlier were built on Ubuntu 24.04 and require glibc 2.39 β€” if npm install nexql-mcp fails with GLIBC_2.39 not found, upgrade to the next release, use cargo install (builds from source), or run the Docker image. Musl/static Linux builds are not published yet.

Quick install (Linux / macOS / Windows)

Linux & macOS β€” downloads the latest release, installs to /usr/local/bin (or ~/.local/bin if sudo is unavailable), then prints setup steps:

Terminal
curl -fsSL https://raw.githubusercontent.com/NexQL-OSS/mcp/main/scripts/install.sh | bash

Pin a version:

bash
NEXQL_MCP_VERSION=v0.2.2 curl -fsSL https://raw.githubusercontent.com/NexQL-OSS/mcp/main/scripts/install.sh | bash

Windows (PowerShell) β€” installs to %LOCALAPPDATA%\Programs\nexql-mcp and adds it to your user PATH:

powershell
irm https://raw.githubusercontent.com/NexQL-OSS/mcp/main/scripts/install.ps1 | iex

Pin a version:

powershell
$env:NEXQL_MCP_VERSION = "v0.2.2"; irm https://raw.githubusercontent.com/NexQL-OSS/mcp/main/scripts/install.ps1 | iex

Or download and run the scripts locally: scripts/install.sh Β· scripts/install.ps1.

After install

bash
# 1. Verify
nexql-mcp --version

# 2. Test a Postgres connection
nexql-mcp postgres://dev@localhost:5432/appdb doctor

# 3. Wire your MCP client (or run the guided wizard)
nexql-mcp init cursor          # Cursor
nexql-mcp init claude-desktop  # Claude Desktop
nexql-mcp init vscode-copilot  # VS Code Copilot
nexql-mcp tui                  # interactive profile + client wiring

Per-client config paths and paste blocks: docs/clients/README.md.

npm / npx

Terminal
npx -y nexql-mcp postgres://dev@localhost:5432/appdb   # one-off, no install
npm install -g nexql-mcp                                # or install it once

nexql-mcp is a shim (npm/bin/nexql-mcp.js) that resolves the right prebuilt binary from a per-platform optionalDependency (@nexql/mcp-<os>-<arch>) β€” no Rust toolchain needed.

uv (PyPI)

uv installs CLI tools from PyPI into isolated environments β€” same prebuilt binary, no Rust toolchain.

Install uv itself (if needed):

Terminal
curl -LsSf https://astral.sh/uv/install.sh | sh   # macOS / Linux
powershell
irm https://astral.sh/uv/install.ps1 | iex        # Windows

Install nexql-mcp:

bash
uv tool install nexql-mcp
uv tool update-shell    # once, if uv warns the tool bin dir is not on PATH

One-off without installing:

bash
uvx nexql-mcp postgres://dev@localhost:5432/appdb doctor

Pin a version:

bash
uv tool install 'nexql-mcp==0.2.2'

Upgrade later:

bash
uv tool upgrade nexql-mcp

Then follow After install above.

PyPI status: wheels are not published yet. Until the first PyPI release lands, use quick install or npm. Maintainer steps: docs/publish-pypi-uv.md.

cargo (crates.io)

bash
cargo install nexql-mcp

Builds from source, so you need clang/libclang first (pg_query's bindgen requires it):

bash
sudo apt install clang libclang-dev   # Debian/Ubuntu
sudo pacman -S clang                  # Arch

Manual download

Prefer the quick install scripts above. To install by hand, grab the archive for your platform from the Releases page:

PlatformArchive
Linux x64nexql-mcp-<tag>-x86_64-unknown-linux-gnu.tar.gz
Linux arm64nexql-mcp-<tag>-aarch64-unknown-linux-gnu.tar.gz
macOS Intelnexql-mcp-<tag>-x86_64-apple-darwin.tar.gz
macOS Apple Siliconnexql-mcp-<tag>-aarch64-apple-darwin.tar.gz
Windows x64nexql-mcp-<tag>-x86_64-pc-windows-msvc.tar.gz

Extract and put nexql-mcp (or nexql-mcp.exe) on your PATH, then follow After install above.

Docker

Prebuilt, published on every release to GHCR:

Terminal
docker run --rm -i ghcr.io/nexql-oss/mcp:0.2.2 postgres://dev@host.docker.internal:5432/appdb
# or: ghcr.io/nexql-oss/mcp:latest

Or build locally from the distroless Dockerfile:

Terminal
docker build -t nexql-mcp:0.2.2 .
docker run --rm -i nexql-mcp:0.2.2 postgres://dev@host.docker.internal:5432/appdb

Claude Desktop (MCPB one-click bundle)

Each release attaches a platform .mcpb bundle (nexql-mcp-<vendor>.mcpb) β€” download the one matching your OS/arch from the Releases page and double-click to install into Claude Desktop. Built from mcpb/manifest.json via scripts/package-mcpb.sh.

Homebrew

No published tap yet β€” each release renders a formula (Formula/nexql-mcp.rb, via scripts/render-homebrew-formula.sh) and attaches it as a release asset for a future homebrew-tap repo to pick up. Until that tap exists, use the quick install or cargo methods above.

MCP Registry

Listed in the official MCP Registry as io.github.NexQL-OSS/nexql-mcp (server.json), published automatically after each release via GitHub OIDC (no stored credentials) β€” see .github/workflows/publish-mcp-registry.yml.

  • mcp-name: io.github.NexQL-OSS/nexql-mcp

From source

server.ts
export LIBCLANG_PATH="${LIBCLANG_PATH:-/usr/lib}"   # or your llvm lib dir
cargo build --release -p nexql-mcp
./target/release/nexql-mcp postgres://dev@localhost:5432/appdb

Set up a connection

One-off, no config β€” pass a connection string directly:

bash
nexql-mcp postgres://dev@localhost:5432/appdb

Saved profiles β€” put connections in ~/.config/nexql-mcp/config.toml (override the path with NEXQL_MCP_CONFIG):

toml
default_profile = "local"

[profiles.local]
url = "postgres://dev@localhost:5432/appdb"
access_mode = "read"

[profiles.prod]
host = "prod.example.com"
dbname = "app"
user = "readonly_agent"
password_command = "op read op://vault/pg/password"   # never store plaintext secrets
sslmode = "verify-full"
access_mode = "read"
schemas = ["public", "billing"]
deny_tables = ["auth.*"]
pii_columns = ["public.users.ssn", "public.users.email"]
max_rows = 200

Full field reference: docs/config.example.toml. Then run bare (nexql-mcp) to use default_profile, or nexql-mcp --profile prod.

Test a connection before wiring it into a client:

bash
nexql-mcp postgres://dev@localhost:5432/appdb doctor
# or, for a saved profile (note: --profile goes before the subcommand):
nexql-mcp --profile prod doctor

Guided setup β€” an interactive profile editor plus one-keystroke wiring into whichever clients you use: nexql-mcp tui (see Interactive TUI below).

Wire a client

bash
nexql-mcp postgres://dev@localhost:5432/appdb init cursor

Supported init clients: claude | claude-desktop | claude-code | cursor | vscode | vscode-copilot | zed | windsurf | continue | jetbrains | openai-agents.

Per-client paste blocks: docs/clients/README.md.

Use with the NexQL VS Code extension

If you already use ric-v.postgres-explorer (+ NexQL Pro), you don't need any of the above β€” the extension can spawn this binary itself and reuse your existing saved connections instead of a separate config.toml.

  1. Settings β†’ search NexQL: Mcp: Enabled (postgresExplorer.mcp.enabled) β†’ check it. Off by default.
  2. That's it β€” it takes effect immediately (no reload needed) and picks up every connection already saved in postgresExplorer.connections. It shows up as an MCP server named NexQL in Copilot Chat / agent-mode tool pickers.

The extension resolves the binary in this order: postgresExplorer.mcp.binaryPath setting β†’ NEXQL_MCP_BIN env var β†’ a copy bundled with the extension β†’ whatever nexql-mcp is on your PATH (i.e. anything installed via npm/cargo/curl above). Set postgresExplorer.mcp.binaryPath explicitly if you want the extension to use a specific install.

Interactive TUI

bash
nexql-mcp tui

Guided profile editor: add/edit/delete a connection profile, test-connect it live before saving, then pick any of 7 clients (Claude Desktop, Claude Code, Cursor, VS Code, Copilot Chat, Zed, Windsurf) to wire it into at once. Each selected client's real config file is read, merged (existing unrelated servers are preserved), shown as a diff, and only written after you confirm β€” a timestamped backup is kept alongside it. continue / jetbrains / openai-agents have no safe on-disk merge target, so those stay copy-paste snippets in the summary screen, same as init.

Keys: n new Β· e/Enter edit Β· d delete Β· t test Β· w wire into clients Β· q quit. Bare nexql-mcp (no URL, no flags) launches the TUI automatically when nothing else resolves a connection.

Releases

Pushing a v* tag triggers .github/workflows/release.yml: builds darwin arm64/x64, linux gnu arm64/x64, and windows x64; attaches archives, per-platform .mcpb bundles, a CycloneDX SBOM, and a rendered Homebrew formula to a GitHub release; publishes the npm packages and GHCR image; and publishes the workspace crates to crates.io in dependency order. A follow-up workflow (publish-mcp-registry.yml) then lists the release on the MCP Registry via GitHub OIDC. Linux GNU binaries are built on Ubuntu 22.04 (glibc 2.35). Musl targets remain deferred until a clang-enabled musl builder is validated.

Development

bash
cargo check          # workspace compile
cargo run -p nexql-mcp -- doctor
cargo test -p nexql-mcp -- init_clients
cargo fmt --all
cargo clippy --workspace --all-targets

Read CLAUDE.md and docs/REFERENCE.md before implementing.

License

GPL-3.0-only for all crates in this repo, from v0.2.0 onward. If you distribute this program or a derivative β€” including bundled inside another application β€” you must release your source under the GPL as well.

Releases up to and including v0.1.6 were published under Apache-2.0. That grant is irrevocable for those versions and is unaffected by this change.

Copyright is held solely by the NexQL-OSS Team, so commercial licenses that lift the GPL obligation are available on request. Premium extensions (provider embeddings, team sync, hosted gateway) live in a separate proprietary crate.

Roadmap

PhaseDeliverable
0Spike: tokio-postgres + candle MiniLM proof
1nexql-conn + nexql-policy + pg_query validator
2MCP stdio transport + ~8 catalog tools
3nexql-index (byte-compatible with TS format)
4Full tool surface, resources, prompts, completions
5Local embeddings + RRF fusion
6v1.0 ship: cargo-dist, npm, brew, Docker, MCPB
7Extension cutover β€” VS Code spawns binary via stdio MCP definition
8Streamable HTTP + bearer token (--http / NEXQL_MCP_HTTP_TOKEN) β€” OAuth gateway = pro
9Write/admin tools + validate_write_sql (opt-in --access-mode write|admin)

Full plan: internal design doc (federated-greeting-badger). Cutover details: docs/CUTOVER.md.

Reference implementation

TypeScript sources in the sibling nexql-pro checkout (chat still uses these; MCP HTTP stack removed):

  • pro/src/mcp/McpDefinitionProvider.ts β€” stdio spawn of this binary
  • pro/src/mcp/NexqlMcpStdioHost.ts β€” ephemeral profile + binary resolve
  • pro/src/providers/chat/tools/ToolSpec.ts
  • pro/src/providers/chat/tools/ToolExecutor.ts
  • pro/src/features/dbindex/*

Related MCP Servers

View all in Databases View all alternatives
  • AllMCPs Server logoAllMCPs Server
    β˜… Featured

    The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 3,181+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

    πŸ—„οΈ Databases7 views
    Compare vs AllMCPs Server β†’
  • Genai Toolbox logoGenai Toolbox

    Open source MCP server specializing in easy, fast, and secure tools for Databases.

    πŸ—„οΈ Databases3 views
    Compare vs Genai Toolbox β†’
  • Mcp Server Duckdb logoMcp Server Duckdb

    DuckDB database integration with schema inspection and query capabilities

    πŸ—„οΈ Databases2 views
    Compare vs Mcp Server Duckdb β†’
  • Mcp Mongo Server logoMcp Mongo Server

    A Model Context Protocol Server for MongoDB

    πŸ—„οΈ Databases2 views
    Compare vs Mcp Mongo Server β†’

Frequently Asked Questions about NexQL Postgres MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "nexql-postgres-mcp": { "command": "npx", "args": ["-y", "NexQL Postgres MCP"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNexQL Postgres MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nexql-postgres-mcp?style=directory)](https://allmcps.com/mcp/nexql-postgres-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/nexql-postgres-mcp"><img src="https://allmcps.com/api/badge/nexql-postgres-mcp?style=directory" alt="NexQL Postgres MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ—„οΈDatabases
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 3,181+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ—„οΈ Databases β†’Best MCP servers for Databases β†’Alternatives to NexQL Postgres MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code