drift
Codebase intelligence for AI. Detects patterns & conventions + remembers decisions across sessions. MCP server for any IDE. Offline CLI.
claude mcp add --transport stdio dadbodgeoff-drift docker run -i dadbodgeoff/drift
How to use
Drift is a codebase intelligence MCP server designed to assist IDEs with AI-powered insights. It analyzes your code to detect patterns and conventions, helps you remember decisions across sessions, and provides offline CLI capabilities for rapid local exploration. As an MCP server, Drift exposes tooling that IDE integrations can consume to offer suggestions, enforcement of project conventions, and cross-session decision memory for your codebase. If you’re using the v2 Drift setup, you’ll typically rely on the unified CLI/agent that communicates with your editor to surface analyses, patterns, and recommendations as you work.
To use its tools, run Drift through the supported runtime (Docker in this setup). The server will expose endpoints or interfaces that IDEs can query for intelligence, and you can interact with it via the provided CLI or editor plugins. Expect features such as pattern detection across files, convention enforcement suggestions, offline CLI exploration of code decisions, and persistent memory of decisions across your development sessions.
How to install
Prerequisites:
- Docker (installed and running)
- Basic familiarity with running containerized services
Installation steps (Docker-based):
- Ensure Docker is installed and running on your machine.
- Pull and run the Drift MCP server image: docker run -i dadbodgeoff/drift
- If you need to customize environment variables (e.g., to point to a specific workspace or config), pass them via -e flags to docker run, for example: docker run -i -e DRIFT_WORKSPACE=/path/to/workspace -e DRIFT_CONFIG=/path/to/config dadbodgeoff/drift
- Connect your IDE to the running Drift MCP server using the standard MCP connection settings defined by Drift (usually via the IDE’s MCP integration panel).
Alternative (build from source):
- Follow Drift v2 monorepo documentation to build standalone binaries or setup local development, then run the server as per the produced artifact. Since Drift v2 contains both Rust and TypeScript components, you may build the Rust core and the TS CLI per the repository guidelines and then start the local server accordingly.
Additional notes
Tips and notes:
- This Drift MCP server is intended to work with modern IDEs via the MCP protocol. Ensure your IDE plugin is configured to connect to the server address where Docker exposes it (typically localhost with the container's mapped port).
- If you encounter connection issues, verify Docker is running, the container image tag is correct, and that any required environment variables (like workspace paths) are set.
- For performance, you can run Drift in a dedicated workspace directory and mount volumes to preserve state across restarts, if the image supports such configuration.
- Check Drift v2 documentation for specifics on capabilities such as pattern detection, cross-session memory, and offline CLI features; capabilities may vary by version and plugin integration.
- If you need to switch to a local development setup, consult the Drift v2 docs to build the Rust core and TypeScript CLI components and run the server in development mode.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
mcp-chain-of-draft
Chain of Draft Server is a powerful AI-driven tool that helps developers make better decisions through systematic, iterative refinement of thoughts and designs. It integrates seamlessly with popular AI agents and provides a structured approach to reasoning, API design, architecture decisions, code reviews, and implementation planning.
mcp-gearbox-cli
💫 MCP CLI to help you get started with MCP servers faster
opennextjs-cli
Interactive CLI/TUI for OpenNext.js + Cloudflare Workers. Automated setup, deployment, validation, and MCP server for AI-assisted development.
mcp-tidy
CLI tool to visualize and manage MCP server configurations in Claude Code. List servers, analyze usage statistics, and clean up unused servers
RoslynMcpServer
Model Context Protocol server for Roslyn-powered C# refactoring operations