Overview
Cleve runs an MCP (Model Context Protocol) server at:Docs are called notes in tool names and parameters, for example
cleve_create_note and noteId. Notes and docs are the same thing.Connect to Cleve
Follow Use Cleve in other AI apps for Claude, ChatGPT, Cursor and other agents. The same steps are in Cleve under Settings → Integrations → AI assistants.Authentication
The server uses OAuth 2.0. On first connection:- Your client opens the Cleve sign-in page.
- You sign in with your Cleve account.
- Your client stores the access token and sends it as a Bearer token on every request.
Workspaces
Docs, folders and skills live in workspaces, and an account can belong to several. Every doc, folder, comment, sharing and skill tool accepts an optionalorganization parameter: a workspace’s id or exact name.
How a call picks its workspace
Calls about one doc (any tool that takes anoteId) run in the workspace that doc belongs to, wherever you have access to it. organization isn’t needed and doesn’t change which doc is used.
Every other call runs in exactly one workspace, chosen in this order:
- The
organizationparameter, matched exactly by id, or by name ignoring case. An unknown name returns an error that lists your workspaces. - The workspace saved for this MCP client with
cleve_switch_org. Selections are stored per client, so Claude and Cursor can target different workspaces on the same account. A selection lasts until you switch again, or until you leave that workspace. - Your only workspace, if you belong to just one.
cleve_list_orgs then returns a hint saying no workspace is selected. Agents also receive these rules in the server’s instructions when they connect, so they know to call cleve_list_orgs first.
The workspace field
cleve_read_note returns a workspace field describing where the doc lives:
{ orgId, name, member: true }: a workspace you belong to. Pass itsorgIdasorganizationto search, list or create related docs beside it.{ member: false, note }: the doc was shared with you from a workspace you aren’t a member of. You can read and edit the doc as shared, but you can’t search or create docs in that workspace, and its id isn’t returned.
Doc URLs
Every doc opens athttps://app.cleve.ai/notes/<noteId>, and folders at https://app.cleve.ai/folders/<folderId>. Search, list, create and read results include a url field. A URL doesn’t grant access: existing sharing permissions still apply.
Docs
Writing doc content
- A doc is Markdown whose title is its first
# H1. Incleve_create_noteandcleve_edit_note,titlesets that H1. Ifcontentalready starts with an H1,titlereplaces it rather than adding a second one. - In
cleve_edit_note,contentreplaces the whole doc, and an empty string clears it.titleon its own renames the doc and leaves the body unchanged. Fields you leave out stay as they are. - For small changes, use
cleve_view_notethencleve_replace_in_noteorcleve_insert_in_note. They keep the rest of the doc, including tables, HTML blocks and comment threads.oldTextmust appear exactly once in the Markdown thatcleve_view_noteshows, without the line-number prefix. - A simple replacement inside one run of text is edited in place. Replacements that include Markdown syntax or cross formatting boundaries, and every insert, save the doc back through Markdown, so formatting Markdown can’t express (highlight colours, text alignment, merged table cells) may be simplified.
- The doc’s name comes from its first
#heading, wherever it sits. Keep a short# Titleon line 1 when inserting at line 0 or replacing line 1. viewRangeis[startLine, endLine], inclusive and 1-indexed. Use-1for the last line.cleve_update_html_blockidentifies a block byblockId(theidin itshtml cleve-blockfence, which stays the same when blocks are added above it), byindex(0-based, counting only HTML blocks in document order, including nested ones) or by an exacttitlethat matches one block. Pass exactly one of them.htmlis the complete replacement markup without a code fence.
Comments
These tools work on Cleve comment threads. They change comments and their status, not the doc’s content. Each accepts the optionalorganization parameter.
In
cleve_list_note_comments results, orphaned: true means the commented text has since been edited away, and truncated: true means the doc has more threads than one call returns.
Add a Comment
cleve_add_comment creates an AI comment anchored to a passage in a doc. It requires:
noteId: the ID of a doc you can access.quote: text copied verbatim from the doc. It must match exactly once; a missing or ambiguous passage returns an error. A longer quote can disambiguate repeated text.body: the comment text, in plain prose.
cleve_view_note or cleve_read_note before choosing the quote. The passage is highlighted in the editor, and the thread appears in the comments sidebar. A successful response includes success: true, the created threadId, and quotedText.
To review a doc rather than edit it, leave a few comments anchored to the sentences they’re about, and change nothing in the doc.
Reply to a Comment
cleve_reply_to_comment adds a reply to a comment thread and leaves it open. It requires threadId and body. Get the thread ID from cleve_list_note_comments or cleve_view_note.
A successful response contains success: true and the threadId. Replying doesn’t edit the doc or resolve the thread.
Resolve a Comment
cleve_resolve_comment marks a thread resolved. It requires threadId and optionally accepts body for a closing reply, such as what you changed. A successful response contains success: true and the threadId.
Resolving doesn’t make the edit a comment asks for. To address comments, list them, make the edit for one thread with cleve_replace_in_note, then resolve that thread. Go thread by thread, and don’t resolve a thread you didn’t act on.
Sharing and publishing
Cleve keeps three things separate:
- Share access: invite specific people by email, or let anyone with the link view or edit. This doesn’t list the doc on your profile or create a marketplace item.
- Publish to your profile:
cleve_publish_notemakes the doc a publicly readable post on the owner’s Cleve profile, like a blog post. Only the owner can publish, and the owner needs a profile username. If it’s missing, the tool returns an error with a username setup link, plus a structuredcode: "profile_username_required"andsetupUrlpointing to Settings → General. Set a username there, then publish again. - Publish to the marketplace:
cleve_publish_note_templatecreates and publishes a separate copy as a Resource that anyone can find and install. It keeps the doc’s rich formatting.namedefaults to the doc’s title. Later edits to the source doc don’t update the copy, and the source doc’s sharing and profile publication stay unchanged. The returneditemIdidentifies the marketplace copy, not the source doc.
Inspect access first
Start withcleve_get_note_sharing. It returns the owner’s ownerUserId, canManageSharing, isPublishedToProfile, collaborators (with userId, and whether access is direct or inherited from a folder), invitations (with _id and expiry), pending requests (with _id) and sharing activity. Invitations, requests and activity are returned only to people who can manage sharing. Link access includes direct and effective roles (viewer, editor or null), plus publishedViaFolder, so access inherited from a folder isn’t mistaken for a restricted doc.
Link access
cleve_set_note_link_access matches General access in the share dialog: restricted, viewer (anyone with the link can view) or editor (anyone with the link can edit; editing requires signing in). cleve_share_note still works: isPublic: true sets the doc’s own link to viewer, including downgrading an editable link, and false restricts only its own link.
Both tools leave collaborators, workspace access, inherited folder access and profile publication unchanged. Removing a direct collaborator doesn’t remove folder or workspace access; inherited access has to be changed where it’s granted.
cleve_get_note_link returns the /notes/<noteId> URL without making anything public. Someone without access has to request it.
Invitations, requests and ownership
- Sharing by email returns
invited: truewhen the recipient hasn’t joined Cleve yet. That’s a pending invitation, not immediate access. Use the invitation_idto resend or withdraw it. - Approving a request grants the permission that was requested unless you pass
permission. Approving or denying may email the requester. - Ownership transfer is a handover, not an editor permission. The recipient must already have access, and the previous owner keeps editor access.
Unpublishing
Unpublishing removes only the doc’s own profile post. It doesn’t turn off link sharing, remove collaborators, unpublish a folder or remove marketplace copies, so on its own it doesn’t make a doc private. The same is true of setting link access torestricted.
Folders
cleve_delete_folder moves the folder to the Bin with its docs and subfolders, as deleting a folder in the app does. cleve_restore_folder brings the whole folder back. No tool deletes anything for good; that happens 30 days after something is binned, or from the Bin page.
Skills
model is a Cleve model ID to prefer when the skill runs.
Installing Skills
cleve_install_skill supports two sources:
- Cleve marketplace: pass
skillIdfromcleve_search_marketplaceto install that skill. - SKILL.md import: pass
urlcontaining a GitHubowner/repo, a GitHub repository or skill-folder URL, a skills.sh page, or a direct HTTPS link to a SKILL.md file. Cleve downloads and imports the skill into your account.
slugs selects which ones to import; omit it to import every valid skill found. slugs only applies to repository imports and is ignored for marketplace IDs and direct SKILL.md links. Provide either skillId or url. If both are supplied, url takes precedence. A call with neither returns an error.
The marketplace path returns a success message; the URL import returns details of the imported skills. Installing a skill doesn’t run its instructions. Treat third-party skill content as untrusted and review it before use.
Like other skill tools, this tool accepts the optional organization parameter.
Memory
Memory belongs to your account rather than a workspace, so these tools don’t takeorganization.
See Memory.
Web content
This tool requires a signed-in MCP connection but doesn’t take
organization or read your docs.
Fetching URLs
cleve_fetch_url reads a public HTTP or HTTPS URL. It extracts the main content of HTML pages as Markdown and returns text-based files as text. Binary files return a description rather than extracted content. It doesn’t save a doc or write anything to Cleve.
Parameters:
url(required): an absolute HTTP or HTTPS URL.maxLength: maximum characters of content to return, default5000, capped at50000.startIndex: character offset, default0. Use the returnednextStartIndexto read the next page of a long result.raw: defaultfalse; set totrueto return the response text without HTML-to-Markdown extraction. Binary files still return a description.
Example prompts
Related
Use Cleve in other AI apps
Step-by-step setup for Claude, ChatGPT, Cursor and more.
REST API
Read and write docs and folders with an API key.
Sharing docs and folders
How access, link sharing and inherited access work.
Publishing
Publish to your profile or the marketplace.