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
| Tool | What it does |
|---|---|
list | Names, kinds, sizes and times in a folder, in pages |
stat | One file or folder, with its current version |
search_names | Find files by words in their names |
search_content | Find 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 |
tree | A folder’s contents as an outline, to a depth you choose |
read | A file’s content. offset and length page through a big file, 256 KiB a call |
write | Create or replace a file (up to 8 MiB), verified before it returns. A file changed meanwhile gets a conflict copy, never an overwrite |
append | Add to the end of a file, guarded by the version that was read |
mkdir | Make a folder and the folders above it |
move | Move or rename. Never overwrites |
delete | Move to Recently Deleted. Never a permanent delete |
history | A file’s versions |
read_version | A file as of a version or a time |
restore_version | Make an earlier version current again |
rollback_preview | What rolling a folder back to a time would change |
rollback | Apply that rollback. It needs the preview first, and says how to undo |
status | Who 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