hand mcp
Run Handrive as an MCP (Model Context Protocol) server for AI assistant integration.
Synopsis
hand mcpDescription
The mcp command starts Handrive as an MCP server using stdio transport. This allows AI assistants like Claude Desktop to interact with your files, shares, and transfers through natural language.
Prerequisites
- Handrive must be authenticated (run
hand auth login otpfirst) - The server must be running (
hand serve)
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"handrive": {
"command": "/path/to/hand",
"args": ["mcp"]
}
}
}Available Tools
The MCP server exposes 40+ tools across these categories:
| Category | Tools | Description |
|---|---|---|
| Auth | 5 | Status, login (OTP), logout, delete account |
| Shares | 6 | List, create, get, update, delete, online check |
| Files | 10 | List, search, stats, rename, delete, scan, discover |
| Members | 4 | List, add, update, remove |
| Contacts | 5 | List, add, get, update, remove |
| Users | 5 | Profile, update, search, invite, sync |
| Transfers | 9 | List, manage, download, upload, copy |
| Discovery | 1 | Discover shares from devices |
Examples
Basic setup
# 1. Start the server
hand serve &
# 2. Authenticate
hand auth login otp your@email.com
# 3. Test MCP server manually
hand mcp
# (Ctrl+C to exit)Using with Claude Desktop
Once configured, you can ask Claude:
- "List my Handrive shares"
- "Search for PDF files in my Documents share"
- "Add alice@example.com as an editor to my Project share"
- "Show my active file transfers"
- "Download the report.pdf from my work share"
Troubleshooting
MCP server not responding
# Check authentication
hand auth status
# Ensure server is running
hand serve &
# Verify MCP works
hand mcpClaude Desktop not finding Handrive
- Verify the path to
handis correct in the config - Restart Claude Desktop after config changes
- Check Claude Desktop logs for connection errors
See Also
- MCP Integration Guide - Complete setup guide
- hand serve - Start the server
- hand auth - Authentication
- MCP Tools Reference - Detailed tool documentation