# NexQL Postgres MCP [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/NexQL-OSS/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 590  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nexql-postgres-mcp

## Description
Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere.

## Tools
Capabilities this server exposes over MCP:

- **dba** — monitoring/admin tools (health checks, index suggestions, locks, …)
- **meta** — the 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))
- **full** — every active tool

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "nexql-postgres-mcp": {
    "command": "npx",
    "args": ["-y","nexql-mcp"]
  }
}
```

## Documentation

## What NexQL Postgres MCP does

NexQL Postgres MCP gives MCP-compatible clients access to objects and operations inside a connected PostgreSQL database. Its toolset covers schema inspection, querying, database context, performance analysis, data changes, and administration. Access starts in read-only mode, while write and administrative operations can be enabled through the server’s access controls.

The server is designed around schema awareness rather than treating PostgreSQL as an unstructured query endpoint. It maintains an offline index containing searchable schema information, inferred relationships between tables, and value profiles. Optional embeddings and reciprocal-rank fusion can contribute to discovery alongside lexical search.

## How it works

The project is distributed as an independent Rust binary that an MCP client can spawn over stdio. It also supports HTTP transport with bearer authentication, sessions, and rate limiting. Connection handling, credentials, policy, indexing, tool registration, and MCP protocol types are separated into distinct components.

Three tool surfaces are available:

- `meta` starts with the smallest surface and includes `discover_tools`, allowing additional tools to be activated when needed.
- `dba` focuses on monitoring and administration, including health checks, index suggestions, and lock inspection.
- `full` activates the complete tool set.

The server provides 55 tools across Schema, Query, Context, Perf, Write, and Admin areas. It operates on objects within the selected database, such as tables, indexes, and columns, rather than managing the database catalog itself.

## Setup and configuration

The recommended cross-client installation uses Node.js and `npx`:

```bash
npx -y nexql-mcp@latest postgres://dev@localhost:5432/appdb doctor
```

The package also provides `setup`, `init`, and `tui` commands for creating connection profiles and wiring the server into supported clients. A typical MCP configuration launches `npx` with the `nexql-mcp@latest` package and a named profile. Claude Desktop has a downloadable bundle that accepts a database URL and includes an option to allow data changes; the default for that option is off.

Permanent installation is available through npm, the project’s shell or PowerShell installers, manual release archives, Docker, or Cargo. Cargo builds require clang/libclang. Prebuilt GNU/Linux binaries require glibc 2.35 or newer; Docker can avoid that host-library requirement.

## Tools and capabilities

The available categories support database discovery and operations at different levels:

- Schema tools expose database structure for agent use.
- Query tools support working with PostgreSQL data.
- Context tools use the indexed database knowledge to improve discovery.
- Performance tools support analysis such as index suggestions.
- Write tools provide controlled data changes when enabled.
- Admin tools cover monitoring tasks such as health and lock checks.
- Meta tools let clients discover and activate tools on demand.

## Limitations and notes

`CREATE DATABASE` and `DROP DATABASE` are rejected in every access mode. The server manages objects inside an already connected database, not PostgreSQL’s database-level catalog. Full OAuth gateway functionality remains part of NexQL Pro rather than this standalone server.

_Full upstream README: https://allmcps.com/mcp/nexql-postgres-mcp/readme_

