Apple Files

io.github.JonathanRReed由 GitHub 帳號 JonathanRReed 發布v1.1.6更新於 Nov 7, 2026

Inspect and manage local files and folders inside allowed roots on macOS.

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

一個本機 macOS MCP 伺服器,讓助理在設定好的允許目錄內瀏覽、讀取、搜尋、加標籤、建立、移動與刪除檔案。

可以做什麼
  • 列出允許的根目錄、瀏覽目錄內容、依名稱搜尋檔案與資料夾、列出最近檔案與最近位置
  • 讀取有長度上限的 UTF-8 文字檔,檢視檔案或資料夾的中繼資料
  • 讀取、取代、新增與移除 Finder 標籤
  • 建立資料夾、移動或重新命名路徑、刪除檔案或空資料夾
  • 以預設應用程式開啟路徑,或在 Finder 中顯示路徑
  • 回報設定健康狀態、權限範圍與 iCloud Drive 狀態,並提供工具檢索輔助工具
適用情境
適合助理需要處理 macOS 本機檔案時使用,例如在桌面、文件、下載或 iCloud Drive 中尋找文件、讀取文字檔、準備附件、整理資料夾或管理 Finder 標籤。
執行需求
在 macOS 上以 stdio 本機程序執行,可透過 uvx 從 PyPI 啟動,或從複製的儲存庫執行(需 Python 3.11+),並需已安裝 uv。需設定 APPLE_FILES_MCP_ALLOWED_ROOTS 限定可存取的目錄,以及 APPLE_FILES_MCP_SAFETY_MODE(safe_readonly、safe_manage 或 full_access)。未宣告任何身分驗證。
安裝前請注意
此伺服器會變更資料:建立資料夾、移動或重新命名路徑、修改 Finder 標籤,以及刪除檔案或空資料夾。刪除需要 full_access 模式,開啟、顯示、加標籤與移動等操作需要 safe_manage 或更高權限。請把 APPLE_FILES_MCP_ALLOWED_ROOTS 設得盡量窄,因為該範圍內的內容都可被存取;在附加或傳送檔案前先確認確切路徑。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Apple Files,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Apple Files MCP

Local MCP server for file, Finder-adjacent, and iCloud Drive workflows on macOS.

Capabilities

  • list allowed file roots
  • inspect directory contents
  • search files and folders by name
  • read UTF-8 text files
  • inspect file metadata
  • list recent files
  • open a path in the default app
  • reveal a path in Finder
  • read and write Finder tags
  • list recent locations
  • report local iCloud Drive availability
  • create folders
  • move or rename paths
  • delete files or empty folders
  • resources: files://allowed-roots, files://recent, files://recent-locations, files://icloud-status
  • prompts: files_prepare_attachment, files_organize_workspace
  • tool discovery helpers search_tools and get_tool_info for context-constrained clients

Install On This Mac

Quick start (uvx, from PyPI)

With uv installed:

bash
uvx apple-files-mcp

No clone, no venv management.

From a clone
bash
git clone https://github.com/JonathanRReed/Apple-MCPs.gitcd Apple-MCPsuv sync --all-packages

This builds one workspace environment with every server's entry point in .venv/bin (for example .venv/bin/apple-files-mcp). You can also point an MCP client at AppleFiles-MCP/start.sh, which prefers uv run and falls back to a plain venv bootstrap (Python 3.11+ required).

Install In AI Agents

json
{  "mcpServers": {    "apple-files": {      "command": "uvx",      "args": ["apple-files-mcp"],      "env": {        "APPLE_FILES_MCP_ALLOWED_ROOTS": "/Users/you/Desktop,/Users/you/Documents,/Users/you/Downloads,/Users/you/Library/Mobile Documents/com~apple~CloudDocs",        "APPLE_FILES_MCP_SAFETY_MODE": "safe_manage"      }    }  }}

Running from a clone instead? Use /path/to/Apple-MCPs/AppleFiles-MCP/start.sh as the command with empty args.

Claude Code:

bash
claude mcp add --transport stdio --scope user apple-files -- uvx apple-files-mcp

--scope user makes the server available in every project. To share it with one repository through its .mcp.json instead, use --scope project.

Transport

stdio is the default and recommended transport. Set APPLE_FILES_MCP_TRANSPORT=streamable-http (with optional APPLE_FILES_MCP_HOST and APPLE_FILES_MCP_PORT) to serve Streamable HTTP instead.

