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.
Install Driftdetect MCP
Built from the published package, never by AI.
claude mcp add driftdetect-mcp -- npx -y driftdetect-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"driftdetect-mcp": {
"args": [
"-y",
"driftdetect-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"driftdetect-mcp": {
"args": [
"-y",
"driftdetect-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"driftdetect-mcp": {
"args": [
"-y",
"driftdetect-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add driftdetect-mcp -- npx -y driftdetect-mcp{
"mcpServers": {
"driftdetect-mcp": {
"args": [
"-y",
"driftdetect-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add driftdetect-mcp npx -y driftdetect-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
