NestDaddy

NexQL Postgres MCP

io.github.NexQL-OSS/nexql-mcp · v0.2.4

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

Connect Runs on your machine

Terminal
claude mcp add nexql-mcp -e DATABASE_URL=<DATABASE_URL> -e NEXQL_MCP_CONFIG=<NEXQL_MCP_CONFIG> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "nexql-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "NEXQL_MCP_CONFIG": "<NEXQL_MCP_CONFIG>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "nexql-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "NEXQL_MCP_CONFIG": "<NEXQL_MCP_CONFIG>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "nexql-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "NEXQL_MCP_CONFIG": "<NEXQL_MCP_CONFIG>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
DATABASE_URL
Optional, secret
Postgres connection string, used when no positional URL or --profile is given.
NEXQL_MCP_CONFIG
Optional
Path to config.toml (default: ~/.config/nexql-mcp/config.toml).

Details

Package[email protected] (NPM, stdio)
Package[email protected] (CARGO, stdio)
First published8 Aug 2026
Last updated8 Aug 2026
Registry nameio.github.NexQL-OSS/nexql-mcp

More databases servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.