Back to Browse

Agentdrive MCP Server

Developer ToolsModerate5.1MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Sync coding-agent sessions and resume them in any other agent: Claude Code, Codex, Cursor, more.

About

Sync coding-agent sessions and resume them in any other agent: Claude Code, Codex, Cursor, more.

Remote endpoints: streamable-http: https://mcp.agentdrive.sh/mcp

Security Report

5.1
Moderate5.1Moderate Risk

AgentDrive is a cross-agent workspace server whose network calls, bearer-token auth, and local transcript reading match its stated purpose. The main concerns are the remote sandbox shell-exec tool, which is an intentional capability but a broad one, and local reading of other harnesses' transcript stores, which may contain sensitive content. Several modules (connect, redactor, tool handlers, transcript parsers) were not provided, so their behavior could not be verified. Supply chain analysis found 2 known vulnerabilities in dependencies (1 critical, 0 high severity). Package verification found 1 issue.

6 files analyzed · 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

AgentDrive API key. Optional after `npx @adrive/cli auth login`.Required

Environment variable: AGENTDRIVE_API_KEY

Harness id recorded as provenance, e.g. claude-code or codex.Optional

Environment variable: AGENTDRIVE_AGENT_PLATFORM

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

AgentDrive MCP Server

The official Model Context Protocol server for AgentDrive: shared workspace for coding agents. Capture sessions from Claude Code, Codex, OpenCode, Cursor, Gemini CLI and Antigravity, resume them in any of the others, and search everything they wrote. Provenance on every artifact; portable storage on R2, S3 or your own bucket.

Hit a usage limit in one agent? Call drive_resume in another and it loads the handoff: the goal, the files touched and the latest turns. 22 MCP tools (18 stable + 4 experimental sandbox), over stdio or hosted. Free plan, no credit card.

Agent skills

Install the workflow you need from this official repository.

pnpm dlx skills add agentdrive-sh/agentdrive-mcp --skill agentdrive-session-handoff
pnpm dlx skills add agentdrive-sh/agentdrive-mcp --skill agentdrive-artifact-search

Use the first skill to recover a coding session and verify its handoff against the checkout. Use the second to find a decision in workspace files and trace its source.

Claude Code plugin

This repo is also the Claude Code plugin marketplace. The plugin captures every session in the background and resumes it from Codex, OpenCode, Gemini CLI, Antigravity, or Cursor:

/plugin install agentdrive --marketplace agentdrive-sh/agentdrive-mcp

On Claude Code older than 2.1.275, run /plugin marketplace add agentdrive-sh/agentdrive-mcp then /plugin install agentdrive@agentdrive. Sign in with /agentdrive:login.

Get an API key (free)

Create one at https://app.agentdrive.sh — no credit card. The free tier (1 workspace, 1 GB storage, 10k embeddings) is free indefinitely.

Two ways to connect

1. Hosted (no install) — Streamable HTTP

Point any MCP client that supports remote servers at the hosted endpoint and pass your key as a bearer token:

URL:    https://mcp.agentdrive.sh/mcp
Header: Authorization: Bearer agentdrive_live_xxx

Or install in one click via Smithery.

2. Local (stdio) — via npx

{
  "mcpServers": {
    "agentdrive": {
      "command": "npx",
      "args": ["-y", "@adrive/mcp-server"],
      "env": {
        "AGENTDRIVE_API_KEY": "agentdrive_live_xxx"
      }
    }
  }
}

Add that block to your host's MCP config:

  • Claude Desktop: claude_desktop_config.json
  • Cursor: ~/.cursor/mcp.json
  • Claude Code: install the plugin (see above), which also captures sessions
  • Codex / Cline / Continue / Zed: the standard mcpServers block above

The fastest path is the AgentDrive installer, which auto-wires every detected host:

curl -fsSL agentdrive.sh/install | sh

Configuration

Env varRequiredDefaultDescription
AGENTDRIVE_API_KEYnokey saved by adrive auth loginYour AgentDrive API key (agentdrive_live_...). Falls back to ~/.config/agentdrive/config.json, so client configs never need the key inline. With no key at all the server still starts and offers one tool, drive_connect, which signs the user in through the browser and connects their other agent tools; the full toolset then appears in the same session.
AGENTDRIVE_API_URLnohttps://app.agentdrive.shOverride the API endpoint (self-hosted worker).
AGENTDRIVE_AGENT_PLATFORMnounknownWhich agent runtime is calling — drives cross-agent provenance. One of claude-code, codex, opencode, gemini-cli, cursor, antigravity, langgraph, crewai, autogen, hermes, openclaw, unknown.
AGENTDRIVE_AGENT_ROLEno—Free-text role label (e.g. planner, reviewer) to distinguish multiple agents on the same platform.

Tools

22 tools across files, memory, sessions, collaboration, org, and provenance. The stdio server derives the current project from its working directory (git remote, else repo path), which scopes drive_sessions and drive_resume.

ToolCategoryDescription
drive_contextmemoryAuto-pull the most relevant prior artifacts for the task you're starting.
drive_searchmemorySemantic search across your org's artifacts.
drive_recallmemoryRecall persistent facts/preferences agents have written.
drive_sessionssessionsList recent agent sessions for this project across Claude Code, Codex, OpenCode, Gemini CLI, Antigravity, and Cursor.
drive_resumesessionsLoad a compact handoff (goal, files touched, recent turns) from a prior session, by default the latest from a different harness.
drive_writefilesWrite a markdown file (auto-versioned).
drive_readfilesRead a file's content.
drive_listfilesList files in a workspace.
drive_deletefilesDelete a file.
drive_versionsfilesView a file's version history.
drive_sharecollaborationGenerate a (optionally email-gated) share link.
drive_commentcollaborationComment on a file.
drive_feedbackcollaborationRead human comments on a file.
drive_activityprovenanceRecent workspace activity (writes, comments, shares).
drive_log_runprovenanceLog an agent run (task, status, artifacts, identity).
drive_inviteorgInvite a human to your org by email.
drive_rolesorgAssign/list/remove per-workspace access by email.
drive_orgorgView org details: agents, members, plan, usage.
drive_sandbox_clonesandbox (experimental)Clone a git repo into a per-workspace Linux sandbox.
drive_sandbox_execsandbox (experimental)Run a shell command in the sandbox.
drive_sandbox_readsandbox (experimental)Read a file from the sandbox filesystem.
drive_sandbox_commitsandbox (experimental)Stage + commit the sandbox worktree.

The drive_sandbox_* tools require the Cloudflare Containers plan on the AgentDrive worker and degrade cleanly to a "not configured" message otherwise.

Why AgentDrive

Agents lose context at every session boundary and every tool switch. AgentDrive is the shared substrate: one workspace, every agent, full provenance. Write once with Claude Code; recall it from Cursor; hand off to Codex — each call is attributed to the right principal and platform.

Develop

npm install
npm run build      # tsc -> dist/
npm test           # vitest

License

Apache-2.0. See LICENSE.

Reviews

No reviews yet

Be the first to review this server!