Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Driftdetect MCP

MCP server by dadbodgeoff Verified · npm:driftdetect-mcp

Drift stops AI agents from writing code that breaks conventions a repo already follows. It runs locally and includes a read-only MCP server. It is in beta and currently covers Next.js API routes in TypeScript or JavaScript.

  • Score 86
  • 795 stars
  • 10 a week
  • Apache-2.0
  • Updated

Install Driftdetect MCP

Built from the published package, never by AI.

claude mcp add driftdetect-mcp -- npx -y driftdetect-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Driftdetect MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the driftdetect-mcp block.

About

Drift stops an AI agent from writing code that violates conventions a repository already follows. It runs entirely on the user's machine and is in beta. Its one enforced convention today is that Next.js API routes must not import data-access clients directly. Drift infers the convention from the existing code. When violations are a minority, new ones block. When they are a majority, Drift warns until a person decides.

The MCP server is read-only. It exposes tools for repo maps, findings, scan status, policy checks and preflight packets. Nothing is published to npm yet, so installation means building from source with Git, pnpm and a Rust toolchain. It suits developers working on Next.js API routes who want agents to follow existing patterns.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_repo_contractReturns the repo contract with a stable contract_fingerprint for compatibility checks.
  • get_scan_statusReturns scan status with a stable scan_fingerprint for the indexed graph.
  • get_task_preflightReturns a preflight packet for a task, optionally pinned to a repo-relative path.
  • get_allowed_contextReturns the policy decision for a path without reading or emitting source snippets.
  • get_findingsLists findings with path, convention_id, limit and offset filters for bounded review.
  • get_repo_mapReturns the repo map with per-file impact annotations and an impact_summary.
  • get_audit_statusChecks the local audit hash chain and reports summary counts and next commands.

What you need

  • Git
  • pnpm
  • Rust toolchain (rustup) for the Rust scan engine

Try asking

  • Show me the repo map for the users API routes
  • Run a preflight check before I add a user search endpoint
  • List open findings for apps/web/app/api/users/route.ts

Good to know

  • Beta. Nothing is published to npm, so it must be built from source.
  • Enforces one convention family: API routes must not import data-access clients directly.
  • Supports only TypeScript and JavaScript with Next.js API routes.
  • Security heuristics are experimental and are not proofs.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Driftdetect MCP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Driftdetect MCP: common questions

Is Drift available on npm?

Not yet. The source says nothing is published to npm, and the driftdetect package there is an unrelated v1 from January.

Does Drift change my source code?

No. The source says Drift does not modify your source, and the MCP server is read-only.

Which languages and frameworks does Drift support?

TypeScript and JavaScript, with Next.js API routes in both the App Router and Pages styles.

How do I install Driftdetect MCP?

In Claude Code run claude mcp add driftdetect-mcp -- npx -y driftdetect-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Driftdetect MCP the official server?

Driftdetect MCP is published by npm:driftdetect-mcp from its verified domain in the official MCP Registry.

Is Driftdetect MCP free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Driftdetect MCP safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Driftdetect MCP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Driftdetect MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Driftdetect MCP Install

Add to stack

Loading.