OmniFocus MCP Server
Provides automation capabilities on macOS to interact with OmniFocus task management application.
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 Server get my active 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
A Model Context Protocol (MCP) server for integrating OmniFocus with Claude Desktop. This server provides Claude with access to your OmniFocus tasks and projects, enabling AI-powered task management and weekly reviews.
Features
๐ฏ OmniFocus Integration - Access tasks and projects from OmniFocus
๐ง Active Task Filtering - Get only uncompleted tasks, excluding templates and system items
๐ TypeScript + MCP SDK - Type-safe and maintainable
๐ Secure Automation - Uses official Omni Automation JavaScript API
๐ฑ Claude Desktop Ready - Works seamlessly with Claude Desktop
Related MCP server: Todoist MCP Server
Current Tools
omnifocus:get_all_tasks
Retrieve all tasks from OmniFocus with filtering options:
includeCompleted(boolean) - Include completed tasks (default: false)limit(number) - Maximum number of tasks to return (default: 100)
omnifocus:get_active_tasks
Retrieve only active (uncompleted) tasks, automatically filtering out:
Tasks from "Templates" folders
Tasks containing template placeholders (
ยซ,ยป)Tasks with synced preferences markers (
โ๏ธ)
omnifocus:get_projects
Retrieve all active projects from OmniFocus.
Prerequisites
macOS with OmniFocus installed
Node.js 23.10.0 or higher
Claude Desktop application
Automation permissions for OmniFocus
Installation
Clone the repository:
git clone https://github.com/mdoel/omnifocus-mcp cd omnifocus-mcpInstall dependencies:
npm installBuild the project:
npm run buildConfigure Claude Desktop:
Add this to your Claude Desktop MCP configuration:
{ "mcpServers": { "omnifocus": { "command": "/path/to/omnifocus/run-server.sh", "args": [] } } }Important: Replace
/path/to/omnifocus/with the actual path to your project directory.Grant automation permissions:
The first time you run the server, macOS will prompt you to grant automation permissions for OmniFocus. Click "Allow" when prompted.
Note: If you encounter permission issues, you may need to temporarily uncomment the
osascriptlines inrun-server.shto trigger the permission dialog. After granting permissions, comment those lines out again to avoid the dialog on every startup.Restart Claude Desktop to load the new MCP server.
Usage
Once configured, you can ask Claude to:
"Get all my active tasks from OmniFocus"
"Show me my projects"
"What tasks do I have for today?"
"Help me with my weekly review"
Architecture
Core Components
OmniFocusClient- Handles communication with OmniFocus via Omni AutomationOmniFocusJXA- Utility for building and executing JXA scriptsOmniFocusMCPServer- Main MCP server implementation
Directory Structure
src/
โโโ index.ts # Main entry point
โโโ server.ts # MCP server implementation
โโโ omnifocus/
โ โโโ client.ts # OmniFocus automation client
โ โโโ omnifocus-jxa.ts # JXA script utilities
โโโ types/
โโโ omnifocus.ts # TypeScript definitionsDevelopment
Building
# Build the project
npm run build
# Watch mode for development
npm run devTesting
You can test the server locally:
# Test with command line arguments
node dist/index.js all # Get all tasks
node dist/index.js active # Get active tasks only
node dist/index.js projects # Get projects onlyTesting OmniFocus Automation
Test OmniFocus automation directly:
# Test basic connection
osascript -l JavaScript -e "Application('OmniFocus').running()"
# Test task retrieval
osascript -l JavaScript -e "
const app = Application('OmniFocus');
const doc = app.defaultDocument;
const tasks = doc.flattenedTasks();
console.log('Found ' + tasks.length + ' tasks');
"Troubleshooting
Server Connection Issues
If Claude Desktop can't connect to the server:
Check the script path in your Claude Desktop configuration
Verify permissions - ensure the
run-server.shscript is executable:chmod +x run-server.shCheck Node.js installation - ensure Node.js 23.10.0+ is installed
Review logs - check Claude Desktop's MCP server logs for error messages
Permission Issues
If you get automation permission errors:
Open System Preferences > Security & Privacy > Privacy
Select Automation from the left sidebar
Find your terminal/shell and check OmniFocus
Restart your terminal and try again
OmniFocus Not Found
Ensure OmniFocus is installed and running
Verify the app name is "OmniFocus" (not "OmniFocus 3" or something similar)
Check that OmniFocus is not in the trash or disabled
Performance Issues
If the server is slow or times out:
The server may take time to process large OmniFocus databases
Consider using the
limitparameter to reduce the number of tasks returnedEnsure OmniFocus is not performing other operations
Contributing
This project is designed to be extensible. To add new functionality:
Add new tools in the
src/omnifocus/directoryUpdate the server to register new tools
Test thoroughly with your OmniFocus data
Submit a pull request with clear documentation
License
MIT License - see LICENSE file for details.
Support
For issues and questions:
Check the troubleshooting section above
Review the Claude Desktop MCP documentation
Open an issue in this repository
Available Tools
4 toolsget_active_projectsA
Call this tool to get a list of all active (not completed or dropped) projects from OmniFocus. Use it when the user asks for their 'active projects' or 'current projects'.
Inputs: no named parameters.
get_active_tasksA
Call this tool to get a list of all active (uncompleted) tasks from the user's OmniFocus. Use it when the user asks for their 'active tasks', 'current tasks', or 'open tasks'.
Inputs: no named parameters.
get_all_projectsA
Call this tool to get a list of all projects from OmniFocus, including completed and dropped ones. Use it when the user explicitly asks for 'all projects'.
Inputs: no named parameters.
get_all_tasksA
Call this tool to get a list of all tasks from OmniFocus, including completed ones. Use it when the user explicitly asks for 'all tasks' or 'completed tasks'.
Inputs: no named parameters.
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 clearly distinct purpose with no overlap: get_active_projects vs. get_all_projects differentiate by completion status, and similarly for tasks. The descriptions explicitly clarify when to use each tool, eliminating any potential for misselection.
All tool names follow a consistent verb_noun pattern with 'get_' prefix and descriptive suffixes (e.g., active_projects, all_tasks). There are no deviations in naming style, making the set predictable and easy to understand.
Four tools are reasonable for a basic OmniFocus integration, covering core read operations for projects and tasks. However, the scope feels slightly thin as it lacks update, create, or delete capabilities, which might be expected for a task management system.
The tool set is severely incomplete for OmniFocus functionality. It only provides read operations for projects and tasks, with no ability to create, update, delete, or manage other entities like contexts, tags, or due dates. This will cause significant agent failures in handling typical task management workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Capture, clarify and plan your tasks from Claude or ChatGPT: inbox, next actions and projects.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server that integrates with OmniFocus to enable Claude (or other MCP-compatible AI assistants) to interact with your tasks and projects.7808 npm256MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables advanced task and project management in Todoist via Claude Desktop and other MCP-compatible clients.276 npm2MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables automation and management of OmniFocus tasks, projects, and tags using natural language and programmable interfaces from VS Code, command line, or any MCP-compatible client.12MIT
- AlicenseAqualityCmaintenanceEnhanced Model Context Protocol server that transforms OmniFocus into an AI-powered productivity tool with comprehensive task management capabilities including subtask support, perspective views, advanced filtering, and custom perspective access.25158 npm67MIT