Skip to main content
MCP server CX Codex

AgentDrive — Claude Code MCP server: features and setup

AgentDrive — an MCP server for Claude Code carries session context between coding agents and stores shared files. Retrieve project history or continue earlier work from another agent.

Apache-2.0 ★ 2 updated 2026-11-11

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env AGENTDRIVE_API_KEY=<AGENTDRIVE_API_KEY> --env AGENTDRIVE_AGENT_PLATFORM=<AGENTDRIVE_AGENT_PLATFORM> --transport stdio agentdrive -- npx -y @adrive/mcp-server
Open on GitHub

What AgentDrive does

AgentDrive keeps session details and files in a shared workspace, so another agent can find earlier material or pick up a task. drive_resume loads the goal, changed files, and recent messages from a previous session. drive_search searches stored material, while drive_sessions lists recent runs for the project.

The server can also read, write, and delete files, track file versions, and handle comments. A key for the AgentDrive API is needed and is passed through AGENTDRIVE_API_KEY. Connect to the hosted MCP endpoint or run the server locally with npx; local use depends on a Node.js environment for that command.

Four Linux sandbox tools are experimental. They require the Cloudflare Containers plan on the AgentDrive worker; otherwise, those tools return a message that the feature is not configured.

What it helps with

  • carry a session’s context to another agent
  • find earlier project materials
  • list recent project sessions
  • read or save a shared file

Example prompts for the agent

  • Continue the task from the latest session by another agent on this project.
  • Search AgentDrive for notes related to the current task.
  • Show recent project sessions and read the planning file.

How to install AgentDrive

1Platform CLI

claude mcp add --env AGENTDRIVE_API_KEY=<AGENTDRIVE_API_KEY> --env AGENTDRIVE_AGENT_PLATFORM=<AGENTDRIVE_AGENT_PLATFORM> --transport stdio agentdrive -- npx -y @adrive/mcp-server

Replace <…> with your own values

2Platform CLI: remote server

claude mcp add --transport http agentdrive https://mcp.agentdrive.sh/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about AgentDrive

How do I install AgentDrive in Claude Code?

For a local MCP connection, run claude mcp add agentdrive -e AGENTDRIVE_API_KEY=<AGENTDRIVE_API_KEY> -- npx -y @adrive/mcp-server. Replace the placeholder with your API key.

What does AgentDrive do?

It stores agent sessions and files in a shared workspace. Agents can search stored material, inspect project sessions, and hand previous work to another agent.

What does AgentDrive need to run?

It requires an AgentDrive API key. The local setup uses npx; a hosted MCP endpoint is another connection option.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open