NexQL Postgres MCP
A standalone Postgres MCP server that provides schema-aware, read-only by default access to database models. It features an offline schema index with TF-IDF, join graphs, and value profiles to prevent hallucinations. The server exposes 55 tools across Schema, Query, Context, Perf, Write, and Admin categories, allowing AI agents to safely interact with Postgres databases.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Read and understand data models from Postgres databases
- Execute safe, schema-aware SQL queries
- Analyze database performance and structure
- Manage database objects within a connected database
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
nexql-mcp 0.2.4
{
"version": "0.2.4",
"transport": "stdio",
"identifier": "nexql-mcp",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"packageArguments": [
{
"type": "positional",
"valueHint": "connection_string",
"description": "Postgres connection string (postgres://user:pass@host:5432/dbname). Omit to use a saved --profile or DATABASE_URL."
}
],
"environmentVariables": [
{
"name": "DATABASE_URL",
"description": "Postgres connection string, used when no positional URL or --profile is given."
},
{
"name": "NEXQL_MCP_CONFIG",
"description": "Path to config.toml (default: ~/.config/nexql-mcp/config.toml)."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"nexql-postgres-mcp": {
"command": "npx",
"args": [
"-y",
"nexql-mcp@0.2.4"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"NEXQL_MCP_CONFIG": "<YOUR_NEXQL_MCP_CONFIG>"
}
}
}
}Cline
{
"mcpServers": {
"nexql-postgres-mcp": {
"command": "npx",
"args": [
"-y",
"nexql-mcp@0.2.4"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"NEXQL_MCP_CONFIG": "<YOUR_NEXQL_MCP_CONFIG>"
}
}
}
}VS Code
{
"servers": {
"nexql-postgres-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"nexql-mcp@0.2.4"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"NEXQL_MCP_CONFIG": "<YOUR_NEXQL_MCP_CONFIG>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"nexql-postgres-mcp": {
"command": "npx",
"args": [
"-y",
"nexql-mcp@0.2.4"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"NEXQL_MCP_CONFIG": "<YOUR_NEXQL_MCP_CONFIG>"
}
}
}
}Let your agent find its tools
Find servers like NexQL Postgres MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.