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 分