Repository navigation
AI Assistants
FocusFlow comes with a small MCP server (Model Context Protocol), so an AI assistant such as Claude can read your actions and projects and make changes for you: "what's due this week?", "add call the bank to my Errands project, due Friday", "tag everything in Move house with Weekend".
It runs on your own computer and joins your sync like another device. There's no new service, no API on your server, and your server still only ever sees encrypted data.
Read: the built-in views (Inbox, Today, Forecast including Past, Flagged, Anytime, Someday, Review, Completed), your custom perspectives, search, single actions and projects, the project list and tags.
Change: add actions (with Quick Entry shorthand: #tag ::Project ! @due(fri 3pm) @defer(mon) @est(30m)), complete or reopen them, drop or restore them, change the title, note, flag, dates and estimate, add or remove tags (they cascade like in the app), move actions, create projects, and mark projects reviewed.
Can't: delete anything, erase data, or change settings, sync or your account. Dropping is the strongest action, and it can be undone.
Changes sync to your devices right away. In the inspector, "Changed on …" shows the assistant's device name.
You need Node.js 20 or newer and a copy of the FocusFlow repository.
-
Build the server:
cd mcp npm ci npm run build -
Run setup and answer its questions:
node dist/focusflow-mcp.mjs setup
It asks for your sync type (FocusFlow server or WebDAV) and the address, user name and password, the same as on the Sync screen. It also asks for your sync passphrase or recovery key, then syncs once and says how many actions it sees.
-
Add it to your assistant app. Setup prints the exact lines with the full path. For example:
-
Claude Code:
claude mcp add focusflow -- node /path/to/FocusFlow/mcp/dist/focusflow-mcp.mjs
-
Claude Desktop: in
claude_desktop_config.json:{ "mcpServers": { "focusflow": { "command": "node", "args": ["/path/to/FocusFlow/mcp/dist/focusflow-mcp.mjs"] } } }
-
To check the connection at any time, run node dist/focusflow-mcp.mjs status.
To let the assistant look but not change anything, start the server with --read-only or set FOCUSFLOW_MCP_READONLY=1. It then offers only the reading tools. For example:
claude mcp add --env FOCUSFLOW_MCP_READONLY=1 focusflow -- node /path/to/FocusFlow/mcp/dist/focusflow-mcp.mjs-
What's saved on your computer. Settings and a copy of your data are in
~/.config/focusflow-mcp/(Windows:%APPDATA%\focusflow-mcp; setFOCUSFLOW_MCP_DIRto change it). Setup creates them readable only by you, and the server refuses to start if other users can read them. -
What's not saved. Your account password and your sync passphrase are never saved.
- With the FocusFlow server, setup signs in as its own device and keeps only that device's sign-in.
- With WebDAV, the password you enter is saved, so use an app password you can revoke if your provider offers one.
- The unlocked data key is saved, so the server can decrypt without asking. Keep the folder as private as you'd keep your data itself.
-
Taking access away.
- With the FocusFlow server, sign the device out in the Account card on the Sync screen (it’s listed under the name you gave it in setup). It can't fetch anything after that.
- With WebDAV, revoke its app password.
- Then delete the settings folder.
- Changing your sync passphrase doesn't lock out a copy of the data key: the passphrase protects the same key.
- Your assistant's provider sees what it reads. Titles, notes and dates the assistant looks at are sent to the AI model as part of the conversation, under that provider's privacy terms. Read-only mode doesn't change that, so only connect an assistant whose provider you're comfortable with.
- Text in your tasks is data. Notes can contain text from elsewhere (an email you pasted, a web page). The tools tell the assistant to treat titles and notes as data, not instructions, but no assistant is immune to cleverly written text. If that worries you, use read-only mode. The tools can't delete anything either way.
- Undo. The assistant's changes reach the app as synced changes, so the app's Undo doesn't cover them. Reopen, restore or change things back yourself (or ask the assistant to).
-
"Not set up yet": run
setupas the same user that runs your assistant app. -
"can be read by other users": run the
chmod 600command in the message. -
Can't reach the server: check the address from the computer itself (open it in a browser). If your server uses a certificate from your own certificate authority, start Node with
NODE_EXTRA_CA_CERTS=/path/to/ca.pem. In Claude Code, add it with--env. - Several assistant apps at once is fine: they share one copy and take turns.
FocusFlow is open source under the Apache-2.0 license. This wiki is generated from docs/wiki/ in the repository: edit it there.