Skip to main content
Glama
OmniFocus MCP
by fortin

OmniFocus MCP

Python MCP server for OmniFocus on macOS. It talks to the running app through OmniJS (evaluateJavascript), not AppleScript, and is designed so an AI assistant can plan, capture, and organize work without dumping the whole database into context.

It covers the functionality of OmniFocus MCP Enhanced and makes improvements where they were needed: tool selection, date handling, large-database reads, mixed read/write annotations, and unsafe deletes.

Improvements over OmniFocus MCP Enhanced

Area

Enhanced

This server

Runtime

Node / npx

Python 3.11+, stdio

Database dump

dump_database still exists and models reach for it

Not exposed. omnifocus_status and count_tasks give counts

Dates

AppleScript path zeroed times; offsets ignored

One OmniJS path; YYYY-MM-DD is local midnight; ISO offsets convert to local wall-clock

Tool split

manage_* mixes reads and writes, so annotations are conservative

Reads and writes are separate tools with correct readOnlyHint / destructiveHint

List output

ASCII trees (├─) mixed into results

Structured JSON with optional nested children

Pagination

Mostly filter_tasks

Every list read is paginated (default 50, max 200)

Deletes

Direct delete

Cascade preview + short-lived confirmToken

Recovery

Partial undo on some writes

omnifocus_session undo / redo / clean up / reveal

Diagnostics

None

omnifocus_status (running, Pro, windows, headline counts)

Daily views

Inbox / Flagged / Forecast / tag

Also available, overdue, completed_today

Templates

Duplicate task

Duplicate task or project

Prompts

Daily / weekly / inbox / project planning / shaping

Same, plus evening shutdown

Deep links

Not on every item

Every task/project/folder/tag includes omnifocus:///…

Custom perspectives, hierarchical tags (Work / Deep), repetition rules, notifications, attachments, project shaping, and review workflows are all included.

Related MCP server: OmniFocus MCP Server

Requirements

  • macOS with OmniFocus 3+ running (Pro required for custom perspectives)

  • Python 3.11+

  • Automation permission: System Settings → Privacy & Security → Automation → allow the host app (Cursor, Terminal, Claude) to control OmniFocus

  • An open OmniFocus window when reading a custom perspective (the previous perspective is restored afterward)

Install

cd omnifocus-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Claude Desktop / Cursor

{
  "mcpServers": {
    "omnifocus": {
      "command": "/ABS/PATH/TO/omnifocus-mcp/.venv/bin/omnifocus-mcp"
    }
  }
}

Or without a venv:

{
  "mcpServers": {
    "omnifocus": {
      "command": "python3",
      "args": ["-m", "omnifocus_mcp"],
      "cwd": "/ABS/PATH/TO/omnifocus-mcp"
    }
  }
}

Optional: OMNIFOCUS_TIMEOUT_SECONDS (default 60) if a large database needs a longer OmniJS budget.

Tools

Read

  • omnifocus_status — connection, edition, undo flags, headline counts

  • query_tasks — source: inbox | flagged | forecast | available | overdue | completed_today | tag | project | custom | search | filter | id

  • count_tasks — same filters, plus status / flagged / overdue / estimate totals

  • query_projects — view: all | active | due_for_review | stalled

  • query_folders / query_tags / query_perspectives

  • read_attachment — image attachments returned as MCP image content when possible

Write

  • add_task, add_project, add_items, create_project_from_outline

  • edit_item, complete_items, move_items, duplicate_items

  • set_repetition, append_note, mark_reviewed

  • manage_folder, manage_tag, manage_perspective, manage_notifications

  • remove_items — preview first, then confirmToken

  • omnifocus_session — undo | redo | clean_up | reveal

A perspective is a saved view. A tag is a label. query_tasks source=custom reads a perspective; query_tasks source=tag reads a tag.

Resources

URI

Contents

omnifocus://status

Health + counts

omnifocus://inbox

Inbox (compact, 50)

omnifocus://today

Overdue + due today + flagged

omnifocus://forecast

Next 7 days

omnifocus://projects

Active projects, including stalled

omnifocus://review

Projects due for review

Prompts

daily_planning, weekly_review, inbox_processing, project_planning, project_shaping, evening_shutdown

Each prompt pulls a bounded live snapshot and tells the model to confirm before writing.

Dates

  • 2026-08-14 → local midnight, floating

  • 2026-08-14T09:30 → local 09:30, floating

  • 2026-08-14T09:30:00-06:00 or …Z → converted to local wall-clock so the calendar day stays the one the timestamp refers to

plannedDate requires OmniFocus 4.7+.

Safety

  • No full-database dump tool

  • Default list limit 50

  • Name lookups fail on duplicates and ask for an id

  • Subtasks inherit their project; passing both parentTaskId and a project is rejected

  • Moves that would cycle are rejected

  • Deletes return a cascade preview and require confirmToken

  • create_project_from_outline and repetition writes undo on verification failure

Tests

pytest

Live OmniFocus is not required. Pointing the server at a running copy of OmniFocus is the integration test: omnifocus_status should return running: true.

The first OmniJS call after OmniFocus has been idle can take 10–20 seconds while the scripting bridge wakes up. Later calls in the same process are faster. Increase OMNIFOCUS_TIMEOUT_SECONDS if a very large database still times out.

License

MIT

Available Tools

25 tools
add_itemsAdd itemsA

Create many tasks or projects in one OmniJS call. Later items can parent to earlier names.

Inputs: items (required). Returns: object

add_projectAdd projectC

Create a project, optionally inside a folder and with an initial task list.

Inputs: name (required), note, tags, tasks, +10 more. Returns: object

add_taskAdd taskB

