Kenna docsAgents and MCP
Agents and MCP
On the Mac, Kenna can connect to AI tools such as Claude Code and Claude Desktop so they can ask your library questions, read entries and, if you allow it, organize them. It is off by default, it only accepts connections from the same Mac, and it only sees the vaults you choose. The same library is also a command in Terminal: kenna.
Turn it on
- Open Settings → Agents (on a first launch, Set up your agent opens it) and turn on Enable MCP server.
- Under Vaults an agent can read, turn on each vault an AI tool may use. The vaults of the profile you are in come first, under its name. Each other profile has its own row, closed at first, that says how many of its vaults are exposed, for example “Work profile, 1 exposed”; open it to see them. If that profile asks for Face ID or your password, its switches are dimmed with “Unlock this profile to change its vaults.” Switch to the profile to change them.
- Under Copy setup for an agent, copy the snippet for your client. It already contains everything that client needs, including your Agent token. On screen the token is hidden except for its last four characters, so it is safe to show or record the card; Copy still copies the full, working snippet. Click Show token to see it, and Hide to hide it again. It is hidden again whenever you leave the card.
- Optional: turn on Tools an agent gets: every tool if you want agents to see everything Kenna can do. Leave it off and they see a smaller starter set (see The default tools).
- Optional: choose how much of your profile each vault shares with agents: Off, Summary (the default) or Full, on the Your profile page (see Your profile).
Copy the snippet from the card rather than typing it. Kenna needs to be open on the Mac for clients to connect. Regenerate makes a new token, after which every client must be set up again.
Connect a client
Claude Code
Copy the Claude Code setup from the card, then paste it into Terminal once.
Claude Desktop
Add the snippet Kenna shows you to Claude Desktop’s own settings, then restart Claude Desktop.
ChatGPT, in Codex
Codex, OpenAI’s coding agent, signs in with your ChatGPT account. Copy the Codex setup from the card, add it once following Codex’s own instructions, then start a new Codex session.
Then ask, for example: “Which films did I rate 4 stars or more?”
pi, and other agents that run commands
pi has no direct connection; it runs commands. Install the kenna command, then ask pi, for example: “How many recipes did I save last month? Use the kenna command.” pi runs the command and answers from the result.
Any other MCP client
Copy the setup details from the card and paste them where that client asks for an MCP connection. If you expose more than one vault, tell the client which vault to use by name; the client can also ask Kenna which vaults are available.
The default tools
Every tool an agent can see is sent along with each thing it asks its model, so Kenna starts agents small. With Tools an agent gets: every tool off, which is the default, an agent sees a small starter set:
Example: Claude Code asks your library
You type in Claude Code: “How many places did I save in September? List the ones in Lisbon.” Claude asks Kenna, which reads it as a count of places saved between 1 and 30 September 2026 and answers with the total and the entries. Claude then reads the ones it wants in full.
- If an agent already knows what day it should treat as “today” — for instance, because it is replaying an older conversation — it can tell Kenna, so “yesterday”, “last month” or “in September” means the right thing. Otherwise Kenna uses the Mac’s clock.
- Dates are your local day. “Saved on 3 October” means 3 October where your Mac is, including across a daylight-saving change.
- An empty window says so. If you saved nothing in that window, the answer is a total of 0, not near misses from other months.
More questions an agent can pass straight through: “what was the latest recipe I saved?”, “which places did I mark would go back?”, “films I haven’t watched”, “what was that article about cold brew ratios?”.
Short entry ids
Answers name entries with a short id such as e:4821930571 instead of the full link. The id stays the same for the life of the entry and on every device. An agent can use either the short id or the full one, and reading the entry shows both.
Every tool: what a client can read
Turn on Tools an agent gets: every tool in Settings → Agents to let an agent reach everything below. The change reaches the next session: reconnect the client, or start a new conversation.
Your profile
With Tools an agent gets: every tool on, an agent can read a profile of you to learn what you like before it recommends something. What it gets depends on the level you choose for each vault under Sharing with agents on the Your profile page (open Profile in the sidebar, then Edit themes and exclusions; the Agents page shows each vault’s level and links there). The level syncs with the vault, so it is the same on every device. Anything you hide from your profile never reaches an agent at any level.
Example: “Suggest a restaurant I’d like in Lisbon”
At Summary, the agent learns that you rated places in Lisbon and Tokyo highly, would not go back to a bar in Porto, and that your strongest themes are coffee and ramen. It can suggest a new café in Lisbon from that, without seeing which places you saved. At Full, it also sees that one of them was Café Lisboa, so it can say “if you liked Café Lisboa, try…”.
An agent can narrow what it asks for — just your themes, just one kind of thing, or just certain marks — rather than everything at once.
Who read it
On the Agents page and under Who read it on the Your profile page, Kenna shows Last read by the client and when, for example “Last read by Claude Code, 2 hours ago”. Click it to see the recent reads: when, which client, at which level and which parts. Kenna keeps the last 200 reads per vault on this Mac. A call that was turned away, such as one while the level is Off, reads nothing and isn’t listed.
What agents can see, and agents asking for more
An agent reads only the vaults you exposed, and the shared notes you let agents read. It cannot change that itself. You can change it in three places, and each ends with your tap:
- In Ask. Type “Let Claude read my Travel vault”, “Stop agents reading Work” or “Let agents read the shared note Groceries”. Ask shows a card; nothing changes until you tap Allow (or Stop). Ask “What can agents see?” for the current list. This works with any model, on-device or cloud.
- When an agent asks. An agent can ask Kenna for access to a vault it cannot see, giving a reason. A banner appears at the top of Kenna, for example “Claude Code asks to read “Travel””, with Review beside it. The review sheet shows the agent’s name (as the agent gives it), its reason in its own words, and the vault; you can pick a different vault, then tap Allow, Decline or Later. If you decline, the same agent cannot ask for the same vault again for a day.
- In Settings. Settings → Agents → What agents can see lists every vault and shared note agents can read, how each was allowed (for example allowed for Claude Code on 22 Oct 2026), requests waiting, and recent answers. Stop takes access away at once.
Allowing a vault gives read access only. Agents still cannot change anything in it unless you also turn on May add and edit entries for it. If the vault’s profile asks for Face ID or your password, Kenna asks before allowing. There is no way for an agent to grant itself access; it can only ask, and only you can say yes.
Agents and locked vaults
A vault you locked (or a vault in a locked profile) stays closed to agents while it is locked, even when you exposed it. Kenna still tells an agent the vault exists but is locked, and any other call about it gets one line and nothing else: This vault is locked. Ask the person to allow access in Kenna. The kenna command is an agent here too.
When that happens Kenna shows, for example, Claude Code wants to read Work for 1 hour (the name is the one the agent gives). Choose Allow with Touch ID and confirm, and that agent can read that vault for an hour, or until your Mac locks or sleeps, whichever comes first. Don’t allow keeps it closed, and the same agent won’t ask again for that vault for a little while. An hour’s permission is for reading: changes still need the vault unlocked or the switch below. Each permission is listed with Stop under Agents reading locked vaults, in Settings → Agents and on the vault’s privacy page. They stay on this Mac, never sync, and survive a restart of Kenna until their hour is up.
If an agent should always be able to read a locked vault, turn on Let agents read this vault even when it’s locked on the vault’s privacy page (Kenna asks for Touch ID first). Agents you’ve allowed can then read it without you unlocking it; every other rule still applies, and Siri and Spotlight still never reach it.
Example: Claude Code and a locked Work vault
You ask Claude Code “What did I save about the Q3 budget in Work?” while Work is locked. Claude Code answers that the vault is locked and you need to allow it in Kenna; on your Mac the prompt is already waiting. Allow it, ask again, and Claude Code reads Work until the hour is up or you lock your Mac.
What an agent can change
Writing is a second, separate switch. In Settings → Agents, right below What agents can see, turn on Allow agents to create and modify entries and choose the Writable vaults. Every proposed change is shown to you as a preview first, and is only made once it is explicitly confirmed with your approval.
Example: “Fix the typo in my Lisbon note”
You type in Claude Code: “Fix the typo in my Lisbon note: it says Tasca do Chicco.” Claude finds the note, reads it, and proposes the exact change: replacing “Tasca do Chicco” with “Tasca do Chico”. Claude shows you the change before and after, then asks Kenna to apply it. If you had edited the note in the meantime, Kenna would tell Claude nothing was written, and Claude would need to look again.
Example: “Set the author of this book”
“Set the author of the Dune entry to Frank Herbert, and mark it read.” Claude sets both details at once. The details an entry’s kind has are something Claude can ask Kenna for, and a detail can be cleared the same way it’s set.
An agent can see what is waiting for confirmation, but there is no way for it to confirm or decline on your behalf. An agent confirming itself is not a person confirming.
Letting an agent set up a vault
An agent can propose how a vault is organized and how Kenna looks: new categories, kinds and collections, tag merges, the sidebar, the theme. It never changes anything by itself. Turn on Agents may propose setup changes for a vault in Settings → Agents; it is separate from May add and edit entries.
There is no tool to apply, confirm or undo a proposal. If you turn on Let agents change how this vault looks without asking, changes to the look alone (sidebar, theme, fonts) apply at once and can still be undone.
The kenna command
The same library from Terminal, and from coding agents that run commands. Open Settings → Agents → Kenna command line, turn on Allow command-line access, then tap Install kenna command…
kenna ask-library "how many places did I save in September?"
kenna search coffee
Output is readable text by default, or JSON if a script needs it. The command follows the same rules as a connected agent: the same vaults, and the same confirmation for anything that changes something. When Kenna is closed, kenna opens it in the background.
Safety, in short
- Off by default. Mac only.
- Only this Mac can connect to it, and it refuses requests from web pages on other sites.
- Every connection needs a private token, which is kept in your Keychain.
- Only exposed vaults are visible. An agent can ask for another vault, but only you can allow it (see What agents can see). Only writable vaults can be changed, and only with May add and edit entries on.
- Writes only reach the vault that is open in the app. Switch vaults in Kenna before asking an agent to change another one.
- A locked vault stays closed to agents until you unlock it, allow one agent for an hour with Touch ID, or turn on Let agents read this vault even when it’s locked (see Agents and locked vaults).
- Text from saved pages, photos and notes reaches the agent marked as untrusted, and Kenna tells the agent not to follow instructions written inside it. A page you saved could still try to; keep writes off unless you need them.
- The connection details are saved in the client’s own settings file. If that file leaks, use Regenerate.
- Several clients can be connected at once, and a client that quits can reconnect.
- Your library stays on your Mac, though the MCP client may send what it reads to its own model, under that client’s terms.