Capture coding-agent sessions and resume them in any other agent: Claude Code, Codex, Cursor, more.
registry version 1.2.3
npm
npx -y @adrive/mcp-servernpm
npx -y @adrive/mcp-server@1.2.3Streamable HTTP
https://mcp.agentdrive.sh/mcp
Pick your client — the config below is generated for this server (both local and hosted-endpoint forms). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server@1.2.3"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}Remote (hosted) endpoint
https://mcp.agentdrive.sh/mcp
Claude Desktop: Settings → Connectors → Add custom connector, paste this URL, and provide: Authorization.
Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env AGENTDRIVE_API_KEY=<YOUR_AGENTDRIVE_API_KEY> agentdrive-2 -- npx -y @adrive/mcp-server
claude mcp add --env AGENTDRIVE_API_KEY=<YOUR_AGENTDRIVE_API_KEY> agentdrive-2 -- npx -y @adrive/mcp-server@1.2.3
terminal
claude mcp add --transport http agentdrive-2 https://mcp.agentdrive.sh/mcp --header "Authorization: Bearer <YOUR_AUTHORIZATION>"
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server@1.2.3"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}.cursor/mcp.json (hosted endpoint)
{
"mcpServers": {
"agentdrive-2": {
"url": "https://mcp.agentdrive.sh/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}{
"servers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server@1.2.3"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}.vscode/mcp.json (hosted endpoint)
{
"servers": {
"agentdrive-2": {
"type": "http",
"url": "https://mcp.agentdrive.sh/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}{
"mcpServers": {
"agentdrive-2": {
"command": "npx",
"args": [
"-y",
"@adrive/mcp-server@1.2.3"
],
"env": {
"AGENTDRIVE_API_KEY": "<YOUR_AGENTDRIVE_API_KEY>"
}
}
}
}mcp_config.json (hosted endpoint)
{
"mcpServers": {
"agentdrive-2": {
"serverUrl": "https://mcp.agentdrive.sh/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
AGENTDRIVE_API_KEY secret — AgentDrive API key. Optional after `npx @adrive/cli auth login`.AGENTDRIVE_AGENT_PLATFORM — Harness id recorded as provenance, e.g. claude-code or codex.Authorization required secret header — Bearer <AgentDrive API key>. Get one free at https://app.agentdrive.sh (no credit card).Distributed as npm, Streamable HTTP, listed under AI Agents. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/agentdrive-sh/agentdrive-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/agentdrive-2/)
HTML
<a href="https://mcpnav.net/server/agentdrive-2/"><img src="https://mcpnav.net/badge/agentdrive-2.svg" alt="Listed on MCPNav" height="20"></a>