cleanup_data
Removes all NotebookLM MCP server data files across 8 categories including installations, caches, logs, and browser sessions. Shows preview before deletion and preserves library if specified.
Instructions
ULTRATHINK Deep Cleanup - Scans entire system for ALL NotebookLM MCP data files across 8 categories. Always runs in deep mode, shows categorized preview before deletion.
⚠️ CRITICAL: Close ALL Chrome/Chromium instances BEFORE running this tool! Open browsers can prevent cleanup and cause issues.
Categories scanned:
Legacy Installation (notebooklm-mcp-nodejs) - Old paths with -nodejs suffix
Current Installation (notebooklm-mcp) - Active data, browser profiles, library
NPM/NPX Cache - Cached installations from npx
Claude CLI MCP Logs - MCP server logs from Claude CLI
Temporary Backups - Backup directories in system temp
Claude Projects Cache - Project-specific cache (optional)
Editor Logs (Cursor/VSCode) - MCP logs from code editors (optional)
Trash Files - Deleted notebooklm files in system trash (optional)
Works cross-platform (Linux, Windows, macOS). Safe by design: shows detailed preview before deletion, requires explicit confirmation.
LIBRARY PRESERVATION: Set preserve_library=true to keep your notebook library.json file while cleaning everything else.
RECOMMENDED WORKFLOW for fresh start:
Ask user to close ALL Chrome/Chromium instances
Run cleanup_data(confirm=false, preserve_library=true) to preview
Run cleanup_data(confirm=true, preserve_library=true) to execute
Run setup_auth or re_auth for fresh browser session
Use cases: Clean reinstall, troubleshooting auth issues, removing all traces before uninstall, cleaning old browser sessions and installation data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Confirmation flag. Tool shows preview first, then user confirms deletion. Set to true only after user has reviewed the preview and explicitly confirmed. | |
| preserve_library | No | Preserve library.json file during cleanup. Default: false. Set to true to keep your notebook library while deleting everything else (browser data, caches, logs). |