Product Introduction
Definition: The Scribase MCP Server is a remote Model Context Protocol (MCP) server that exposes 98 structured tools over a fully hosted PostgreSQL backend, integrating database, authentication, file storage, real-time data synchronization, and serverless edge functions directly into AI coding agents. Categorized as a secure AI database infrastructure and agent backend, it functions via standard transports (stdio or streamable HTTP at /mcp) without requiring local database instances, Docker setups, or complex container runtimes on the developer's machine.
Core Value Proposition: It exists to solve the fundamental risk of AI coding agents accidentally executing catastrophic database mutations, schema corruptions, or unintended data deletions in production environments. By providing a secure, access-controlled PostgreSQL backend—integrated with granular read-write separation, explicit human confirmation gates for destructive actions, and rigorous row-level security (RLS) testing harnesses—the Scribase MCP Server allows developers to safely delegate database operations, migrations, and backend provisioning to AI agents across supported editors including Claude Code, Cursor, Windsurf, Zed, VS Code, and Codex.
Main Features
Agent-Safe Destructive Action Gates: Every control-plane operation and destructive SQL statement is categorized with explicit safety flags. Tools marked as requiring confirmation reject unverified executions by returning explicit refusal errors unless an explicit confirmation parameter (confirm: true) is supplied, ensuring human-in-the-loop validation for high-risk operations like dropping tables, merging branches, or deleting environments.
Aegis Mutation RLS Isolation Testing: Schema changes can be thoroughly vetted before deployment via the policy_test and policy_simulate tools. The system applies migrations to a temporary scratch branch, provisions mock tenant environments to prove isolation properties, and intentionally breaks security boundaries (such as stripping FORCE RLS or softening policy rules) to mathematically verify that the RLS isolation matrix functions correctly before permitting production schema applications.
Preview Branches with Sanitized Copy-on-Write Data: Developers can leverage branches_create to fork production databases into isolated preview environments featuring Time-To-Live (TTL) auto-sweeps and sanitized data masking. AI agents can execute, test, and validate migration scripts against these sandbox copies before executing foreign-key-safe merges backed by automated pre-merge database backups.
Comprehensive Multi-Tool Ecosystem (98 Tools): The server organizes 98 granular tools into logical job categories spanning Database management (SQL execution, table inspection, TypeScript type generation via types_generate), Auth configuration, Storage bucket control, Edge Functions deployment, Cron-based Schedules (pg_cron), App capabilities (push notifications, OTA releases, short links, feature flags, AI gateways), Logs and health monitoring, and Data migration utilities (Supabase and plain PostgreSQL importers).
Problems Solved
Pain Point: Autonomous AI coding agents frequently hallucinate destructive SQL commands, bypass security boundaries, or execute unauthorized schema modifications directly against production databases, resulting in data loss, broken multi-tenant isolation, and compromised application states.
Target Audience: Full-stack software engineers, database administrators, DevOps professionals, and solo founders utilizing AI-assisted coding environments like Claude Code, Cursor, and Windsurf to build modern web and mobile applications on PostgreSQL backends.
Use Cases: Essential for deploying zero-risk AI database migrations, provisioning isolated feature branches for pull requests with automatically generated environment variables, automating edge function deployments alongside real-time database schemas, and safely testing row-level security policies without exposing production tenant data to autonomous software agents.
Unique Advantages
- Strengths & Limitations (Pros & Cons):
- Pros: Zero local setup required as the server runs remotely; robust safety architecture combining RLS isolation testing with explicit human confirmation gates; extensive toolset covering the entire backend lifecycle (Auth, Storage, Edge Functions, Schedules); native integration with major AI editors through standardized MCP protocols and CLI commands.
- Cons: Tied to the hosted Scribase backend ecosystem rather than arbitrary local databases; requires a subscription after the 14-day free trial period ($5 per project); reliance on network connectivity to remote API control planes for executing database tools.
- Key Alternatives & Differentiation: Unlike running local SQLite databases or standard Supabase/Neon PostgreSQL instances connected to AI agents via raw connection strings—which gives agents unrestricted, catastrophic write access—Scribase MCP Server interposes a secure proxy layer with mandatory RLS validation and confirmation gates. While traditional ORMs or database management extensions offer manual safety prompts, Scribase is purpose-built for AI agents, integrating native MCP transport streaming and automated schema isolation testing that generic database connectors entirely lack.
Frequently Asked Questions (FAQ)
What is the Scribase MCP Server and which AI editors does it support? The Scribase MCP Server is a remote Model Context Protocol server providing 98 database and backend tools. It natively supports Claude Code, Cursor, Windsurf, Zed, VS Code, and Codex by utilizing standard HTTP or stdio transports with secure browser-based OAuth authentication or personal access tokens.
How does Scribase prevent AI agents from destroying production data? It implements explicit confirmation gates where destructive tools (such as sql_execute, branches_merge, and schema updates) refuse execution unless a human explicitly approves the action. Furthermore, schema changes can be gated behind the Aegis mutation harness, which tests row-level security isolation on scratch branches before any code hits production.
Do I need to install or run anything locally to use the MCP server? No, the server is hosted remotely at https://api.scribase.com/mcp, meaning there are no local databases, Docker containers, or background services to maintain. Editors connect directly via configuration files or single-line CLI commands like
claude mcp add.How are database preview branches handled during development? AI agents can create isolated preview branches that fork production data with built-in sanitization and TTL auto-expiration. Changes are tested, validated via RLS isolation proofs, and safely merged back into production using foreign-key-safe merge routines preceded by automated backups.
What is the pricing model for Scribase projects? Scribase offers a 14-day free trial with no credit card required upfront. Following the trial period, hosting and backend management start from $5 per project, scaling based on infrastructure usage and organization requirements.
