mcp-apple-notes
MCP Apple Notes

Apple Notesに対してセマンティック検索とRAG(検索拡張生成)を可能にするModel Context Protocol (MCP)サーバーです。Claude Desktop、Cursor、Windsurf、Clineなど、MCP互換のあらゆるクライアントで動作します。

機能
🔍
all-MiniLM-L6-v2デバイス内埋め込みモデルを使用したApple Notesのセマンティック検索📝 全文検索機能
📂 フォルダサポート — フォルダ一覧表示、フォルダごとの閲覧、フォルダによる検索フィルタリング
📊 LanceDB を使用したベクトルストレージ
🤖 MCP互換のあらゆるクライアント(Claude、Cursor、Windsurf、Clineなど)で動作
🍎 JXAによるネイティブなApple Notes統合
🔒 安全に試用できるオプションの読み取り専用モード
🏃♂️ 完全ローカル実行 — APIキー不要
Related MCP server: MCP Apple Notes
セキュリティと透明性
このサーバーはユーザーのプライベートなApple Notesを扱うため、完全な透明性を考慮して設計されています。Mac上で100%ローカルに動作します。
クラウドなし、テレメトリなし — APIキーは不要で、データがマシンから外部へ送信されることはありません。
ネイティブApple JXA — Apple公式のJavaScript for Automationスクリプトブリッジを使用しています。
デバイス内埋め込み —
all-MiniLM-L6-v2モデルは@huggingface/transformersを介してローカルで実行されます。検証可能 — ノートにアクセスする前に、すべてのコード(特に
index.ts)を確認することを強く推奨します。GitHubリリースにはSHA-256チェックサムが含まれており、ダウンロードしたアーティファクトを検証できます。
インストールとセットアップ
ワークフローに合ったインストール方法を選択してください。
方法1: ソースからインストール(推奨)
リポジトリをローカルにクローンすることで、ソースコードを検査し、マシン上で何が実行されているかを正確に把握できます。
git clone https://github.com/Dan8Oren/mcp-apple-notes && cd mcp-apple-notes && bun install{
"mcpServers": {
"apple-notes": {
"command": "bun",
"args": ["run", "/path/to/mcp-apple-notes/index.ts"]
}
}
}NPMを使用する場合:
git clone https://github.com/Dan8Oren/mcp-apple-notes && cd mcp-apple-notes && npm install次に、MCPクライアントの設定にサーバーを追加します。/path/to/mcp-apple-notes をリポジトリをクローンしたパスに置き換えてください:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["tsx", "/path/to/mcp-apple-notes/index.ts"]
}
}
}ヒント: リスクなしで試したいですか?読み取り専用モードを有効にすると、探索中にすべての書き込み操作をブロックできます。
"env": { "MCP_APPLE_NOTES_READ_ONLY": "1" }
方法2: npxによるクイックスタート
セットアップ不要の方法を好み、公開されているnpmパッケージを信頼する場合は、MCP設定に直接以下を追加できます:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["-y", "@dan8oren/mcp-apple-notes"]
}
}
}セットアップ後、クライアントを再起動し、AIアシスタントに "index my notes" と指示して開始してください。
クライアントごとの手順
Settings → Developer → Edit Config を開く
選択したJSON設定を
claude_desktop_config.jsonに貼り付けるClaude Desktopを再起動する
ログ:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-apple-notes.log# npm version:
claude mcp add apple-notes npx -- -y @dan8oren/mcp-apple-notes
# or from source:
claude mcp add apple-notes npx -- tsx /path/to/mcp-apple-notes/index.tsJSON設定を ~/.cursor/mcp.json(グローバル)またはプロジェクトルートの .cursor/mcp.json に追加します。
JSON設定を ~/.windsurf/mcp.json に追加します。
利用可能なツール
ツール | 説明 |
| セマンティック検索用にすべてのノートをインデックス化します。最初に実行してください |
| フルパスとノート数を含むすべてのApple Notesフォルダを一覧表示します |
| メタデータ付きでノートを一覧表示します。オプションの |
| オプションのパスフィルタと制限付きのセマンティック+全文検索 |
| noteIdまたはタイトルでフルコンテンツを取得します。曖昧な場合は候補を返します |
| マークダウンコンテンツで新しいノートを作成します(フォルダ指定可能) |
| 既存のノートのタイトルやコンテンツ(マークダウン)を編集します |
| 既存のノートにマークダウンコンテンツを追記します |
| ノートを別のフォルダに移動します |
| ノートを削除します(「最近削除した項目」に移動されます) |
信頼する前の検証
すべてのApple Notes操作は、index.ts で確認できる JXA 呼び出しです。ネットワークリクエストやバックグラウンド同期はなく、ローカルのスクリプトブリッジ呼び出しのみが行われます。
読み取り専用モード
安全策が必要ですか?読み取り専用モードを有効にすると、すべての書き込み操作がブロックされ、検索、一覧表示、読み取りツールのみが利用可能になります:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["-y", "@dan8oren/mcp-apple-notes"],
"env": { "MCP_APPLE_NOTES_READ_ONLY": "1" }
}
}
}有効にすると、index-notes、list-folders、list-notes、search-notes、get-note のみが利用可能になります。
詳細モード
詳細ログを有効にすると、すべてのJXA呼び出しが実行前にstderrに記録されます:
CLIフラグ — MCPクライアント設定のargsに --verbose を追加します:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["--verbose", "-y", "@dan8oren/mcp-apple-notes"]
}
}
}環境変数 — env をサポートするクライアントの場合:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["-y", "@dan8oren/mcp-apple-notes"],
"env": { "MCP_APPLE_NOTES_VERBOSE": "1" }
}
}
}JXA操作リファレンス
操作 | タイプ | 内容 |
| 読み取り | すべてのノートを一覧表示(id、タイトル、フォルダパス) |
| 読み取り | パスとノート数を含むすべてのフォルダを一覧表示 |
| 読み取り | 特定のフォルダ内のノートを取得 |
| 読み取り | IDでノートのフルコンテンツを取得 |
| 書き込み | タイトルとコンテンツで新しいノートを作成 |
| 書き込み | 既存のノートにHTMLコンテンツを追記 |
| 書き込み | ノートのタイトルやコンテンツを更新 |
| 書き込み | ノートを別のフォルダに移動 |
| 破壊的 | ノートを「最近削除した項目」に移動 |
すべての操作はAppleのJXAスクリプトブリッジ (Application('Notes')) を介して行われます。直接的なファイルシステムアクセスやネットワーク呼び出しはありません。delete 操作は永続的ではなく、ノートは「最近削除した項目」に移動され、30日以内であれば復元可能です。
レスポンス形式
ツールのレスポンスは、一貫したエンベロープを持つJSONオブジェクトです:
成功:
{ "ok": true, "data": ... }エラー:
{ "ok": false, "error": { "type": "...", "message": "..." } }
ほとんどのノート関連のレスポンスには、名前変更や移動があってもクライアントが安全にノートを追跡できるように、安定したApple Notesの id が含まれるようになりました。
謝辞
元々は RafalWilinski/mcp-apple-notes に基づいています。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityCmaintenanceEnables interaction with Apple Notes via natural language, supporting note creation, search, and retrieval with iCloud integration for seamless note management.31424MIT
- Alicense-qualityCmaintenanceA Model Context Protocol server that enables semantic search and retrieval of Apple Notes content, allowing AI assistants to access, search, and create notes using on-device embeddings.2,6732MIT
- FlicenseAqualityDmaintenanceEnables interaction with Apple Notes on macOS through AppleScript, allowing users to list, search, read, create, update, and delete notes across accounts and folders.71
- FlicenseAqualityDmaintenanceA local-only server that enables AI agents to create, read, search, and organize Apple Notes directly on macOS. It supports folder management, note formatting, and checklists using native automation to ensure data remains private and local.2410
Related MCP Connectors
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dan8Oren/mcp-apple-notes'
If you have feedback or need assistance with the MCP directory API, please join our Discord server