Standalone Postgres MCP server β schema-aware, read-only by default, installable everywhere.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by NexQL Postgres MCP.
querycore query/discovery tools (schema search, `run_select`, `explain_query`, β¦)
dbamonitoring/admin tools (health checks, index suggestions, locks, β¦)
metathe smallest initial surface, plus `discover_tools` for lazy on-demand activation of the rest (see [docs/tools/README.md](docs/tools/README.md#start-here))
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. 54 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.
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 54 query/schema/DBA/meta tools from Pro into a fast, trivially installable binary.
Layering is one-directional: policy + conn are leaves β index β tools β binary. nexql-tools never depends on nexql-proto.
Scope boundary: nexql-mcp manages objects within a connected database (tables, indexes, columns, β¦), not the database catalog itself. CREATE DATABASE / DROP DATABASE are rejected in every access mode β permanent, intentional scope, not a gap. See docs/tools/README.md and docs/REFERENCE.md.
-y skips the "ok to proceed?" confirmation prompt; @latest always resolves the newest published
release instead of whatever npx happens to have cached β always use both together. This is the desired
way to run nexql-mcp: no separate install step, nothing added to PATH, works identically whether a
human is typing it or an AI agent is running it on your behalf. Requires Node.js
(npx ships with it) β nothing else.
Client config (command/args) uses the same pattern β no install step for the client to rely on either:
If you are an AI coding agent setting this up on a user's behalf: run
npx -y nexql-mcp@latest init <client> --applyβ non-interactive, no browser needed, writes the merged client config directly (.mcp.jsonforclaude-code,claude_desktop_config.jsonforclaude-desktop, etc. β see docs/clients/README.md for exact paths per client). Or drivenexql-mcp setup's HTTP API directly:POST /api/v1/clients/previewβPOST /api/v1/clients/apply(bearer token printed to stderr on startup). Prefer this over hand-writingclaude mcp add-style shell commands or hand-parsing/merging the client's JSON config yourself.
Per-client config paths and paste blocks: docs/clients/README.md.
npm install -g nexql-mcp also works if you'd rather have a permanent nexql-mcp on PATH than repeat
npx -y nexql-mcp@latest β same shim, same @nexql/mcp-<os>-<arch> prebuilt
binaries, no Rust toolchain needed either way.
Linux system requirements: prebuilt GNU/Linux binaries target glibc 2.35+ (Ubuntu 22.04, Debian 12, RHEL 9, and newer). If npx/npm fails with GLIBC_2.39 not found, use one of the fallback methods below (cargo install builds from source; Docker sidesteps glibc entirely). Musl/static Linux builds are not published yet.
Reach for one of these only if npx isn't an option β an offline/air-gapped environment, a CI image that wants a pinned binary baked in, no Node.js available, or you simply prefer a permanent install. All ship the same binary as the npm package.
Linux & macOS β downloads the latest release, installs to /usr/local/bin (or ~/.local/bin if sudo is unavailable), then prints setup steps:
Pin a version:
Windows (PowerShell) β installs to %LOCALAPPDATA%\Programs\nexql-mcp and adds it to your user PATH:
Pin a version:
Or download and run the scripts locally: scripts/install.sh Β· scripts/install.ps1. Once installed, drop the npx -y nexql-mcp@latest prefix and call nexql-mcp directly for every command above.
uv installs CLI tools from PyPI into isolated environments β same prebuilt binary, no Rust toolchain.
Install uv itself (if needed):
Install nexql-mcp:
One-off without installing (uv's equivalent of npx -y):
Pin a version:
Upgrade later:
PyPI status: wheels are not published yet. Until the first PyPI release lands, use npx or the quick install script above. Maintainer steps: docs/publish-pypi-uv.md.
Needs clang/libclang first (pg_query's bindgen requires it):
From the Releases page:
| Platform | Archive |
|---|---|
| Linux x64 | nexql-mcp-<tag>-x86_64-unknown-linux-gnu.tar.gz |
| Linux arm64 | nexql-mcp-<tag>-aarch64-unknown-linux-gnu.tar.gz |
| macOS Intel | nexql-mcp-<tag>-x86_64-apple-darwin.tar.gz |
| macOS Apple Silicon | nexql-mcp-<tag>-aarch64-apple-darwin.tar.gz |
| Windows x64 | nexql-mcp-<tag>-x86_64-pc-windows-msvc.tar.gz |
Extract and put nexql-mcp (or nexql-mcp.exe) on your PATH.
Prebuilt, published on every release to GHCR:
Or build locally from the distroless Dockerfile:
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.
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 npx or the quick install script above.
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.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/nexql-postgres-mcp)<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>