
Ainative Postgres Mcp
io.github.AINative-StudioPublished by GitHub account AINative-Studiov1.0.1Updated Oct 24, 2026
Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.
Overview
A local PostgreSQL MCP server that auto-provisions a free managed Postgres instance with pgvector, letting an assistant query, inspect and modify tables.
- What you can do
- Run read-only SQL queries in a read-only transaction and run similarity searches on vector columns. List tables and inspect full table schemas, including columns, types, constraints and indexes. Create new tables with SQL DDL and insert rows, returning the inserted rows. On first run, provision a managed PostgreSQL instance with pgvector enabled and save connection details locally.
- When to use it
- Useful when an assistant needs a working Postgres database for development, prototyping or vector storage without supplying a connection string, or when you want a drop-in replacement for the official server-postgres with schema inspection and write tools.
- Requirements
- Runs locally via npx, so Node.js is needed. No account or key is required to start: without DATABASE_URL it provisions a managed instance through the ZeroDB API and writes credentials to a local config file, .env and .mcp.json. Optional variables: DATABASE_URL, ZERODB_API_KEY, ZERODB_PROJECT_ID, ZERODB_API_URL. Network access is required for provisioning.
Installation
In SourceWeft
- Open Ainative Postgres Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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
That'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 claude_desktop_config.json or .mcp.json:
With existing database
Cursor
Add to .cursor/mcp.json:
Windsurf
Add to ~/.windsurf/mcp.json:
Tools
Comparison with official server-postgres
How Auto-Provisioning Works
pgvector Support
pgvector is automatically enabled on provisioned instances. You can use vector columns in your tables:
And run similarity searches:
Environment Variables
Free Tier
Auto-provisioned instances include:
- Managed PostgreSQL with pgvector
- Shared compute (suitable for development and light production)
- Automatic backups
- SSL encryption
Sign up at ainative.studio to claim your instance and unlock higher limits.
License
MIT
Powered by ZeroDB + AINative
This package is part of the AINative ecosystem — the AI-native developer platform.
Why ZeroDB?
Get Started Free
Or sign up at ainative.studio — free tier, no credit card required.
Zero-Config Auto-Provisioning
No account needed to start. On first run, this package automatically:
- Provisions a free ZeroDB instance (~800ms)
- Saves credentials locally (
.env,.mcp.json) - Prints a claim link in your terminal
The 72-Hour Window
Your auto-provisioned instance is free for 72 hours. To keep your data permanently, visit the claim URL printed in your terminal.
For AI Agents
If a coding agent (Claude Code, Cursor, Windsurf) installs this package:
- Auto-provisions without human intervention
- The claim URL appears in agent output — visit it to take ownership
.claude/CLAUDE.mdinstructs agents to surface the claim link to you- Check
.envor~/.ainative/config.jsonfor your project ID if you miss it
Source: README.md at commit 395f19a
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
