omnifocus-mcp-bridge
Click on "Install 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-bridgeshow my tasks due 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-bridge
Authenticated Streamable HTTP bridge for
omnifocus-mcp-enhanced.
Use this when an MCP client needs remote access to OmniFocus on your Mac. The upstream OmniFocus MCP server is a local stdio process; this repo wraps it in a small authenticated Streamable HTTP server.
What it does:
installs the published
omnifocus-mcp-enhancedpackage as a pinned dependencylaunches that package locally as a child stdio MCP process
exposes MCP over HTTP at
/mcprequires Bearer auth on every request
defaults to read-only tool exposure
optionally publishes the bridge through Tailscale Serve at
/omnifocus-mcp
What it does not do:
it does not import upstream server internals
it does not require the upstream repo to become a monorepo
it does not make OmniFocus itself remote; OmniFocus stays on the Mac
Requirements
macOS with OmniFocus installed and automation access allowed
Node.js 20+
pnpm 11+
Tailscale, only if using
pnpm start:tailscale
Related MCP server: MCP Simple Server
Quick Start
pnpm install
pnpm token:generate
pnpm startDefault local endpoint:
http://127.0.0.1:3050/mcpClients must send:
Authorization: Bearer <contents of .secrets/omnifocus-mcp-token>Smoke test:
TOKEN="$(cat .secrets/omnifocus-mcp-token)"
curl -i http://127.0.0.1:3050/mcp \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'pnpm token:generate writes .secrets/omnifocus-mcp-token with private
permissions and does not print the token. Rotate it with:
pnpm token:generate -- --forceSecurity
Bearer auth is required on every request.
The bridge refuses to start without
OMNIFOCUS_MCP_TOKEN,OMNIFOCUS_MCP_TOKEN_FILE, or.secrets/omnifocus-mcp-token.Token files must be regular files and must not be group/world readable.
The default bind host is
127.0.0.1.Read-only mode is enabled by default. Set
OMNIFOCUS_MCP_READ_ONLY=falseonly when remote mutation is intended.The upstream OmniFocus server stays local to the Mac and is launched over stdio; no upstream internals are imported.
Configuration
.env is optional. If present, it is loaded before process environment values,
so shell, launchd, or service-manager env vars override .env.
Variable | Default | Description |
|
| Private file containing the bearer token. |
| none | Direct bearer token override. Avoid inline shell usage because it can leak through history. |
|
| Optional dotenv file path. If explicitly set, the file must exist. |
|
| HTTP bind host. Keep this as |
|
| HTTP bind port. |
|
| Set to |
|
| Set to |
| Node executable | Optional override for the stdio upstream command. |
| resolved dependency bin path | Optional override args. Supports JSON arrays or shell-like quoted strings. |
To expose plain HTTP on a trusted LAN, set OMNIFOCUS_MCP_HOST=0.0.0.0. This is
not HTTPS; prefer Tailscale Serve for remote access.
Tailscale Serve
For tailnet HTTPS:
pnpm start:tailscaleThis starts the bridge on 127.0.0.1:${OMNIFOCUS_MCP_PORT:-3050} and runs
Tailscale Serve in the foreground. With the default port, the Serve command is:
tailscale serve --set-path /omnifocus-mcp http://127.0.0.1:3050/mcpRemote endpoint:
https://<mac-name>.<tailnet>.ts.net/omnifocus-mcpThe wrapper refuses to overwrite an existing /omnifocus-mcp route, leaves
unrelated Serve routes alone, and does not run tailscale serve reset.
Run in the Background
Use a macOS LaunchAgent, not a LaunchDaemon, so OmniFocus automation runs in the logged-in user's GUI session.
pnpm launchd:installThis renders launchd/com.0xjem.omnifocus-mcp-bridge.plist.template to:
~/Library/LaunchAgents/com.0xjem.omnifocus-mcp-bridge.plistThe service runs an installed copy of scripts/omnifocus-mcp-bridge.sh, so
macOS Login Items show a named bridge entry instead of pnpm. The installed
launcher lives outside ~/Documents to avoid macOS background-item privacy
restrictions, keeps the bridge alive, and writes logs to:
~/Library/Logs/omnifocus-mcp-bridge/Check status:
launchctl print "gui/$(id -u)/com.0xjem.omnifocus-mcp-bridge"
pnpm launchd:logsUninstall:
pnpm launchd:uninstallUpstream Launch
The upstream package is pinned in package.json. At runtime, the bridge:
resolves
omnifocus-mcp-enhanced/package.jsonreads the package
binentrystarts
node <resolved-bin-path>as a child stdio MCP process
Override launch only when testing a different stdio server:
OMNIFOCUS_MCP_UPSTREAM_COMMAND=node \
OMNIFOCUS_MCP_UPSTREAM_ARGS='["/absolute/path/to/custom/server.js"]' \
pnpm startRead-Only Mode
When OMNIFOCUS_MCP_READ_ONLY is unset or true, only these tools are exposed:
dump_databaseget_task_by_idread_task_attachmentget_today_completed_tasksget_inbox_tasksget_flagged_tasksget_forecast_tasksget_tasks_by_tagfilter_taskslist_custom_perspectivesget_custom_perspective_tasks
Known and unknown mutating tools are blocked in read-only mode.
Diagnostics
Enable redacted request logs:
pnpm start:tailscale -- --verboseor:
OMNIFOCUS_MCP_VERBOSE=true pnpm start:tailscaleVerbose logs include method, path, status, duration, remote address, forwarded-for, user agent, content type, accept header, whether an Authorization header was present, and whether bearer auth passed. They do not include bearer tokens or request bodies.
If a client gets 502 Bad Gateway and no bridge request log appears, the request
did not reach the bridge. Check:
tailscale serve status --json
lsof -nP -iTCP:3050 -sTCP:LISTENIf the bridge logs statusCode:401, the request reached the bridge but the
token was missing or invalid.
Development
pnpm install
pnpm run format:check
pnpm run lint
pnpm run typecheck
pnpm test
pnpm run buildTests use a fake stdio MCP child process. They do not launch OmniFocus or call the real upstream package.
pnpm start, pnpm start:tailscale, and pnpm token:generate run
pnpm run build before executing compiled output.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xJem/omnifocus-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server