OmniFocus MCP Plus
A comprehensive MCP server for OmniFocus 4 on macOS featuring 34 tools for task management, project organization, and advanced filtering. It enables full CRUD operations for tasks, projects, folders, and tags while supporting custom perspectives and complex repetition rules.
README
OmniFocus MCP Plus
A comprehensive MCP server for OmniFocus 4 with 41 tools covering task management, project/folder/tag CRUD, custom perspectives, notifications, and advanced filtering.
Originally forked from jqlts1/omnifocus-mcp-enhanced. Additional tools inspired by vitalyrodnenko/OmnifocusMCP.
Installation
Requires macOS with OmniFocus 4 and Node.js 18+.
From Source
git clone https://github.com/psufka/omnifocus-mcp-plus.git
cd omnifocus-mcp-plus
npm install && npm run build
npm test # all tests should pass
claude mcp add omnifocus -- node "$(pwd)/dist/server.js"
Restart Claude Code to pick up the new server.
Tools (41)
Task Management
| Tool | Description |
|---|---|
add_omnifocus_task |
Add a new task with dates, tags, project, parent task |
edit_item |
Edit task/project: rename, dates, flags, status, tags, move |
remove_item |
Remove a task or project (duplicate-name safe) |
move_task |
Move task to project, parent task, or inbox |
duplicate_task |
Duplicate a task with note, dates, flags, tags; optionally into a different project |
get_task_by_id |
Get task details by ID or name |
list_subtasks |
List children (subtasks), optionally recursive for full hierarchy |
uncomplete_task |
Mark a completed task as incomplete |
set_task_repetition |
Set/clear repeating schedule (iCal RRULE syntax) |
append_to_note |
Append text to a task or project note |
batch_add_items |
Add multiple tasks/projects in one call |
batch_remove_items |
Remove multiple items in one call |
batch_move_tasks |
Move multiple tasks to a destination in one call |
reorder_task |
Reorder task within its container: before/after sibling, or beginning/ending |
Task Queries
| Tool | Description |
|---|---|
filter_tasks |
Advanced filtering: status, dates, projects, tags (AND/OR), search |
get_inbox_tasks |
Get inbox tasks |
get_flagged_tasks |
Get flagged tasks with optional project filter |
get_forecast_tasks |
Get due/deferred tasks in date range |
get_tasks_by_tag |
Get tasks by tag name |
get_today_completed_tasks |
Get tasks completed today |
get_task_counts |
Aggregate counts: total, available, completed, overdue, due soon, flagged |
get_custom_perspective_tasks |
Get tasks from a custom perspective |
list_custom_perspectives |
List all custom perspectives |
dump_database |
Full database export |
Notifications
| Tool | Description |
|---|---|
list_notifications |
List all notifications (reminders) on a task |
add_notification |
Add absolute or relative notification to a task |
remove_notification |
Remove a notification by index |
Projects
| Tool | Description |
|---|---|
add_project |
Create a new project |
list_projects |
List/filter projects by folder, status, stalled state |
search_projects |
Search projects by name |
get_project_counts |
Aggregate counts by status |
Folders
| Tool | Description |
|---|---|
list_folders |
List all folders with project counts |
get_folder |
Get folder details including projects and subfolders |
create_folder |
Create a folder, optionally nested |
update_folder |
Update folder name or status |
delete_folder |
Delete a folder (and all projects inside it) |
Tags
| Tool | Description |
|---|---|
list_tags |
List tags with task counts, filter by status |
search_tags |
Search tags by name |
create_tag |
Create a tag, optionally nested |
update_tag |
Update tag name or status |
delete_tag |
Delete a tag |
Usage Examples
All tools are called automatically by Claude via MCP. The examples below show the tool parameters for common operations.
Tasks
Add a task with a due date and tags:
{
"name": "Review quarterly report",
"dueDate": "2026-03-15T17:00:00-05:00",
"tags": ["Work", "Urgent"],
"projectName": "Q1 Review"
}
Set a task to repeat every weekday:
{
"task_id": "abc123",
"rule_string": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR",
"schedule_type": "regularly"
}
Set a task to repeat 3 days after completion:
{
"task_id": "abc123",
"rule_string": "FREQ=DAILY;INTERVAL=3",
"schedule_type": "from_completion"
}
Append to a task's note (without overwriting):
{
"object_type": "task",
"object_id": "abc123",
"text": "\nUpdated 2026-03-10: waiting on response"
}
Projects
List stalled projects (active but stuck):
{ "stalledOnly": true }
List projects in a folder sorted by remaining tasks:
{
"folder": "Work",
"status": "active",
"sortBy": "remainingTaskCount",
"sortOrder": "desc"
}
Folders & Tags
Create a nested folder:
{ "name": "Q2 Projects", "parent": "Work" }
Create a nested tag:
{ "name": "Urgent", "parent": "Priority" }
Put a tag on hold:
{ "name_or_id": "Waiting", "status": "on_hold" }
Filtering
Get overdue tasks in a specific project:
{
"overdue": true,
"projectFilter": "Home Renovation"
}
Get tasks due this week with a specific tag:
{
"dueThisWeek": true,
"tagFilter": "Work"
}
Date Format
All dates must use full ISO 8601 with timezone offset. Bare dates like 2026-03-15 resolve to UTC midnight and display as the wrong day in local time.
"2026-03-15T17:00:00-05:00" (CDT)
"2026-03-15T17:00:00-06:00" (CST)
RRULE Reference
The set_task_repetition tool uses iCal RRULE syntax:
| Pattern | RRULE |
|---|---|
| Daily | FREQ=DAILY;INTERVAL=1 |
| Every 3 days | FREQ=DAILY;INTERVAL=3 |
| Weekly on Mon/Wed/Fri | FREQ=WEEKLY;BYDAY=MO,WE,FR |
| Biweekly | FREQ=WEEKLY;INTERVAL=2 |
| Monthly on the 1st | FREQ=MONTHLY;BYMONTHDAY=1 |
| Yearly | FREQ=YEARLY;INTERVAL=1 |
Architecture
All tools use OmniJS via JXA — inline JavaScript executed inside OmniFocus via runOmniJs(). No AppleScript escaping issues, native access to all OmniJS APIs. Query tools use external .js scripts in src/utils/omnifocusScripts/ loaded via executeOmniFocusScript(). The core task/project CRUD tools (add, edit, remove) were migrated from AppleScript to OmniJS in v0.3.0.
Changelog
v0.3.1
reorder_task(41 total) — move tasks before/after siblings or to beginning/ending of container
v0.3.0
- 6 new tools (40 total):
list_subtasks,duplicate_task,batch_move_tasks,list_notifications,add_notification,remove_notification - Tag AND filter —
tagMatchMode: "all"onfilter_tasksrequires all specified tags - Effective dates —
effectiveDueDate/effectiveDeferDatein all query results (inherited from parent) - AppleScript → OmniJS migration —
addOmniFocusTask,addProject,editItem,removeItemrewritten. Fixes special character crashes, timezone issues, and enables task move
v0.2.2
- Fix OmniJS scripts ignoring parameters —
forecastTasks,flaggedTasks,inboxTasksnow readinjectedArgsinstead of hardcoding defaults - Fix
get_task_countsdeferred count — counts future defer dates instead of blocked status - Fix tag replacement iteration bug — reverse iteration prevents skipped elements
- Fix JSON escaping in AppleScript returns — task names with
"or\no longer break JSON - Fix
executeJXAtemp file leak — cleanup now infinallyblock - Remove unimplemented
filter_tasksparams —hasEstimate,estimateMin,estimateMax,hasNote,inInbox - Raise perspective engine limits — 50/15 → 500/200
v0.2.0
- 17 new tools using OmniJS: append_to_note, uncomplete_task, set_task_repetition, list_projects, search_projects, get_project_counts, get_task_counts, folder CRUD (5 tools), tag CRUD (5 tools)
- New
runOmniJs()helper — simplified inline OmniJS execution with JSON arg injection, no external script files needed - Renamed from omnifocus-mcp-enhanced-fork to omnifocus-mcp-plus
v0.1.0
Fork of jqlts1/omnifocus-mcp-enhanced with:
- Fix task completion for inbox and repeating tasks
- Fix all due-date filters being silently ignored
- Fix dateFormatter discarding time components
- Fix multiline notes breaking AppleScript
- Fix JSON escaping in AppleScript return strings
- Fix single-quote escaping inserting unwanted backslashes
- Fix
isDateInCurrentWeekusing Monday-start weeks - Display task IDs in all output tools
- Duplicate-name protection on
removeItem - Require full ISO 8601 dates with timezone
- Move task to project/parent/inbox support
- All Chinese comments translated to English
- Test suite wired up (8 unit tests via tsx)
Known Limitations
- Parameter injection in
executeOmniFocusScriptis fragile — Uses regex replacement for query scripts. CRUD tools use direct JSON injection viarunOmniJs()instead. - Notification API — Relative notification offset retrieval may not work on all OmniFocus versions. Absolute notifications are fully supported.
Contributing
PRs welcome! All tools use OmniJS — write inline JavaScript that runs inside OmniFocus via runOmniJs(). No escaping issues, full access to the OmniJS API. See src/tools/primitives/folderTools.ts for examples.
To add a new tool:
- Create a primitive in
src/tools/primitives/yourTool.ts - Create a definition in
src/tools/definitions/yourTool.ts(Zod schema + handler) - Register in
src/server.ts npm run build && npm test
Credits
- jqlts1/omnifocus-mcp-enhanced — original MCP server with perspective support
- vitalyrodnenko/OmnifocusMCP — reference implementation for folder/tag CRUD, project listing, and OmniJS patterns
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。