VENTURESAurabase acquires & invests in your apps, startups, mobile apps, SaaS and software.Read more →

Model Context Protocol · Agent-Native BaaS

The PostgreSQL MCP server built for European backends.

Give Cursor, Claude Code, Antigravity, and Windsurf direct, audited access to your dedicated PostgreSQL 18 schema, RLS policies, Auth, S3 Storage, Edge Functions, and RAG pipelines.

86
Total MCP tools
82
Project-key tools
37
Read-only mode

mcp.json · Cursor / Antigravity / Windsurf

{
  "mcpServers": {
    "aurabase": {
      "command": "npx",
      "args": [
        "-y", "-p", "@aurabase/mcp-server", "aurabase-mcp",
        "--url", "https://<slug>.aurabase.cloud",
        "--project-id", "<project-id>",
        "--service-role-key", "aura_sk_..."
      ]
    }
  }
}
86
Official tools
Postgres, Auth, Storage, Functions, AI, Logs
37 RO
Safe read-only flag
Zero writes on production databases
Local stdio
Zero-hop transport
Direct TLS 1.3 to your EU cluster
100% EU
Sovereign backend
Scaleway Paris & Hetzner Germany
#

Quickstart

Start the server in one command

Run the published npm package directly over stdio. Add --read-only when connecting an agent to a production project so only the 37 inspection tools are exposed.

npx -y -p @aurabase/mcp-server aurabase-mcp --url https://<slug>.aurabase.cloud --project-id <project-id> --service-role-key aura_sk_...
#

Tool surface

What your AI coding agent can automate

01

PostgreSQL 18 & Migrations

Schema inspection, SQL execution, RLS policies, indexes, extensions, pgvector search, database branching

02

Auth & Security Audits

Users, roles, OAuth 2.1 providers, MFA policies, Security Advisor checks, audit log queries

03

Storage S3 & Edge Functions

Bucket creation, signed URLs, object listing, Deno/WASM Edge Function deployment and env secrets

04

AI Gateway, RAG & Observability

Document indexing, semantic vector search, AST-verified NL2SQL, ClickHouse slow-query and log analysis

#

Ecosystem

Step-by-step client & AI builder guides

#

FAQ

PostgreSQL MCP server questions

How many tools does the official Aurabase PostgreSQL MCP server expose?+
The @aurabase/mcp-server package ships 86 tools in total: 82 tools when authenticated with a project service-role key, plus 4 control-plane tools, and a safe 37-tool read-only mode (--read-only) for production inspection.
How does Aurabase MCP protect production PostgreSQL databases from unsafe agent queries?+
Aurabase supports a strict --read-only flag exposing only 37 non-destructive inspection tools, isolated temporary database branches for agent experimentation, Row-Level Security enforcement, and full ClickHouse audit trails in the EU.
Which AI coding assistants work with @aurabase/mcp-server?+
Any Model Context Protocol client supporting stdio transport works out of the box: Cursor, Claude Code, Claude Desktop, Google Antigravity, Windsurf, VS Code Copilot, Zed, and Codex.
Does using the Aurabase MCP server send database records to US cloud servers?+
The MCP server runs locally over stdio on your developer machine and communicates directly with your European Aurabase project cluster (Paris or Germany) over TLS 1.3.
Can the MCP server generate and run SQL migrations automatically with rollback capability?+
Yes. Agents can inspect your schema diff, generate standard idempotent SQL migrations, test them on a temporary branch, execute them against your cluster, and record them in your project migration history.
How does the MCP server handle token context limits when querying large schemas or tables?+
Aurabase MCP optimizes prompts with paginated table inspection, targeted column-level metadata extraction, and sample row fetching to ensure context windows in Claude 3.7 or GPT-4o never overflow on large enterprise schemas.
Can I configure granular role-based permissions or restrict MCP access to specific tables?+
Yes. In addition to --read-only mode, you can connect using scoped database roles, enforce PostgreSQL Row-Level Security (RLS) policies, or restrict service keys so assistants cannot access sensitive tables like billing or auth tokens.
Does the Aurabase MCP server support multi-project management and local development switching?+
Yes. You can configure multiple named instances in your mcp.json (e.g., aurabase-dev and aurabase-staging) or switch project IDs dynamically via environment variables without restarting your editor.

BUILT FOR AI CODING AGENTS

Connect your agent in 30 seconds.

Free tier includes dedicated PostgreSQL 18 and full @aurabase/mcp-server access.

No credit card required · 500 MB free · 50,000 MAU