Drizzle Sentinel MCP
Provides safety inspection, migration linting, and schema drift detection for Drizzle ORM schemas and migrations, plus read-only query plan analysis.
Supports comparing declared TypeScript schemas against live MySQL database tables and generating non-breaking remediation SQL for zero-downtime migrations.
Supports comparing declared TypeScript schemas against live PostgreSQL database tables and generating non-breaking remediation SQL for zero-downtime migrations.
Supports comparing declared TypeScript schemas against live SQLite database tables and generating non-breaking remediation SQL for zero-downtime migrations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Drizzle Sentinel MCPlint my latest migration for unsafe changes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π‘οΈ Drizzle Sentinel MCP
Production-Grade TypeScript MCP Server for Drizzle ORM Schema Inspection, Migration Safety Linting, and Schema Drift Detection.
π Overview & Purpose
Autonomous coding agents (Claude Code, Cursor, Codex) frequently hallucinate or generate unsafe database migrations β such as adding NOT NULL columns without default values, dropping active columns, or forgetting indexes on foreign keys.
Drizzle Sentinel MCP is built for modern TypeScript engineering stacks (Turborepo + Drizzle ORM + Express / Next.js). It injects closed-loop database governance directly into agentic development workflows via the official Model Context Protocol.
Related MCP server: schema-lint-mcp
ποΈ System Architecture
graph TD
Agent[Agentic IDE / Claude Code / Cursor] -->|MCP Protocol / stdio| Sentinel[π‘οΈ Drizzle Sentinel MCP Server]
subgraph Tools [MCP Governance Toolsuite]
Sentinel --> T1[π inspect_drizzle_schema]
Sentinel --> T2[π¨ lint_drizzle_migration]
Sentinel --> T3[π©Ί detect_schema_drift]
Sentinel --> T4[β‘ explain_query_plan]
end
T1 --> Parser[Drizzle Schema AST Parser]
T2 --> Engine[Rules Engine: NO_DROP, DEFAULT_ON_NOT_NULL, UNINDEXED_FK]
T3 --> Drift[Drift Doctor & Safe Patch Generator]
T4 --> Sandbox[Read-Only Query Sandbox & Smell Detector]
Parser --> AppCode[TypeScript Drizzle Schemas]
Engine --> Migrations[Drizzle Migration .sql Files]
Drift --> Database[(PostgreSQL / SQLite / MySQL)]π οΈ MCP Tools Provided
inspect_drizzle_schema: Deeply analyzes TypeScript Drizzle schemas, mapping tables, relations, and identifying foreign keys lacking index coverage.lint_drizzle_migration: Evaluates SQL migration statements against production safety rules:NO_RAW_DROP_TABLE: Blocks destructive table drops.NO_RAW_DROP_COLUMN: Enforces expand-contract migrations.REQUIRE_DEFAULT_ON_NOT_NULL: Prevents migration failures & table locks on existing tables.NO_UNINDEXED_FOREIGN_KEYS: Warns on missing FK index coverage.
detect_schema_drift: Compares declared TypeScript schema with live database tables, pinpointing missing columns/tables and emitting non-breaking zero-downtime remediation SQL.explain_query_plan: Enforces a strict read-only execution sandbox and flags performance smells (MISSING_LIMIT,WILDCARD_PROJECTION,SORT_MEMORY_RISK).
π Repository Structure
drizzle-sentinel-mcp/
βββ packages/
β βββ mcp-server/ # TypeScript MCP server implementation
β β βββ src/tools/ # Tool handlers (inspect, lint, drift, sandbox)
β β βββ src/services/ # AST & schema parsers
β β βββ src/index.ts # Stdio server entrypoint
β βββ rules-engine/ # AST & regex defensive migration rules
βββ apps/
β βββ demo-service/ # Express + Drizzle ORM reference application
βββ tests/ # Vitest comprehensive unit & integration test suite
βββ turbo.json # Turborepo task pipeline
βββ CLAUDE.md # Agentic guidelines & operating rules
βββ README.mdπ Quickstart & Setup
1. Install Dependencies & Build
npm install
npm run build2. Run Test Suite
npm test3. Register with Claude Code / Cursor MCP Config
Add the server to your claude_desktop_config.json or .cursor/mcp.json:
{
"mcpServers": {
"drizzle-sentinel": {
"command": "node",
"args": ["<path-to-repo>/packages/mcp-server/dist/index.js"]
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceGive AI agents structured database intelligence. Deterministic SQL, NULL trap detection, EXPLAIN pre-flight. MIT licensed.1MIT
- FlicenseBqualityDmaintenanceValidates schema files against customizable lint rules using Claude or Gemini AI, supporting JSON and SQL schemas with rules for naming, structure, and migration safety.1
- AlicenseAqualityDmaintenanceAnalyzes database migrations for risks like lock contention and data loss before they run. Supports Flyway and Liquibase formats, providing risk scores and rollback generation.640MIT
- FlicenseBqualityFmaintenanceProvides database schema management, query execution, and schema introspection through Drizzle ORM and drizzle-kit CLI tools, supporting SQLite and PostgreSQL.515
Related MCP Connectors
Query PostgreSQL databases in plain English β LLM-generated, safety-validated SQL.
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moniβ¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akmalkhaniub/drizzle-sentinel-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server