Connect AI agents to Loam over MCP
Loam includes an MCP server. Add its address to an AI app that supports the Model Context Protocol, sign in to Loam and approve what the app may do. The app can then search, read and write your notes, with a checkpoint saved before it edits and no way to delete a note for good. Agent access is part of Loam Pro.
Server address
https://mcp.loamnotes.app/mcpLet your agent set it up
Paste this prompt into Claude Code or another AI agent that can change its own MCP settings, and it adds the server for you; an app that can’t, such as Claude Desktop, tells you the steps instead. You still sign in to Loam yourself, in your browser. Which apps can connect: Connect another AI app.
Add the Loam MCP server for me. Loam is my notes app.
It’s a remote MCP server named loam at https://mcp.loamnotes.app/mcp, using the streamable HTTP transport.
If you’re Claude Code, run:
claude mcp add --transport http loam https://mcp.loamnotes.app/mcp
In any other app, add it as a remote MCP server (some apps call it a custom connector) in that app’s MCP or connector settings, with that name and address. If you can’t change those settings yourself, give me the steps instead.
Loam signs in with OAuth in the browser, so don’t ask me for a password or an API key, and don’t put one in the configuration.
If you’re Codex, run:
codex mcp add loam --url https://mcp.loamnotes.app/mcp
It starts the sign-in itself and waits until I finish it in the browser, so tell me to sign in to Loam in the window it opens; the wait isn’t a hang. If the sign-in doesn’t finish, I can sign in again with codex mcp login loam.
When it’s added, tell me how to finish signing in. In Claude Code, I run /mcp, choose loam and sign in to Loam in the browser window it opens. Loam then asks me to allow reading and writing my notes.
Once I’ve signed in, check that it works by calling the tags_list tool and telling me how many tags I have. Agent access needs Loam Pro: if Loam says Pro is required, tell me that. What it needs
- Loam Pro. Agent access is a Pro feature of your Loam account, checked on every request, so it stops if Pro ends.
- Your approval of what the app may do. The first connection asks to read and write your notes. Sharing is asked for separately, the first time the app uses a sharing tool, and you can say no.
Connect from Claude
Claude on the web (claude.ai)
- Open Customize › Connectors and choose “Add custom connector”.
- Enter https://mcp.loamnotes.app/mcp as the server URL, leave the other settings as they are, and choose “Add”.
- Choose “Connect” next to Loam. Claude opens Loam’s sign-in page: sign in, check what Claude is asking for, and choose “Allow”.
- In a chat, turn Loam on from the + menu under Connectors, then ask Claude about your notes.
Claude Desktop
- Claude Desktop uses the same connector list as claude.ai. A Loam connector you added on the web is already there; otherwise add it the same way, from Customize › Connectors.
- If it shows “Connect”, choose it and sign in to Loam.
Claude Code
- Add the server from a terminal:
claude mcp add --transport http loam https://mcp.loamnotes.app/mcp - In Claude Code, run /mcp, choose loam and sign in to Loam in the browser window it opens.
Connect from ChatGPT
ChatGPT and Codex share OpenAI’s plugin directory, but Loam isn’t listed there yet. Until it is, add Loam’s server to ChatGPT yourself, in a workspace that allows it. Once it’s listed, you’ll be able to install Loam Notes from the directory instead.
As a custom MCP server
- In ChatGPT on the web, open Plugins, select the plus button, then “Add custom MCP server”.
- Enter Loam as the name and, under Connection, https://mcp.loamnotes.app/mcp as the address.
- Set authentication to OAuth, review the risk warning, select “I understand and want to continue” and choose “Create as a plugin”.
- Sign in to Loam when ChatGPT asks, choose “Allow”, then install the new plugin and start a new chat.
ChatGPT gives a custom MCP server its write tools only in ChatGPT Business and Enterprise/Edu workspaces, and on Business only admins and owners can add one. On ChatGPT Pro, a custom server can only read and fetch, so the app can search and read your notes but not change them. Custom servers can’t be added on mobile.
From the plugin directory, once Loam is listed
- Loam isn’t in OpenAI’s plugin directory yet. Once it’s listed: open Plugins in the ChatGPT sidebar, on the web, desktop or mobile, and search for “Loam Notes”.
- Select Loam Notes, review what it includes and choose “Install plugin”.
- If ChatGPT asks, choose “Connect”. ChatGPT opens Loam’s sign-in page: sign in, check what ChatGPT is asking for, and choose “Allow”.
- Start a new chat and ask about your notes, or type @ and choose Loam Notes first.
Connect from Codex
Codex can connect to Loam’s server directly, without the plugin directory.
Codex CLI, IDE extension and the ChatGPT desktop app
- Add the server from a terminal. Codex then opens Loam’s sign-in page in your browser: sign in, check what Codex is asking for, and choose “Allow”. The command waits until you finish.
codex mcp add loam --url https://mcp.loamnotes.app/mcp - If you closed that window or the sign-in didn’t finish, run codex mcp login loam to sign in again.
- Check it in the codex terminal app: /mcp lists loam among your servers. The Codex CLI, the IDE extension and Codex in the ChatGPT desktop app share this setup, so you add it once.
Connect from Gemini
Gemini can’t connect to Loam yet. Gemini reaches apps like Loam through Google’s connected apps, which are in preview, and Loam has applied to be one. Until Google lists Loam, there’s nothing to set up in Gemini.
Once Google lists Loam, Gemini opens Loam’s sign-in page the first time you use it. Loam shows the app as published by gemini.google.com and asks you to let it read and write your notes: check the request and choose “Allow”.
Gemini gets read and write access only. Loam refuses its sharing tools, so share notes from the Loam app.
Like every AI app, Gemini needs Loam Pro on your account. It can connect on any plan, but without Pro, Loam refuses its requests.
Adding Loam to Gemini yourself, as a custom MCP app, doesn’t work. Gemini then needs Loam to let apps register themselves, or a client ID and secret of your own, and Loam offers neither.
To disconnect Gemini, remove it in Loam like any other app: in the web app, Settings › Agents and API › Connected apps; on iPhone, iPad or Android, Settings › AI apps. Loam ends its access at once.
Connect another AI app
Any other AI app can connect if it supports remote MCP servers and signs in with an OAuth client ID metadata document, as the current MCP specification describes. A script can use a personal API key instead, as “Scripts and API keys” describes.
- In your AI app’s MCP or connector settings, add a server with the address above.
- The app opens Loam’s sign-in page. Sign in with your passkey or your email and password.
- Loam shows what the app is asking for. Choose “Allow” to connect it, or “Don’t allow”.
The first connection asks to read and write notes. Sharing is asked for separately, the first time the app tries to share a note. Access tokens last 15 minutes.
Example prompts
Ask in your own words; the app picks the tools. The examples describe Claude, and ChatGPT and Codex use the same tools. Each of these works with the tools listed under it.
Summarise my notes tagged #work that changed this week.
notes_search , notes_get .
Turn my meeting note from Monday into a checklist of action items.
notes_search , notes_get , notes_update .
Go through the open comments on my launch plan, answer the questions and resolve the threads that are done.
notes_search , comments_list , comments_reply , comments_set_status .
Undo the last change you made to my packing list.
notes_search , versions_list , versions_restore .
Share my Lisbon trip note with sam@example.com as a commenter.
notes_search , sharing_invite .
Move my notes tagged #garden into a folder called Garden.
folders_list , folders_create , notes_search , notes_move .
Scripts and API keys
A script or a headless agent can use a personal API key instead of signing in. You choose the key’s scopes and
its expiry date when you create it, and the script sends it as Authorization: Bearer. The tools
it can use follow the key’s scopes.
Scopes
| Scope | What the app may do | When it’s asked for |
|---|---|---|
notes:read | Search and read your notes, tags, comments and history | Always, on first connection |
notes:write | Create and edit notes, comment, restore earlier versions and move notes to the trash | On first connection |
sharing:manage | Share your notes with people, and change or remove their access | Asked separately, the first time the app uses a sharing tool |
Tools
The server has 37 tools. Each one needs the scope shown.
| Tool | What it does | Scope |
|---|---|---|
notes_search | Search notes | notes:read |
notes_get | Read a note | notes:read |
notes_create | Create a note | notes:write |
tags_list | List tags | notes:read |
notes_list_shared | List notes shared with the user | notes:read |
notes_update | Replace a note's text | notes:write |
notes_append | Append to a note | notes:write |
notes_pin | Pin or unpin a note | notes:write |
notes_archive | Archive or unarchive a note | notes:write |
notes_trash | Move a note to the trash | notes:write |
notes_restore | Restore a note from the trash | notes:write |
| Tool | What it does | Scope |
|---|---|---|
comments_list | List comment threads | notes:read |
comments_start | Start a comment thread | notes:write |
comments_reply | Reply in a comment thread | notes:write |
comments_set_status | Resolve or reopen a thread | notes:write |
versions_list | List a note's versions | notes:read |
versions_get | Read a version | notes:read |
versions_save | Save a named version | notes:write |
versions_restore | Restore a version | notes:write |
activity_list | Note activity | notes:read |
presence_get | Who is in the note now | notes:read |
| Tool | What it does | Scope |
|---|---|---|
sharing_list | Who has access to a note | sharing:manage |
sharing_invite | Invite someone to a note | sharing:manage |
sharing_set_role | Change a collaborator's role | sharing:manage |
sharing_remove | Remove a collaborator | sharing:manage |
sharing_revoke_invitation | Cancel an invitation | sharing:manage |
sharing_revoke_link | Turn off a share link | sharing:manage |
| Tool | What it does | Scope |
|---|---|---|
folders_list | List folders | notes:read |
folders_create | Create a folder | notes:write |
folders_rename | Rename a folder | notes:write |
folders_move | Move a folder | notes:write |
notes_move | Move a note to a folder | notes:write |
folder_sharing_list | Who has access to a folder | sharing:manage |
folder_sharing_invite | Invite someone to a folder | sharing:manage |
folder_sharing_set_role | Change someone's role on a folder | sharing:manage |
folder_sharing_remove | Remove someone from a folder | sharing:manage |
folder_sharing_revoke_invitation | Cancel a folder invitation | sharing:manage |
What agents can’t do
Agents act for you, but they read text other people may have written, so Loam gives them less power than you have. Loam’s server enforces these limits, whatever the app asks for.
- Delete a note permanently. They can move notes to the trash, where you can restore them.
- Create a share link.
- Mention someone. An @name an agent writes in a note or a comment doesn’t notify that person. Its comments and replies notify the people Loam tells about yours.
- Give someone a higher role. They can only keep or lower a role.
- Invite someone who doesn’t already share a note with you.
- Change your account, keys, devices or published notes.
Before an agent edits a note, Loam saves a checkpoint you can restore, and its edits appear live, labelled as an agent’s edit. Note text reaches the agent marked as untrusted content, so instructions hidden in a shared note are easier for the app to ignore.
Troubleshooting
Loam Pro is needed
Signing in works on any plan, but on the Free plan Loam won’t let the app read or change your notes: it shows an error, or a message that “Loam Pro is required for AI app access”. Agent access works once your Loam account has Pro. Loam checks your plan on each request, so you don’t need to connect again.
Your sign-in expired
Each access token lasts 15 minutes, and the app gets a new one without asking you. If it can’t, for example because you disconnected it in Loam, it tells you “This agent was disconnected from Loam. Connect it again.” or asks you to sign in.
Connecting again
In claude.ai or Claude Desktop, open Customize › Connectors: if Loam shows “Connect” or “Reconnect”, choose it and sign in. In Claude Code, run /mcp, choose loam and sign in. In ChatGPT, open Settings › Plugins, select Loam (or Loam Notes, once you install it from the directory) and choose “Reconnect”. In Codex, run codex mcp login loam again. If it still fails, remove Loam from the app, add it again and approve it.
A sharing request is refused
Sharing needs its own approval. When the app first uses a sharing tool, Loam asks again: choose “Allow”. If the app doesn’t ask, it can’t share from there. If Codex doesn’t ask for the sharing permission when you first share a note, sign in again asking for it: run codex mcp login loam --scopes notes:read,notes:write,sharing:manage, then check the request on Loam’s page and choose “Allow”. Loam also refuses, whatever you approved, to invite someone you don’t already share a note with, to raise a role or to create a share link. Do those in the Loam app.
ChatGPT doesn’t show Loam Notes
Loam isn’t in OpenAI’s plugin directory yet, so searching Plugins for “Loam Notes” finds nothing until it’s listed. Until then, add Loam as a custom MCP server, as described above; in a ChatGPT Business or Enterprise/Edu workspace, an admin may have to add it. Once it’s listed, ChatGPT shows only the plugins your plan, region and workspace allow, and in a managed workspace an admin may have to make a plugin available; it then shows “Disabled by admin” until they do.
ChatGPT can read your notes but not change them
A custom MCP server gets write tools only in ChatGPT Business and Enterprise/Edu workspaces. On ChatGPT Pro it can only read and fetch. If ChatGPT asks you to confirm a change, confirm it; it asks depending on the app’s permissions and the change.
Codex can’t open a browser to sign in
On a machine without a browser, run codex mcp login loam --no-browser, open the address it prints in a browser anywhere, sign in to Loam and choose “Allow”. Then paste the full address you land on back into the terminal, even if that page doesn’t load. If loam has no tools, run codex mcp list to check it’s added, then sign in again.
Disconnect an app
Removing Loam from an AI app and disconnecting the app in Loam are separate. To end its access, disconnect it in Loam.
- In Claude. Open Customize › Connectors, select Loam and choose “Remove”. In Claude Code, run claude mcp remove loam. This removes Loam from Claude, but Loam still lists the app until you disconnect it there.
- In ChatGPT. Open Settings › Plugins and select Loam (or Loam Notes, if you installed it from the directory). Open its more options menu (•••), or its Connection section, and choose “Disconnect”. To end its access in Loam as well, disconnect it there.
- In Codex. Run codex mcp remove loam to remove Loam from Codex. To turn it off without removing it, add enabled = false to the [mcp_servers.loam] table in ~/.codex/config.toml. To end its access in Loam as well, disconnect it there.
- In Loam. In the web app, open Settings › Agents and API › Connected apps and choose “Revoke”; the desktop app shows the same list, or a button that opens it in your browser. On iPhone, iPad or Android, open Settings › AI apps and choose “Disconnect”. Loam ends the app’s access at once, and it must ask for your approval to come back.
Questions or problems: support@loamnotes.app.