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-mcpExamples
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