omnifocus-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@omnifocus-mcp What are my tasks for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OmniFocus MCP Server
An MCP server that lets AI assistants read and write your OmniFocus database. Talk to Claude (or any MCP client) in natural language and it handles the OmniFocus automation for you.
Personal Project Notice: A hobby project for my workflow automation. MIT licensed -- use or adapt freely, but provided as-is.
What You Can Do
Once configured, talk to your assistant naturally:
"What do I need to do today?"
"Show me everything that's overdue"
"Add 'Call dentist' to my inbox, due Friday"
"Create a project for the kitchen remodel with these tasks..."
"I just finished a meeting, here are my notes..." (parses into tasks)
"How's my weekly review looking?"
The server exposes four tools that cover the full OmniFocus API:
Tool | Purpose | Operations |
| Query data | Tasks, projects, tags, perspectives, folders |
| Modify data | Create, update, complete, delete, batch, tag management |
| Analytics | Productivity stats, velocity, patterns, workflows, reviews |
| Diagnostics | Version info, performance metrics, cache stats |
Five built-in GTD prompts (weekly review, inbox processing, Eisenhower matrix, and more) are available via the MCP prompt protocol. See Getting Started for details.
Related MCP server: omnifocus-mcp
Requirements
macOS with OmniFocus 4.7+ (the server communicates with OmniFocus via Apple's automation APIs)
Node.js 18+
Quick Start
git clone https://github.com/kip-d/omnifocus-mcp.git
cd omnifocus-mcp
npm install
npm run buildClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"omnifocus": {
"command": "node",
"args": ["/absolute/path/to/omnifocus-mcp/dist/index.js"]
}
}
}Claude Code
claude mcp add omnifocus -- node /absolute/path/to/omnifocus-mcp/dist/index.jsOptional: Install the GTD skill for enhanced intent recognition and workflow guidance:
ln -s /absolute/path/to/omnifocus-mcp/docs/skills/omnifocus-assistant ~/.claude/skills/omnifocus-assistantOther Clients
Cursor, Windsurf, Cline, and Zed all support local stdio MCP servers. Use the same node dist/index.js command; refer
to each client's documentation for config file location.
Remote Access (HTTP)
The server supports HTTP transport for accessing OmniFocus from another machine (e.g., via Tailscale):
node dist/index.js --http --port 3000See the HTTP Transport Guide for setup, authentication, and client configuration.
Documentation
Audience | Document | Purpose |
Users | First conversation, natural language | |
Users | Common issues and solutions | |
Users | Parse meeting notes into tasks | |
Users | Remote access setup | |
Developers | API examples, tool call formats | |
Developers | JXA + OmniJS Bridge internals | |
Developers | API reference versions | |
Developers | Symptom lookup, common fixes | |
Developers | Full index of documentation |
Testing
Suite | Command | Tests | Time |
Unit |
| 1634 (70 files) | ~2s |
Integration |
| 73 | ~4 min |
All |
| Both suites | ~4 min |
Integration tests require OmniFocus running on macOS and exercise real database queries. Timing scales with database
size (the ~4 min figure is against a ~2,500 task database). Set DISABLE_INTEGRATION_TESTS=true to skip them.
Limitations
macOS only -- The server communicates with OmniFocus via Apple's JXA and OmniAutomation APIs, which require macOS. Remote access from other platforms is possible via HTTP transport.
See Troubleshooting for common issues.
License
MIT License -- see LICENSE file.
Available Tools
4 toolsomnifocus_analyzeARead-onlyIdempotent
Analyze OmniFocus data for insights, patterns, and specialized operations.
ANALYSIS TYPES:
productivity_stats: GTD health metrics (completion rates, velocity)
task_velocity: Completion trends over time
overdue_analysis: Bottleneck identification
pattern_analysis: Database-wide patterns (tags, projects, stale items)
workflow_analysis: Deep workflow analysis
recurring_tasks: Recurring task patterns and frequencies
parse_meeting_notes: Extract action items from meeting notes
manage_reviews: Project review operations params: { operation, projectId, reviewDate, reviewInterval }
set_schedule accepts reviewInterval: { unit: 'day'|'week'|'month'|'year', steps: positive int }
PERFORMANCE WARNINGS:
pattern_analysis on 1000+ items: ~5-10 seconds
workflow_analysis: ~3-5 seconds for comprehensive
Most others: <1 second with caching
SCOPE FILTERING:
Use dateRange for time-based analysis
Use tags/projects to focus analysis
Inputs: analysis (required).
omnifocus_readARead-onlyIdempotent
Query OmniFocus data with flexible filtering. Returns tasks, projects, tags, perspectives, folders, or exports.
COMMON QUERIES:
Inbox: { query: { type: "tasks", filters: { project: null } } }
Tasks in a specific project (by ID, fast): { query: { type: "tasks", filters: { projectId: "" } } }
Overdue: { query: { type: "tasks", mode: "overdue" } }
Today perspective: { query: { type: "tasks", mode: "today" } }
Flagged: { query: { type: "tasks", mode: "flagged" } }
Upcoming (7 days): { query: { type: "tasks", mode: "upcoming", daysAhead: 7 } }
Smart suggestions: { query: { type: "tasks", mode: "smart_suggest", limit: 10 } }
Count only (fast): { query: { type: "tasks", filters: { flagged: true }, countOnly: true } }
Export tasks: { query: { type: "export", exportType: "tasks", format: "json" } }
MODES (tasks queries ONLY — not valid on type:"projects"):
today: Due soon (≤3 days) OR flagged, matching OmniFocus Today perspective
overdue: Tasks past their due date
flagged: Flagged tasks
upcoming: Tasks due in next N days (set daysAhead, default 14)
inbox, available, blocked, search, smart_suggest, all
To SEARCH projects (or tasks) use filters, not mode: filters: { name: { contains: "..." } } or filters: { text: { matches: "regex" } }
FILTER OPERATORS:
tags: { any: [...] } (has any), { all: [...] } (has all), { none: [...] } (has none)
dates (dueDate, deferDate, plannedDate, added): { before: "YYYY-MM-DD" }, { after: "..." }, { between: ["...", "..."] }
text: { contains: "..." }, { matches: "regex" }
boolean: flagged, blocked, available, inInbox
logic: { OR: [...] }, { AND: [...] }, { NOT: {...} }
RESPONSE CONTROL:
Default returns minimal fields (id, name, flagged, completed, dueDate, deferDate, tags, project, available)
details: true returns all fields with full notes
fields: [...] returns exactly those fields (note truncated to 200 chars unless details: true)
ID lookup always returns all fields with full notes
fields are type-specific; requesting a field of the other type (e.g. reviewInterval on tasks) returns a guided error
fields (tasks): id, name, completed, flagged, blocked, available, estimatedMinutes, dueDate, deferDate, plannedDate, completionDate, added, modified, dropDate, note, projectId, project, tags, repetitionRule, parentTaskId, parentTaskName, inInbox
fields (projects): id, name, status, flagged, note, dueDate, deferDate, completionDate, folder, folderPath, folderId, sequential, lastReviewDate, nextReviewDate, reviewInterval, defaultSingletonActionHolder, tags, plannedDate
sort: [{ field: "dueDate", direction: "asc" }]
limit/offset: Pagination (default limit: 25, max: 500)
countOnly: true returns only count (33x faster for "how many" questions) — tasks only
COMPLETED TASKS:
Use filters: { completed: true } or filters: { status: "completed" } to query completed tasks
includeCompleted is for export operations only (type: "export"); honored by exportType: "tasks" and exportType: "all"
EXPORT TO DISK:
outputDirectory: when set with exportType: "tasks", writes tasks. to disk (raises the implicit cap to 5000); required for exportType: "all"
A response-path export (no outputDirectory) caps at 1000 by default and emits summary.truncated when the cap fires; override with limit
PERFORMANCE:
Use countOnly for counting questions
Use fields to select only needed data
Use modes instead of raw filters when available
Default queries are token-efficient (9 fields, no notes)
Inputs: query (required).
omnifocus_writeADestructive
Create, update, complete, or delete OmniFocus tasks and projects.
OPERATIONS:
create: New task/project with data
create_folder: New folder (name required, optional parentFolder for nesting)
update: Modify existing (provide id + changes; "data" accepted as an alias for "changes"; target defaults to "task" if omitted)
complete: Mark done (provide id; target defaults to "task" if omitted)
delete: Remove permanently (provide id, or its alias target_id)
batch: Multiple operations in one call
bulk_delete: Delete multiple items by IDs
tag_manage: Manage tag hierarchy (create, rename, delete, merge, nest, unnest, reparent)
FOLDER CREATION:
operation: "create_folder"
data.name: Folder name (required)
data.parentFolder: Parent folder name, path ("Parent : Child"), or ID (optional, omit for top-level)
Supports nested path lookup with " : " syntax (parent must already exist)
BATCH OPERATIONS:
operations: Array of create, update, complete, and delete operations
Execution order: creates first, then updates, completes, deletes last
Put tempId and parentTempId inside data (not at operation level)
Updates/completes can reference tempIds from creates in the same batch
createSequentially: true (respects dependencies)
returnMapping: true (returns tempId → realId map)
stopOnError: true (halt on first failure)
Example with subtasks: { "mutation": { "operation": "batch", "operations": [ { "operation": "create", "target": "task", "data": { "name": "Parent", "tempId": "p1", "project": "My Project" } }, { "operation": "create", "target": "task", "data": { "name": "Subtask", "tempId": "s1", "parentTempId": "p1" } } ] } }
REPETITION RULES (in data.repetitionRule):
frequency: "daily"|"weekly"|"monthly"|"yearly" (required)
interval: number (default 1)
method: "fixed"|"due-after-completion"|"defer-after-completion" (default "fixed")
daysOfWeek: [{ day: "SU"|"MO"|"TU"|"WE"|"TH"|"FR"|"SA", position?: number }] (for weekly)
daysOfMonth: [1-31] (for monthly, -1 = last day)
REVIEW INTERVAL (project-only, in data.reviewInterval or changes.reviewInterval):
Number of days: 7 (weekly), 14 (biweekly), 30 (monthly)
Object form: { steps: 1, unit: "weeks" } or { steps: 2, unit: "months" }
Valid units: "days", "weeks", "months", "years" (singular also accepted)
Both forms are accepted; object form matches OmniFocus read output
TAG OPERATIONS:
tags: [...] - Replace all tags
addTags: [...] - Add to existing
removeTags: [...] - Remove from existing
Nested tags use " : " path syntax: "Parent : Child : Leaf" (creates hierarchy, assigns leaf)
TAG MANAGEMENT (tag_manage operation):
create: Create new tag (tagName required). Supports " : " path syntax for nested hierarchies.
rename: Rename tag (tagName + newName required)
delete: Delete tag (tagName required)
merge: Merge source into target (tagName + targetTag required)
nest: Move tag under parent (tagName + parentTag required)
unnest: Move tag to root level (tagName required)
reparent: Move tag to different parent (tagName + parentTag required)
DATE FORMATS:
Date only: "YYYY-MM-DD" (defaults: due=5pm, defer=8am, planned=8am)
Date+time: "YYYY-MM-DD HH:mm" (local time)
Clear date: null or clearDueDate/clearDeferDate/clearPlannedDate: true
MOVE TO INBOX: Set project: null
SAFETY:
Delete is permanent - confirm with user first
Batch supports up to 100 operations
Inputs: mutation (required).
systemARead-onlyIdempotent
System utilities for OmniFocus MCP: get version information, run diagnostics, view performance metrics, or get cache statistics. Use operation="version" for version info, operation="diagnostics" to test OmniFocus connection, operation="metrics" for performance analytics, operation="cache" for cache statistics.
Inputs: operation, testScript, metricsType, cacheAction.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clear, distinct purpose: analysis, reading, writing, and system utilities. There is no overlap or ambiguity between them.
All tools follow a consistent 'omnifocus_verb' pattern, making it predictable and easy for agents to understand the action each tool performs.
With only 4 tools for a complex domain like OmniFocus, the count feels low. However, each tool is richly featured, especially read and write, which compensates somewhat.
The tool surface covers most essential operations: CRUD for tasks/projects, folder creation, tag management, analytics, and system diagnostics. Minor gaps exist, such as no explicit perspective management.
Related MCP Connectors
Read and write your own Microsoft To Do, Google Tasks or Todoist tasks from any AI agent.
1Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Tasks, projects, next steps and notes in one app your AI reads and writes.
Secure AI access to OpenOak tasks, notes, and Kanban boards.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI-powered task management in OmniFocus with support for project reviews, planned dates, repeating tasks, custom perspectives, hierarchical subtasks, and advanced filtering. Perfect for Claude AI integration with comprehensive CRUD operations for tasks, projects, and folders.313MIT
- AlicenseAqualityDmaintenanceGives MCP-compatible AI assistants full, typed access to OmniFocus on macOS, enabling task management, project manipulation, inbox processing, and more via natural language.10033 npm2MIT
- AlicenseBqualityDmaintenanceEnables Codex to interact with the user's local OmniFocus database on macOS, allowing task management, project creation, and tag operations through natural language.21MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that gives AI assistants full control over OmniFocus on macOS, including tasks, projects, tags, folders, perspectives, forecast, notifications, and review workflows.44MIT