# Drift MCP server

> Detects repository conventions and blocks AI-written code that violates the declared layering contract.

- Repository: https://github.com/dadbodgeoff/drift
- Page: https://hostedmcp.org/servers/dadbodgeoff/drift
- Transport: —
- Stars: 795
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `DRIFT_DB` | no | no |  |

## FAQ

### What languages and frameworks does Drift support?

Drift enforces one convention family for TypeScript and JavaScript projects using Next.js API routes. Other languages and frameworks are not supported.

### Does Drift send my code to a server?

No. Drift runs entirely on your local machine and does not sync anything to a server.

### What convention does Drift actually enforce?

It checks that Next.js API routes do not import data-access clients directly. The data layer is recognized when the import specifier contains prisma, database, db or data-access.

### Why do findings appear but the check still exits 0?

The convention is in warn mode on purpose. If a majority of routes already violate it, Drift treats it as a refactor goal and warns instead of blocking.

### How do I install Drift?

You build it from source using a Rust toolchain and pnpm, then alias the built CLI entry point. Nothing is published to npm yet.
