NoteAgent

NoteAgent

An MCP server that connects AI coding agents with Apple Notes for developer workflows like capturing debug sessions, logging commits, and saving code snippets.

Category
访问服务器

README

NoteAgent

npm version license

Your AI coding agent's secondary brain.

NoteAgent is an MCP (Model Context Protocol) server that connects AI coding agents — Claude Code, Cursor, OpenCode — with Apple Notes. Use it to capture debug sessions, log commit context, save code snippets, and manage notes without leaving your terminal.

Built for developers who think in code and organize in notes.

Quick Start

# Run directly (no install needed)
npx apple-noteagent-mcp

# Or install globally
npm install -g apple-noteagent-mcp
apple-noteagent-mcp

Why NoteAgent?

Existing Apple Notes MCP servers are generic note managers. NoteAgent is built for developers:

  • Developer workflows — Pre-built templates for standups, debug sessions, commit logs
  • Code snippet capture — Save language-aware snippets with file path context
  • Zero confignpx apple-noteagent-mcp just works on macOS
  • Health checksdoctor tool verifies Notes.app permissions and connectivity
  • Error recovery — Automatic retries with exponential backoff and clear error messages

Installation

Requirements

  • macOS with Apple Notes.app
  • Node.js >= 18
  • Terminal/IDE with automation permissions (System Settings → Privacy & Security → Automation)

npm (recommended)

npx apple-noteagent-mcp

Local development

git clone https://github.com/jayprajapati/apple-noteagent-mcp.git
cd apple-noteagent-mcp
npm install
npm run build
node dist/index.js

MCP Client Configuration

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "noteagent": {
      "command": "npx",
      "args": ["apple-noteagent-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "noteagent": {
      "command": "npx",
      "args": ["apple-noteagent-mcp"]
    }
  }
}

OpenCode

Add to your MCP configuration file:

{
  "mcpServers": {
    "noteagent": {
      "command": "npx",
      "args": ["apple-noteagent-mcp"]
    }
  }
}

Tools (15 total)

Note Operations

Tool Description
create_note Create a new note with title and content
get_note Get a note's content by title or ID
update_note Update a note (replace, append, or prepend)
delete_note Delete a note by title or ID
list_notes List notes in a folder or account
move_note Move a note to a different folder

Folder Operations

Tool Description
create_folder Create a new folder
delete_folder Delete a folder
list_folders List all folders with note counts

Search & Account

Tool Description
search_notes Search notes by keyword
list_accounts List available Notes accounts
get_recent_notes Get notes modified in last N hours/days

Developer Workflows

Tool Description
create_dev_note Create a developer-formatted note (standup, debug, commit)
create_snippet_note Save a code snippet with language and context
doctor Run diagnostics on Notes.app connectivity and permissions

Usage Examples

Create a note

Create a note titled "Meeting Notes" in the "Work" folder with today's action items.

The agent will use create_note with your content. Folders are created automatically if they don't exist.

Debug session logging

Log this debugging session as a dev note. The issue was a race condition in the auth middleware.
Steps to reproduce: send two concurrent login requests.
Root cause: shared mutable state in session store.
Fix: use atomic operations.

The agent will use create_dev_note with the debug template.

Save a code snippet

Save this code snippet to my notes — it's a TypeScript utility function from src/utils.ts

The agent will use create_snippet_note with the file path and language context.

Search notes

Search my notes for anything about "deployment pipeline"

Health check

Check if Notes.app is working properly with NoteAgent

The agent will run doctor to verify permissions and connectivity.

Daily standup

Create a standup note for today. I finished the auth module and started on the API layer.

The agent will use create_dev_note with the standup template.

Developer Templates

Daily Standup (standup)

Pre-formatted with:

  • What I did yesterday
  • What I'll do today
  • Blockers

Debug Session (debug)

Pre-formatted with:

  • Issue description
  • Steps to reproduce
  • Root cause analysis
  • Fix applied

Commit Log (commit)

Pre-formatted with:

  • Commit message
  • Files changed
  • Context notes

Code Snippet (snippet)

Includes:

  • Language tag
  • File path context
  • Formatted code block

Troubleshooting

"Apple Notes access denied"

Grant automation permissions:

  1. Open System Settings
  2. Go to Privacy & Security → Automation
  3. Enable access for your terminal app (Terminal, iTerm2, VS Code, etc.)

"Apple Notes is not running"

Open Notes.app before using NoteAgent. The MCP server communicates with Notes via AppleScript.

Notes not found

NoteAgent searches by exact title match. Use list_notes or search_notes to find the correct title.

Connection issues

Run the diagnostic tool:

Run the doctor tool to check NoteAgent status

This verifies Notes.app is installed, running, and accessible.

Architecture

src/
├── index.ts                 # MCP server entry point
├── types.ts                 # TypeScript interfaces
├── services/
│   ├── applescript.ts       # AppleScript executor with retry logic
│   └── notes-manager.ts     # High-level Notes operations
├── tools/
│   ├── note-tools.ts        # 6 note CRUD tools
│   ├── folder-tools.ts      # 3 folder management tools
│   ├── search-tools.ts      # 3 search/account tools
│   └── developer-tools.ts   # 3 developer workflow tools
└── utils/
    ├── helpers.ts           # Shared utilities
    └── parsing.ts           # AppleScript output parsing

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run integration tests (requires Notes.app)
npm run test:integration

# Type check
npm run lint

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选