Repository navigation
drizzle-mcp: Drizzle Studio for coding agents #6637
Fredobumma
started this conversation in
Show and tell
Replies: 1 comment
|
We provide an official MCP server here => https://orm.drizzle.team/docs/drizzle-kit-mcp |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built an MCP server that lets Claude Code, Cursor and other agents see your database through your Drizzle schema, the way Drizzle Studio shows it (from the request in #4656).
Run it from the folder with
drizzle.config.ts. It loads your config and schema the way drizzle-kit does, and connects with the driver you already have.schema: tables with TypeScript and SQL names, relations, enums and defaultsbrowseandcount: rows with JSON filters, sorting and related rows through yourrelations()queryandexplain: one read-only SQL statement, and its plandriftandmigrations: the schema against the database, and applied or pending migrationsIt's read-only by default (writes need
--allow-writes), runs one statement at a time, caps results and hides columns that look like secrets. It supports Postgres (pg, postgres.js, PGlite) and SQLite (better-sqlite3, libsql) with drizzle-orm 0.45.It complements drizzle-kit's own MCP in the 1.0 release candidates, which runs drizzle-kit commands like generate, push and pull. This one is the Studio side: reading the data.
GitHub: https://github.com/fredobumma/drizzle-mcp · npm:
drizzle-mcp. Feedback and issues are welcome.All reactions