AgentDrive MCP Server
AgentDrive MCP Server
The official Model Context Protocol server for AgentDrive — a cross-agent artifact workspace with provenance and portable storage across Claude Code, Codex, Cursor, LangGraph, and any MCP-aware host.
Give your agents a shared, persistent workspace: files with versioning, semantic recall over everything prior agents produced, run logging, and cross-agent attribution — so the next session (on any tool) picks up where the last one left off.
Website: https://agentdrive.sh
npm:
@adrive/mcp-serverHosted endpoint:
https://mcp.agentdrive.sh/mcp
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_xxxOr 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.jsonCursor:
~/.cursor/mcp.jsonClaude Code:
claude mcp add agentdrive -- npx -y @adrive/mcp-server(setAGENTDRIVE_API_KEYin env)Codex / Cline / Continue / Zed: the standard
mcpServersblock above
The fastest path is the AgentDrive installer, which auto-wires every detected host:
curl -fsSL agentdrive.sh/install | shConfiguration
Env var | Required | Default | Description |
| yes | — | Your AgentDrive API key ( |
| no |
| Override the API endpoint (self-hosted worker). |
| no |
| Which agent runtime is calling — drives cross-agent provenance. One of |
| no | — | Free-text role label (e.g. |
Tools
20 tools across files, memory, collaboration, org, and provenance.
Tool | Category | Description |
| memory | Auto-pull the most relevant prior artifacts for the task you're starting. |
| memory | Semantic search across your org's artifacts. |
| memory | Recall persistent facts/preferences agents have written. |
| files | Write a markdown file (auto-versioned). |
| files | Read a file's content. |
| files | List files in a workspace. |
| files | Delete a file. |
| files | View a file's version history. |
| collaboration | Generate a (optionally email-gated) share link. |
| collaboration | Comment on a file. |
| collaboration | Read human comments on a file. |
| provenance | Recent workspace activity (writes, comments, shares). |
| provenance | Log an agent run (task, status, artifacts, identity). |
| org | Invite a human to your org by email. |
| org | Assign/list/remove per-workspace access by email. |
| org | View org details: agents, members, plan, usage. |
| sandbox (experimental) | Clone a git repo into a per-workspace Linux sandbox. |
| sandbox (experimental) | Run a shell command in the sandbox. |
| sandbox (experimental) | Read a file from the sandbox filesystem. |
| sandbox (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 # vitestLicense
Apache-2.0. See LICENSE.