Prompting Notes

  • tools/list returns the full Files tool surface. Context-constrained clients can use search_tools first, then get_tool_info for the Files tool they need.
  • Use this server before Mail, Messages, Notes, or Shortcuts when the user references a local file or attachment.
  • Use this server for Finder-style workflows, iCloud Drive paths, and file tagging, not raw shell fallbacks.
  • Confirm the exact path before sending or attaching a file.
  • Keep APPLE_FILES_MCP_ALLOWED_ROOTS narrow for safety.
  • Include the local iCloud Drive root when you want the assistant to work with iCloud documents.
  • Use APPLE_FILES_MCP_SAFETY_MODE=safe_manage for assistant workflows that need create and move, and full_access only for delete workflows.

Health And Recovery

  • files_health
  • files_permission_guide
  • files_list_allowed_roots
  • files_get_icloud_status
  • files_list_recent_locations
  • files_get_tags

Launch Checklist

  • Add uvx apple-files-mcp (or a clone's AppleFiles-MCP/start.sh) to your MCP client
  • Reload or reconnect the client so the Files tool surface is loaded into context
  • Call files_health first
  • If access looks wrong, call files_permission_guide
  • Confirm APPLE_FILES_MCP_ALLOWED_ROOTS before any file mutation workflow

Moves reject an existing destination, including files, folders and symbolic links. An allowed root, or a folder that contains one, cannot be moved or deleted. Moving or deleting a symbolic link operates on the link itself; reads still resolve the target and enforce allowed roots. Text reads accept max_bytes from 1 through 10485760, read only that bounded prefix, and reject non-regular files.

來源:AppleFiles-MCP/README.md,提交 013b3f6

工具

23

files_health

Files Health

Report the active Apple Files MCP configuration.

無需輸入參數。

files_permission_guide

Files Permission Guide

Explain how Apple Files MCP access is scoped on this machine.

無需輸入參數。

files_list_allowed_roots

List Allowed Roots

List the file system roots the server may access.

無需輸入參數。

files_list_directory

List Directory

List files and folders inside an allowed directory path.

輸入參數path必填

files_search_files

Search Files

Search file and folder names inside the allowed roots.

輸入參數limitquery必填base_path

files_get_file_info

Get File Info

Get metadata for a file or folder inside the allowed roots.

輸入參數path必填

files_read_text_file

Read Text File

Read a UTF-8 text file inside the allowed roots.

輸入參數path必填max_bytes

files_recent_files

Recent Files

List recently modified files inside the allowed roots.

輸入參數limit

files_open_path

Open Path

Open a file or folder in the default app. Requires safe_manage or full_access safety mode.

輸入參數path必填

files_reveal_in_finder

Reveal In Finder

Reveal a file or folder in Finder. Requires safe_manage or full_access safety mode.

輸入參數path必填

files_get_tags

Get Tags

Read Finder tags for a file or folder inside the allowed roots.

輸入參數path必填

files_set_tags

Set Tags

Replace Finder tags for a file or folder. Requires safe_manage or full_access safety mode.

輸入參數path必填tags必填

files_add_tags

Add Tags

Add Finder tags to a file or folder. Requires safe_manage or full_access safety mode.

輸入參數path必填tags必填

files_remove_tags

Remove Tags

Remove Finder tags from a file or folder. Requires safe_manage or full_access safety mode.

輸入參數path必填tags必填

files_list_recent_locations

List Recent Locations

List recently active parent folders across the allowed roots, including iCloud-aware metadata.

輸入參數limit

files_get_icloud_status

Get iCloud Status

Report whether local iCloud Drive is available and whether it is part of the current allowed roots.

無需輸入參數。

files_create_folder

Create Folder

Create a folder inside the allowed roots.

輸入參數path必填

files_move_path

Move Path

Move or rename a file or folder inside the allowed roots.

輸入參數source必填destination必填

files_delete_path

Delete Path

Delete a file or empty folder inside the allowed roots. Requires full_access safety mode.

輸入參數path必填

files_list_prompts

Files List Prompts

Fallback prompt discovery tool for tool-only MCP clients.

無需輸入參數。

files_get_prompt

Files Get Prompt

Fallback prompt rendering tool for tool-only MCP clients.

輸入參數name必填arguments_json

search_tools

Search Tools

Search this server's tool catalog by keyword, alias, or domain tag.

輸入參數modelimitquery必填domain_tags

get_tool_info

Get Tool Info

Load the full schema, examples, and metadata for one tool from this server.

輸入參數name必填include_schemainclude_examples

版本歷史

8
  1. v1.1.6最新Nov 6, 2026
  2. v1.1.4Oct 29, 2026
  3. v1.1.3Oct 22, 2026
  4. v1.1.2Oct 14, 2026
  5. v1.1.1Oct 13, 2026
  6. v1.1.0Oct 10, 2026
  7. v1.0.5Sep 26, 2026
  8. v1.0.4Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分