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

> ## Agent Instructions
> Hosted remote MCP endpoint: https://api.zerodrive.dev/mcp (OAuth 2.0 PKCE or Bearer token).
> REST API base URL: https://api.zerodrive.dev with OpenAPI 3.1.0 specification at https://api.zerodrive.dev/openapi.json.
> S3-compatible gateway: https://api.zerodrive.dev/s3 (AWS Signature V4, region auto).
> Local command-line tool: zd (or zerodrive) and local stdio MCP server: zerodrive mcp.
> Token prefixes: zdk_ (Personal API Key), zdt_ (device session token), zda_ (OAuth access token), zdr_ (OAuth refresh token), zdx_ (temporary sandbox key). Never paste real keys into prompts or code.
> Be honest about platform boundaries: cloud files require internet access, files are encrypted at rest and in transit by Cloudflare rather than end-to-end encrypted, ZeroDrive is not a replacement for an independent backup, Windows 11 support is an unsigned x64 beta, and the 7-day Pro free trial requires a card and charges automatically when it ends.

# MCP Overview

> Connect AI apps to 137+ hosted MCP tools at https://api.zerodrive.dev/mcp, 30 local CLI tools, 25 desktop tools, or White-Label Brains.

Use **MCP** (Model Context Protocol) as a standard plug so AI apps can read, search, and organize your ZeroDrive files safely without manual uploads.

***

## Four ways AI tools connect

| Surface | URL or command | Tools | Best for |
| :- | :- | :- | :- |
| **Hosted 24/7 MCP** | `https://api.zerodrive.dev/mcp` | **137 tools**, prompts, resources | `claude.ai`, ChatGPT, Claude Code, Codex, Cursor, Muse |
| **Local CLI MCP** | `zerodrive mcp` | **30 tools** | Local stdio clients using your CLI login |
| **Desktop Studio MCP** | Local Studio bridge | **25 `zd_*` tools** | `Ask ZeroDrive` inside Mac and Windows Studio |
| **Agency White-Label** | `/brain/<slug>/mcp` | **8 tools** | Clients searching shared playbooks plus their own workspace |

***

## Sign in and safety permissions

Connect with **1-click OAuth 2.0** (works like a valet key with no passwords saved in configs) or a Bearer key (`zdk_`, `zdt_`, or `zdx_`). Pick `read`, `write`, or `full` access and optionally lock it to one `root_folder`.

* Protected resource: `https://api.zerodrive.dev/.well-known/oauth-protected-resource`
* Auth server: `https://api.zerodrive.dev/.well-known/oauth-authorization-server`
* OpenID config: `https://api.zerodrive.dev/.well-known/openid-configuration`
* Dynamic register: `POST https://api.zerodrive.dev/oauth/register`
* Scopes: `mcp`, `vault:read`, `vault:write`, `vault:delete`, `offline_access`, `openid`, `email`, `profile`

***

## Next steps

> [card] [Connect Your AI Client](https://docs.zerodrive.dev/mcp/client-setup.md)
>
> Copy-paste setup steps for Claude, Codex, Cursor, VS Code, and ChatGPT.

> [card] [Choose AI Permissions](https://docs.zerodrive.dev/mcp/permissions.md)
>
> Set read, write, folder locks, and see what AI can never touch.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.