> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getagentdrive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Quickstart

> Connect AgentDrive to Claude, ChatGPT, Cursor, or any MCP client

AgentDrive ships an MCP server with 14 tools. Add one config block to your MCP client and your agents get persistent file storage.

## Claude Desktop

Add to your `claude_desktop_config.json`:

```json theme={null}
{
  "mcpServers": {
    "agentdrive": {
      "command": "npx",
      "args": ["@agentdrive/mcp-server"],
      "env": {
        "AGENTDRIVE_API_KEY": "agd_your_key"
      }
    }
  }
}
```

## Cursor

Add to your Cursor MCP settings:

```json theme={null}
{
  "mcpServers": {
    "agentdrive": {
      "command": "npx",
      "args": ["@agentdrive/mcp-server"],
      "env": {
        "AGENTDRIVE_API_KEY": "agd_your_key"
      }
    }
  }
}
```

## Available tools

| Tool                | Description                        |
| ------------------- | ---------------------------------- |
| `create_drive`      | Create a new drive                 |
| `list_drives`       | List all drives                    |
| `upload_file`       | Upload a file to a drive           |
| `read_file`         | Read/download a file by ID         |
| `list_files`        | List files in a drive              |
| `delete_file`       | Delete a file by ID                |
| `get_file_info`     | Get metadata about a file          |
| `search_files`      | Search for files by name           |
| `move_file`         | Move a file to a new path or drive |
| `copy_file`         | Copy a file to a new path or drive |
| `create_folder`     | Create a folder in a drive         |
| `create_share_link` | Generate a temporary download URL  |
| `tag_file`          | Add or replace tags on a file      |
| `get_usage_info`    | Get account usage stats            |

## Environment variables

| Variable             | Required | Description                                                |
| -------------------- | -------- | ---------------------------------------------------------- |
| `AGENTDRIVE_API_KEY` | Yes      | Your API key (starts with `agd_`)                          |
| `AGENTDRIVE_API_URL` | No       | API base URL (defaults to `https://api.getagentdrive.com`) |
