MCP server for macOS Finder - file operations, Spotlight search, and tags via the Model Context Protocol.
- File Information: Get detailed file/folder metadata
- Directory Listing: List contents with filtering options
- Spotlight Search: Search files using macOS Spotlight (mdfind)
- Recent Files: Get recently modified files
- Special Folders: Quick access to Downloads, Desktop
- Finder Tags: Read, set, add, remove color tags
- Tag Search: Find files by tag color
- Finder Actions: Reveal, open, open with specific app, trash
- Folder Creation: Create new folders
- Selection: Get currently selected items in Finder
- macOS (uses AppleScript, Spotlight, and xattr)
- Node.js 18 or higher
- Automation permission for Finder (will be requested on first use)
npm install -g finder-mcpOr run directly:
npx finder-mcpAdd to your MCP client config (e.g., Claude Desktop at ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"finder": {
"command": "npx",
"args": ["-y", "finder-mcp"]
}
}
}Build the project:
npm run buildWatch mode for development:
npm run devNo tests configured yet.
finder_get_info- Get detailed file/folder information (size, dates, permissions, type)finder_list_directory- List directory contents with optional hidden file inclusion
finder_search- Search using Spotlight (mdfind) with optional folder scopefinder_get_recent- Get recently modified filesfinder_get_downloads- List files in Downloads folderfinder_get_desktop- List files on Desktop
finder_get_tags- Get color tags on a file/folderfinder_set_tags- Set color tags (replaces existing)finder_add_tag- Add a color tagfinder_remove_tag- Remove a color tagfinder_find_by_tag- Find all files with a specific tag color
finder_reveal- Reveal file/folder in Finderfinder_open- Open file with default applicationfinder_open_with- Open file with specific applicationfinder_trash- Move file/folder to Trashfinder_create_folder- Create a new folderfinder_get_selection- Get currently selected items in Finder
Finder supports these tag colors:
none(0) - No tag / clear tagsgray(1)green(2)purple(3)blue(4)yellow(5)red(6)orange(7)
The server includes protection against modifying system-critical paths:
/System/usr/bin/sbin/private/Library(system-level)/Applications(can open but not trash)
finder_search with query "project report" and folder "~/Documents"
finder_add_tag with path "~/Documents/important.pdf" and tag "red"
finder_find_by_tag with tag "red"
finder_get_downloads with limit 10
MIT License - see LICENSE file for details.
Thomas Vincent