
AgentDrive
AgentDrive gives agents persistent memory and artifact storage that survives across tools and sessions. It exposes 20 MCP tools split across files (write, read, list, versions), semantic search and recall, provenance logging, and workspace collaboration. Write a markdown spec in Claude Code, then have Cursor's agent pick it up with drive_context or drive_search in the next session. Run logs track which agent on which platform touched what, so handoffs between Claude Code, Codex, Cursor, and LangGraph maintain attribution. Free tier includes 1 GB storage and 10k embeddings. Available as a hosted streamable HTTP endpoint or local stdio via npx.
- GitHub stars
- 2
- tools
- 22
- auth
- Secret needed
- transport
- STDIO, HTTP
- env vars
- 2
- last updated
- Nov 10, 2026
Install
From registry metadata$ npx add-mcp https://mcp.agentdrive.sh/mcp --name agentdrive --header 'Authorization: Bearer ${API_TOKEN}'Run in your terminal. add-mcp asks which agents to add it to, then asks for each value it needs. Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http agentdrive https://mcp.agentdrive.sh/mcp --header 'Authorization: YOUR_AUTHORIZATION'Run in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 22 toolsVerified live against the running server on Nov 6, 2026.
drive_writeWrite a markdown file to a workspace. Creates or updates the file with automatic versioning.4 params
Write a markdown file to a workspace. Creates or updates the file with automatic versioning.
content*stringmessagestringpath*stringworkspace_id*stringdrive_readRead a file's content from a workspace.2 params
Read a file's content from a workspace.
file_id*stringworkspace_id*stringdrive_listList files in a workspace, optionally filtered by path prefix.2 params
List files in a workspace, optionally filtered by path prefix.
prefixstringworkspace_id*stringdrive_shareGenerate a share link for a workspace or specific file. Optionally email-gate the link so only a specific person can access it. Humans open this link to view, comment, or edit files.6 params
Generate a share link for a workspace or specific file. Optionally email-gate the link so only a specific person can access it. Humans open this link to view, comment, or edit files.
emailstringexpires_innumberfile_idstringmax_usesnumberpermission*stringview · comment · editworkspace_id*stringdrive_commentAdd a comment to a file.5 params
Add a comment to a file.
body*stringfile_id*stringline_endnumberline_startnumberworkspace_id*stringdrive_feedbackRead human comments on a file. Use this to check if humans have left feedback.2 params
Read human comments on a file. Use this to check if humans have left feedback.
file_id*stringworkspace_id*stringdrive_activityGet recent activity in a workspace (file writes, comments, shares).1 params
Get recent activity in a workspace (file writes, comments, shares).
workspace_id*stringdrive_inviteInvite a human to your organization by email. The invite stays pending until they sign in and accept it.2 params
Invite a human to your organization by email. The invite stays pending until they sign in and accept it.
email*stringrolestringowner · admin · memberdefault: memberdrive_rolesManage per-workspace role delegation. Assign, list, or remove access for specific emails (view/comment/edit).4 params
Manage per-workspace role delegation. Assign, list, or remove access for specific emails (view/comment/edit).
action*stringassign · list · removeemailstringpermissionstringview · comment · editworkspace_id*stringdrive_orgView your organization details: agents, members, plan, and usage.
View your organization details: agents, members, plan, and usage.
No parameters. Call it with no arguments.
drive_deleteDelete a file from a workspace.2 params
Delete a file from a workspace.
file_id*stringworkspace_id*stringdrive_versionsView version history for a file in a workspace.2 params
View version history for a file in a workspace.
file_id*stringworkspace_id*stringdrive_searchSemantic search across your org's artifacts in AgentDrive. Returns the top-N most relevant files. Use this BEFORE writing similar artifacts to avoid duplication and surface prior context.4 params
Semantic search across your org's artifacts in AgentDrive. Returns the top-N most relevant files. Use this BEFORE writing similar artifacts to avoid duplication and surface prior context.
filterobjectquery*stringtop_kintegerworkspace_idstringdrive_recallRecall persistent facts and preferences your agents have written. In v1 this returns semantic search results across artifacts; v1.5 will narrow to auto-extracted facts (preferences, decisions, key entities).2 params
Recall persistent facts and preferences your agents have written. In v1 this returns semantic search results across artifacts; v1.5 will narrow to auto-extracted facts (preferences, decisions, key entities).
query*stringtop_kintegerdrive_log_runLog an agent run to AgentDrive's provenance store. Captures task, status, referenced/produced artifacts, and cross-platform identity (which agent on which tool). Used for retrospective context retrieval and team-wide audit.7 params
Log an agent run to AgentDrive's provenance store. Captures task, status, referenced/produced artifacts, and cross-platform identity (which agent on which tool). Used for retrospective context retrieval and team-wide audit.
artifacts_producedarrayartifacts_referencedarrayduration_msintegermetadataobjectrun_idstringstatusstringsuccess · failure · partial · in_progresstask*stringdrive_contextAuto-pull the most relevant artifacts from prior agent sessions for the task you are about to do. Combines semantic relevance with recency. Call this at the START of any non-trivial task to ground the agent in prior context — replaces manual copy-paste of artifacts between ses...3 params
Auto-pull the most relevant artifacts from prior agent sessions for the task you are about to do. Combines semantic relevance with recency. Call this at the START of any non-trivial task to ground the agent in prior context — replaces manual copy-paste of artifacts between ses...
limitintegertask*stringworkspace_idstringdrive_sessionsList recent agent sessions for this project across harnesses (Claude Code, Codex, OpenCode, Gemini CLI, Cursor, Antigravity), newest first. Use to find prior work to continue.3 params
List recent agent sessions for this project across harnesses (Claude Code, Codex, OpenCode, Gemini CLI, Cursor, Antigravity), newest first. Use to find prior work to continue.
limitintegerplatformstringprojectstringdrive_resumeLoad a compact handoff brief (goal, files touched, recent turns) from a prior session, by default the latest one from a different harness, so you can continue that work.3 params
Load a compact handoff brief (goal, files touched, recent turns) from a prior session, by default the latest one from a different harness, so you can continue that work.
max_charsintegerplatformstringsession_idstringdrive_sandbox_clone[EXPERIMENTAL] Clone a git repo into a per-workspace Linux sandbox. Requires Cloudflare Containers on the AgentDrive worker; gracefully degrades to a 503 with "sandbox not configured" otherwise.4 params
[EXPERIMENTAL] Clone a git repo into a per-workspace Linux sandbox. Requires Cloudflare Containers on the AgentDrive worker; gracefully degrades to a 503 with "sandbox not configured" otherwise.
branchstringdepthintegerurl*stringworkspace_id*stringdrive_sandbox_exec[EXPERIMENTAL] Run a shell command inside the per-workspace Linux sandbox. Captures stdout/stderr (64 KB cap), exit code, duration. Requires Cloudflare Containers; degrades to 503 otherwise.4 params
[EXPERIMENTAL] Run a shell command inside the per-workspace Linux sandbox. Captures stdout/stderr (64 KB cap), exit code, duration. Requires Cloudflare Containers; degrades to 503 otherwise.
cmd*stringcwdstringtimeout_msintegerworkspace_id*stringdrive_sandbox_read[EXPERIMENTAL] Read a file from the per-workspace sandbox filesystem (build artifacts, test output, logs). Requires Cloudflare Containers; degrades to 503 otherwise.2 params
[EXPERIMENTAL] Read a file from the per-workspace sandbox filesystem (build artifacts, test output, logs). Requires Cloudflare Containers; degrades to 503 otherwise.
path*stringworkspace_id*stringdrive_sandbox_commit[EXPERIMENTAL] Stage + commit the current sandbox worktree. Surfaces as an AgentDrive artifact at commits/<sha>.json. Requires Cloudflare Containers; degrades to 503 otherwise.4 params
[EXPERIMENTAL] Stage + commit the current sandbox worktree. Surfaces as an AgentDrive artifact at commits/<sha>.json. Requires Cloudflare Containers; degrades to 503 otherwise.
author_emailstringauthor_namestringmessage*stringworkspace_id*stringSponsors
Configuration
AGENTDRIVE_API_KEYsecretAgentDrive API key. Optional after `npx @adrive/cli auth login`.
AGENTDRIVE_AGENT_PLATFORMHarness id recorded as provenance, e.g. claude-code or codex.
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.
- Website: https://agentdrive.sh
- Docs: https://agentdrive.sh/docs
- npm:
@adrive/mcp-server - Hosted endpoint:
https://mcp.agentdrive.sh/mcp
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
Details
- Repository
- github.com/agentdrive-sh/agentdrive-mcp
- Website
- agentdrive.sh
- Category
- AI & LLM Tools
- Package
@adrive/mcp-server- Transport
- STDIO, HTTP
- Auth
- Required
- Registry
- MCP registry, active
- Tools verified
- Nov 6, 2026