Drizzle ORM MCP Server

Betadatabase
200 starsTypeScriptdrizzle-team
GitHub
About

Overview

The Drizzle MCP Server integrates Drizzle ORM with the Model Context Protocol, allowing AI agents to understand your database schema defined in Drizzle and generate type-safe queries. It reads your Drizzle schema files and provides tools for querying, inserting, and updating data while respecting your defined relations and constraints.
Capabilities

Tools & Capabilities

query

Execute a query using Drizzle's query builder syntax

get_schema

Get the full Drizzle schema definition

generate_migration

Generate a database migration from schema changes

run_migration

Apply pending migrations to the database

Setup

Installation

bash
Install
npx -y drizzle-mcp
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "drizzle": {
      "command": "npx",
      "args": ["-y", "drizzle-mcp"],
      "env": {
        "DATABASE_URL": "postgresql://localhost/mydb",
        "SCHEMA_PATH": "./src/db/schema.ts"
      }
    }
  }
}

Quick Info

Authordrizzle-team
LanguageTypeScript
StatusBeta
Stars 200
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us