Ainative Postgres MCP server
Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.
0 stars47 downloads/wk
Reviews
Write oneNobody has reviewed Ainative Postgres yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Ainative Postgres tools (5, 3 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
create_tablewrite actionCreate a new table in the database using a SQL CREATE TABLE statement. Supports all PostgreSQL column types including pgvector vector columns.
describe_tableGet the full schema of a table including columns (name, type, nullable, default), constraints (primary key, foreign key, unique), and indexes. Supports schema.table format.
insertwrite actionInsert one or more rows into a table. Rows are provided as an array of objects where keys are column names. Returns the inserted rows.
list_tablesList all tables in the connected PostgreSQL database, including schema, table name, and type (BASE TABLE or VIEW).
querywrite actionExecute a read-only SQL query against the connected PostgreSQL database. All queries run inside a READ ONLY transaction for safety. Use this for SELECT, EXPLAIN, and other read operations.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 54 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
What the publisher says
From the Ainative Postgres repository's README, as published. We do not edit it. Read it on GitHub
ainative-postgres-mcp
Zero-config PostgreSQL MCP server with auto-provisioning. Drop-in replacement for @modelcontextprotocol/server-postgres — no DATABASE_URL needed.
The official @modelcontextprotocol/server-postgres requires you to bring your own Postgres database and pass a connection string. This fork auto-provisions a managed PostgreSQL instance with pgvector on first run. Agents get a database instantly with zero configuration.
Quick Start
npx ainative-postgres-mcpThat's it. On first run:
- A free managed PostgreSQL instance is provisioned
- pgvector extension is enabled automatically
- Connection details are saved to ~/.ainative/postgres-config.json, .env, and .mcp.json
- A claim URL is printed so you can take ownership of the database
MCP Configuration
Claude Code / Claude Desktop
Add to your claudedesktopconfig.json or .mcp.json:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "ainative-postgres-mcp"]
}
}
}With existing database
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "ainative-postgres-mcp"],
"env": {
"DATABASE_URL": "postgresql://user:pass@host:5432/mydb"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "ainative-postgres-mcp"]
}
}
}Windsurf
Add to ~/.windsurf/mcp.json:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "ainative-postgres-mcp"]
}
}
}Tools
Comparison with official server-postgres
How Auto-Provisioning Works
Start
|
v
DATABASE_URL set? ----yes----> Connect directly
|
no
v
~/.ainative/postgres-config.json exists? ----yes----> Load and connect
|
no
v
.mcp.json has DATABASE_URL? ----yes----> Load and connect
|
no
v
POST /api/v1/public/instant-db (get API key)
|
v
POST /api/v1/zerodb/postgres/provision (get Postgres)
|
v
Save to ~/.ainative/postgres-config.json + .env + .mcp.json
|
v
Connect and enable pgvectorpgvector Support
pgvector is automatically enabled on provisioned instances. You can use vector columns in your tables:
CREATE TABLE documents (
id SERIAL PRIMARY KEY,
content TEXT,
embedding vector(1536)
);And run similarity searches:
SELECT content, embedding <=> '[0.1, 0.2, ...]'::vector AS distance
FROM documents
ORDER BY distance
LIMIT 10;Environment Variables
Free Tier
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y ainative-postgres-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add ainative-postgres-mcp -- npx -y ainative-postgres-mcp
Ainative Postgres: common questions
- Is Ainative Postgres MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the Ainative Postgres safety report
- How do I install Ainative Postgres?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Ainative Postgres need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Ainative Postgres maintained?
- The last commit was 55 days ago (2026-08-01). The latest release is v1.0.1.
- What can I use instead of Ainative Postgres?
- Servers from other publishers that do the same job: Gnosis MCP server, csvql MCP server and Run402 MCP server. Compare all Ainative Postgres alternatives.
Alternatives to Ainative Postgres
Same job from other publishers: the closest match first, then the best rated.
- Gnosis MCPZero-config MCP server for searchable documentation. SQLite or PostgreSQL.not reviewedGrowingA
- csvqlQuery CSV files with SQL via MCP. Fast, local, zero-config, read-only, sandboxable with --root.not reviewedGrowingA
- Run402x402 pay-per-call infra for agents: $0.03 image generation, Postgres, auth, storage, functions.not reviewedEstablishedB
- NeonOfficial Neon MCP server for managing Neon projects and Lakebase Postgres databases.not reviewedEstablishedA
- PostgreSQLMCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.not reviewedEstablishedB