Create one task, optionally with subtasks, tags, dates, and a repeat rule.

Inputs: name (required), note, tags, flagged, +12 more. Returns: object

append_noteAppend noteB

Append to a task or project note without overwriting it.

Inputs: text (required), id, name, item_type. Returns: object

complete_itemsComplete itemsA

Mark tasks or projects complete, incomplete, or dropped. Repeating completes report the generated instance.

Inputs: ids (required), action, all_occurrences, completion_date. Returns: object

count_tasksCount tasksA
Read-onlyIdempotent

Count matching tasks with a status breakdown and known estimated minutes.

Use this before listing when you need scale, daily capacity, or a review total.

Inputs: days, search, source, tag_id, +16 more. Returns: object

create_project_from_outlineCreate project from outlineA

Create one verified project tree from a user-confirmed outline. Rolls back with Undo on failure.

Inputs: project (required). Returns: object

duplicate_itemsDuplicate itemsB

Duplicate tasks or whole projects. Duplicating a project is useful as a template.

Inputs: ids (required), new_name, include_subtasks. Returns: object

edit_itemEdit itemC

Edit a task or project, including optional move, tags, dates, and status.

Inputs: id, name, note, tags, +21 more. Returns: object

manage_folderManage folderB
DestructiveIdempotent

Create, rename, move, or delete a folder. Deleting a folder also deletes its projects; that path requires confirmToken.

Inputs: action (required), name, status, new_name, +5 more. Returns: object

manage_notificationsManage notificationsC

List, add, or remove task reminders (absolute or due-relative).

Inputs: action, task_id, task_name, absolute_date, +2 more. Returns: object

manage_perspectiveManage perspectiveA

Update a custom perspective's filter rules in place. OmniFocus cannot create or delete perspectives via automation.

Inputs: rules, aggregation, perspective_id, perspective_name. Returns: object

manage_tagManage tagA
DestructiveIdempotent

Create, rename, nest, or delete a tag. On-hold tags block next actions.

Inputs: action (required), name, status, tag_id, +5 more. Returns: object

mark_reviewedMark projects reviewedA

Mark confirmed projects reviewed with one timestamp and return the OmniFocus-generated next review dates.

Inputs: ids (required), review_date. Returns: object

move_itemsMove itemsA

Move tasks to a project, parent task, or the Inbox. Cycles are rejected before any move.

Inputs: moves (required). Returns: object

omnifocus_sessionOmniFocus sessionB

Undo or redo the last OmniFocus change, run database clean-up, or reveal an item in the OmniFocus UI.

Inputs: action (required), id, name, item_type. Returns: object

omnifocus_statusOmniFocus statusA
Read-onlyIdempotent

Health check for OmniFocus: running state, Pro vs Standard, undo availability, and headline counts.

Use this first when a session starts or a call fails. It never dumps tasks.

Inputs: launch. Returns: object

query_foldersQuery foldersC
Read-onlyIdempotent

List OmniFocus folders. detailed includes child projects and subfolders.

Inputs: limit, cursor, output, search, +2 more. Returns: object

query_perspectivesQuery perspectivesA
Read-onlyIdempotent

List built-in and custom perspectives, or read a custom perspective's filter rules.

Custom perspectives require OmniFocus Pro. This does not return the tasks inside a perspective; use query_tasks with source=custom for that.

Inputs: action, perspective_id, perspective_name. Returns: object

query_projectsQuery projectsA
Read-onlyIdempotent

List projects, including review metadata and stalled detection.

Inputs: view, limit, cursor, output, +7 more. Returns: object

query_tagsQuery tagsA
Read-onlyIdempotent

List or search tags, including hierarchy paths such as 'Work / Deep'.

Inputs: limit, cursor, output, search, +3 more. Returns: object

query_tasksQuery tasksA
Read-onlyIdempotent

Read tasks from Inbox, Flagged, Forecast, tags, projects, custom perspectives, or an ad-hoc filter.

Results are paginated and compact by default. Use count_tasks when you only need totals. Custom perspectives (source=custom) are saved views, not tags.

Inputs: days, limit, cursor, output, +39 more. Returns: object

read_attachmentRead task attachmentA
Read-onlyIdempotent

Read one attachment previously listed on a task. Images are returned as image content when possible.

Inputs: task_id (required), attachment_id (required).

remove_itemsRemove itemsA
DestructiveIdempotent

Delete tasks, projects, or folders. First call returns a cascade preview and confirmToken; second call executes.

Inputs: ids, confirm_token. Returns: object

set_repetitionSet repetitionA

Set, update, or clear a task's OmniFocus 4.7+ repetition rule. Restores the previous rule on failure.

Inputs: clear, method, task_id, task_name, +2 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 25 tools

    Disambiguation3/5

    Most query/add/manage tools have distinct scopes, but there is real overlap: edit_item can move items like move_items, add_task/add_items/create_project_from_outline all create items, and remove_items/manage_folder both delete folders. Descriptions help, but an agent could still pick the wrong tool in several cases.

    Naming Consistency4/5

    The snake_case verb_noun pattern is largely consistent with query_*, add_*, and manage_* groups. Minor deviations like omnifocus_status, omnifocus_session, and the longer create_project_from_outline keep it from being perfectly uniform.

    Tool Count3/5

    25 tools sits at the heavy end of the range for a single server. It is comprehensive for OmniFocus, but some overlapping creation/deletion paths and utility tools make the set feel larger than strictly necessary.

    Completeness4/5

    The surface covers task/project/folder/tag/notification lifecycles, repetition, review, undo, and status checks. The main gaps are attachment creation and perspective creation/deletion, which are largely platform limitations, so core workflows are still supported.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers