MCP server

The drive as tools for Claude Code, Claude Desktop, Cursor and any other MCP client.

phantomdisk mcp is a Model Context Protocol server. An agent reads and writes one drive through it, with no mount and no code to write. File data goes straight to storage; with encryption on, names and content are sealed on the machine the server runs on.

Set up

Claude Code:

claude mcp add phantomdisk --env PHANTOMDISK_KEY=pdk_YOUR_KEY -- phantomdisk mcp

Any other client, in its config file:

{
  "mcpServers": {
    "phantomdisk": {
      "command": "phantomdisk",
      "args": ["mcp"],
      "env": { "PHANTOMDISK_KEY": "pdk_YOUR_KEY" }
    }
  }
}

On a shared machine put the key in the client’s config file by hand and make that file readable by you only: a key typed on the command line stays in the shell history. Options: --drive <name or id> picks a drive, --read-only leaves the writing tools out altogether.

Tools

ToolWhat it does
listNames, kinds, sizes and times in a folder, in pages
statOne file or folder, with its current version
search_namesFind files by words in their names
search_contentFind files by what is inside them: words and meaning in documents and PDFs, text in screenshots, what a picture shows, words said in recordings. Only on a Mac with the app and its Search turned on; the index stays on that Mac
treeA folder’s contents as an outline, to a depth you choose
readA file’s content. offset and length page through a big file, 256 KiB a call
writeCreate or replace a file (up to 8 MiB), verified before it returns. A file changed meanwhile gets a conflict copy, never an overwrite
appendAdd to the end of a file, guarded by the version that was read
mkdirMake a folder and the folders above it
moveMove or rename. Never overwrites
deleteMove to Recently Deleted. Never a permanent delete
historyA file’s versions
read_versionA file as of a version or a time
restore_versionMake an earlier version current again
rollback_previewWhat rolling a folder back to a time would change
rollbackApply that rollback. It needs the preview first, and says how to undo
statusWho is signed in, which drive, read or write, storage, uploads waiting

With a read key, or --read-only, only the reading tools are listed.

Next: Command line