Linkly AI
OfficialThis server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Linkly AI CLI
Search and read the documents on your computer from the terminal, or give an AI agent the same access over MCP.
What is it?
Linkly AI is a desktop app for macOS, Windows and Linux that indexes the folders you choose: PDF, Word, PowerPoint, Excel, CSV, EPUB, RTF, Markdown, text, HTML, images (OCR), audio and video (speech transcription). The index stays on your computer, and every local feature is free without an account.
linkly is its command line. It talks to the running desktop app, so there is nothing to index twice.
Use it to:
search your files by keyword or by question, and read the result in the terminal or in scripts (
--json)let an agent with a terminal, such as Claude Code or Codex, search your files; the official skill teaches it how
connect any MCP client over stdio with
linkly mcp
How it differs from grep and find: it reads inside PDFs, Office files, scans and recordings, matches meaning as well as keywords, and returns outlines so an agent can read only the sections it needs.
Related MCP server: Check My Notes MCP Server
Quick Start
Download the desktop app and add a folder.
Install the CLI (all options):
curl -sSL https://updater.linkly.ai/cli/install.sh | shSearch:
linkly search "quarterly report"
Prerequisites
By default, the Linkly AI desktop app must be running with MCP server enabled. The CLI automatically discovers the app via ~/.linkly/port. Alternatively, use LAN mode (--lan with a saved LAN token) or Remote mode (--remote with a saved API key) — see Connection Modes.
Installation
macOS / Linux
curl -sSL https://updater.linkly.ai/cli/install.sh | shWindows (PowerShell)
irm https://updater.linkly.ai/cli/install.ps1 | iexHomebrew (macOS / Linux)
brew tap LinklyAI/tap
brew install linklyCargo
cargo install linkly-ai-cliGitHub Releases
Pre-built binaries for all platforms are available on the Releases page.
Platform | File |
macOS (Apple Silicon) |
|
macOS (Intel) |
|
Linux (x86_64) |
|
Linux (ARM64) |
|
Windows (x64) |
|
From Source
cargo install --path .Usage
Find Paths
Locate folder candidates when you only know a fuzzy or cross-language container name (e.g. "WeChat" but the actual path contains xinWeChat). Pass several variants in --patterns so the keywords are OR-matched in a single call. Output is intended as a --path-glob source for linkly search.
linkly find-paths --patterns "WeChat,微信,wxid"
linkly find-paths --patterns "Notion,notion" --library my-research
linkly find-paths --patterns "Dropbox" --limit 5Option | Description |
| Comma-separated keywords (OR-matched); ASCII case-insensitive, CJK literal |
| Restrict to a specific library by name |
| Maximum folder candidates returned (default: 10, max: 50) |
Search Documents
linkly search "how does attention scale with sequence length?"
linkly search "API design" --limit 5
linkly search "notes" --type pdf,md,docx,pptx,epub
linkly search "attention" --library my-research
linkly search "transformer" --path-glob "*.pdf"
linkly search "quarterly report" --modified-after 2024-01-01 --modified-before 2024-12-31
linkly search "weekly notes" --time-sort newest --limit 10Option | Description |
| Maximum results (default: 20, max: 50) |
| Filter by document types, comma-separated (e.g. |
| Restrict search to a specific library by name |
| Glob substring-matched against the file path — may appear anywhere, no leading/trailing |
| Inclusive lower bound on file modification time. Accepts a bare date ( |
| Inclusive upper bound. Same format as |
| Reorder by modification time: |
View Document Outline
Get structural outlines for one or more documents (IDs come from search results):
linkly outline <doc-id>
linkly outline <id1> <id2> <id3>Locate Lines in a Document
linkly grep "pattern" <doc-id>
linkly grep "error|warning" <doc-id> -C 3 -i
linkly grep "TODO" <doc-id> --mode countOption | Description |
| Lines of context before and after each match |
| Lines of context before each match |
| Lines of context after each match |
| Case-insensitive matching |
| Output mode: |
| Maximum matches (default: 20, max: 100) |
Read Document Content
linkly read <doc-id>
linkly read <doc-id> --offset 50 --limit 100Option | Description |
| Starting line number (1-based) |
| Number of lines to read (max: 500) |
List Container Contents
Enumerate a container without full-text matching — indexed files under a directory, one library's files, or your notes:
linkly list --scope folder --path /Users/me/docs
linkly list --scope folder # all watched roots
linkly list --scope library --library "My Library"
linkly list --scope notes --tags project --jsonOption | Description |
| Required: |
| Which library to list ( |
| Absolute directory to list ( |
| Filter by document types, comma-separated (folder/library) |
| Modification-time bounds, ISO 8601 UTC (folder/library) |
| Filter notes by tags, comma-separated, AND semantics (notes) |
|
|
| Pagination (default 50, max 200; capped at 50 while snippets are on) |
| Force per-item snippets on/off (default: notes on, folder/library off) |
Notes live on the Desktop machine — with --remote the listing reaches them through the tunnel; there is no cloud notes store.
Save a Note
Create or edit a markdown card note in your Desktop's Notes folder:
linkly note-save --mode create --content "Remember this #idea"
echo "Piped body" | linkly note-save --mode create --content -
linkly note-save --mode edit --note-id <uuid> --base-version <hash> --content "New body #idea"Option | Description |
|
|
| Markdown body without YAML front matter; |
| Which note to edit (from |
| The version you read (compare-and-swap; from the same |
| Note tags (see the caution below before using this on edit) |
| Hosting application's display name, shown as the note's source badge |
Edits are compare-and-swap: a stale --base-version is rejected — re-read, merge, retry. Tags live in the note body as #tokens (the source of truth): --tags only adds tags, and you remove one by deleting its #token from the content. Caution: Desktops older than 0.11.0 instead require --tags on edit and treat it as the full replacement set (tags you omit are deleted). Requires Desktop >= 0.11.0.
Check Status
linkly statusMCP Bridge Mode
Run as a stdio MCP server for Claude Desktop, Cursor, or other MCP clients:
linkly mcpClaude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"linkly-ai": {
"command": "linkly",
"args": ["mcp"]
}
}
}The bridge advertises the desktop's nine tools. With --remote ("args": ["mcp", "--remote"])
it also advertises the two cloud-only tools the gateway implements — library_search
(find cloud libraries in the catalog, including ones not linked yet) and library_link
(link one so search / explore / list can use it, or with action: "unlink" release a
link the user named, e.g. when the Slot quota is full) — and the server instructions
describe that reach. The local bridge never advertises them: the desktop does not
implement them, so the tool list matches what the upstream can actually serve.
Calls through the bridge carry the name the connecting application gives itself when it
connects (Claude Desktop, for example, says claude-ai), so Desktop's access log shows
which application read the documents; with --remote the name is sent to the gateway as
well. --client <name> overrides it.
The bridge starts even when it cannot connect yet — Desktop is not running, or there is no
key for --remote. The tools are listed, and each call tries to connect again and reports
what is missing.
The bridge serves the desktop on this machine or the cloud gateway — it does not bridge to a
desktop on the LAN. A client on another machine should connect to the desktop's LAN HTTP
endpoint directly (copy the config from the desktop app's Agent usage → View MCP connection settings), or bridge with
--remote.
Diagnose Connection Issues
linkly doctor # every connection this machine can use, grouped
linkly doctor --remote # only the remote gateway
linkly doctor --lan # only the saved LAN desktop
linkly doctor --endpoint http://192.168.1.100:60606/mcp --token abc123Runs a series of checks (port file, server reachability, auth, MCP round-trip) and reports
pass/fail with actionable advice. Without a flag it checks the local desktop and — when
credentials for them are saved — the remote gateway and the LAN desktop at once, in
separate groups, and succeeds when at least one connection works. A flag narrows the run
to that one connection, in the same format. --json returns
{"status", "groups": [{"mode", "configured", "status", "checks", …}]} either way; with a
flag the earlier single-connection fields (mode, checks, issues, …) are also kept at
the top level.
List Libraries
List all available knowledge libraries (useful with search --library):
linkly list-libraries
linkly list-libraries --remoteSelf-Update
linkly self-updateAgent Skill
The linkly-ai skill teaches agents how to drive these tools. The CLI reports
its version, installs it, and upgrades it in place:
linkly skills status # installed version, latest published, and where it lives
linkly skills install # download and install
linkly skills update # upgrade an installed copy, or install a missing onelinkly status reports the skill in its main table, checked live on every run.
That is the reliable place to look; everything below is the nudge for someone
who did not think to look.
When the skill is missing or out of date, output carries a one-line notice
addressed to the assistant reading it — what is wrong, what it costs, and to
ask the user before running the fix. It leads the output rather than trailing
it, so a long result cannot bury it and a client that truncates cannot drop it.
Under --json it arrives as a skill_notice field; over linkly mcp it is a
separate content block ahead of the answer, sent once per process.
A missing skill is reported on every run — deciding it costs one filesystem check, and throttling it means one unrelated process can silence it for every session in the next four hours. The out-of-date notices do read the update server, so those are throttled to once every four hours. To turn it all off:
export LINKLY_NO_SKILLS_HINT=1linkly mcp inherits the environment, so setting it in an MCP client's config
silences the bridge too.
update follows the shape of each install: a symlink is left to the store it
points at, a git checkout is reported rather than overwritten, and a real
directory is replaced with the previous copy moved aside until the new one
verifies. Only the linkly-ai subdirectory is ever touched — the surrounding
skills directory belongs to whatever else you have installed there.
Detection also looks at linkly-ai-skills, the directory name produced by
installs made during a 37-hour window in March 2026 when SKILL.md carried the
repository name in its name: field. Those copies work, so reporting them as
missing would be a false alarm; status labels the path as legacy, and
install / update still write only to linkly-ai.
Connection Modes
The CLI supports three connection modes:
Mode | Flags | Auth | How it works |
Local | (default) | None (localhost) | Reads |
LAN |
| LAN token via | Direct connection to a LAN device |
Remote |
| API Key via | Connects via |
Note: Without
--lanor--remotethe CLI only talks to the desktop on this machine.--lan,--remoteand--endpointare mutually exclusive;--endpointand--tokenare required together and ignore the saved LAN connection.
Remote mode setup
# Sign in through the browser: prints a link and a confirmation code,
# opens the browser when it can, and saves a new API key once you authorize
linkly auth login
# Search via remote tunnel
linkly search "machine learning" --remoteThe link works on any device — open it on your phone if the CLI runs on a server. It is valid for 10 minutes; the page shows which account you are authorizing and the code to compare with your terminal.
Agents, or anything that cannot wait in the foreground, split the login in two steps. Run both in the same environment and config directory:
linkly auth login --no-wait --json # {"status":"pending","url":…,"user_code":…,"expires_in":600}
# … pass url and user_code to the user, wait for them to authorize …
linkly auth login --wait --json # {"status":"ok","account":…,"plan":…,"key_preview":…}--wait stops after 300 seconds (--timeout to change); run it again while the link is
still valid. In --json mode failures carry a code: timeout, expired, denied,
no_pending_login, login_in_progress (use --wait, or --restart to start over),
already_logged_in (run linkly auth logout first) and network. Every message names
the command to run next.
Prefer to paste a key? Create one in the dashboard and save it instead:
linkly auth set-key lkai_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLAN mode setup
# Save the LAN address and token once (both from the desktop app's Agent usage → View MCP connection settings)
linkly auth set-key your_lan_token --lan --endpoint http://192.168.1.100:60606
# Search the desktop on that device
linkly search "report" --lan
# Or pass both explicitly for a one-off call, without saving anything
linkly search "report" --endpoint http://192.168.1.100:60606/mcp --token your_lan_tokenManaging saved credentials
The remote API key and the LAN connection live side by side in ~/.linkly/credentials.json
(owner-only permissions); saving or removing one never touches the other.
linkly auth status # show both
linkly auth logout # remove the remote API key (same as --remote)
linkly auth logout --lan # remove the LAN connectionlogout also revokes a key that auth login issued. A key saved with set-key is only
removed locally, since it may be in use elsewhere — revoke it in the dashboard if needed.
Set LINKLY_API_KEY to use a key without saving it, for example in a container or in an MCP
client's env block. It takes precedence over the saved key for every --remote command.
Set LINKLY_CONFIG_DIR to keep credentials (and a login waiting for approval) somewhere other than ~/.linkly — for
example one directory per user when an agent serves several people from the same
system account. Each directory holds one account. Discovery of the local desktop app
(~/.linkly/port) is not affected.
LINKLY_CONFIG_DIR=~/.linkly-alice linkly auth login --no-wait --json
LINKLY_CONFIG_DIR=~/.linkly-alice linkly search "notes" --remoteOptions
Connection options (--lan, --endpoint, --token, --remote) are available on search, find-paths, explore, grep, outline, read, list, note-save, status, doctor, and list-libraries commands. mcp accepts only --remote. --json and --client are available on all commands.
Naming yourself with --client
Desktop keeps a local access log of every MCP call so the user can see which AI
applications read their documents. --client <name> is how a call gets a name
there; without it the entry shows only where the call came from (local, LAN,
remote).
If you are an agent driving this CLI, always pass it:
linkly search "budget report" --client claude-codelinkly mcp does not need it: the bridge uses the name the connecting application
gives itself. Pass --client there only to override that name
(linkly mcp --client cursor).
It is a label, not a credential: it grants nothing and is never checked against anything, which is also why it cannot be made required — a person typing commands in a terminal should not have to name themselves. Printable ASCII, up to 64 characters; anything else is ignored rather than rejected, so a bad value never fails a call.
Flag | Scope | Description |
| LAN | Connect to the LAN desktop saved by |
| LAN | Connect to a specific MCP endpoint (e.g. |
| LAN | Bearer token for LAN authentication (required with |
| Remote | Connect via |
| Global | One JSON object per result, errors included (for programs that parse the output) |
| Global | Exit 0 = results, 1 = nothing matched (search, find-paths, grep, list), 2 = failed |
| Global | Name the calling application, e.g. |
| Global | Print version |
| Global | Print help |
Examples
# Local search (default, requires desktop app running)
linkly search "budget report"
# Search across LAN (after `linkly auth set-key <token> --lan --endpoint <url>`)
linkly search "budget report" --lan
# Search via remote tunnel
linkly search "TODO" --remote
# JSON output for scripting
linkly search "TODO" --json | jq '.content'
# Pipe document content
linkly read abc123 --limit 50 | head -20Community
Documentation — guides, integrations, and troubleshooting
Community — every official channel in one place
GitHub Issues — bugs and feature requests
License
Apache-2.0
Available Tools
11 toolsexploreARead-onlyInspect
Get a bird's-eye overview of indexed documents. Returns document type distribution, directory structure with file counts, top keywords (global plus locally-concentrated), and recent activity from the last 7 days. Use this when the user wants to understand what's in their knowledge base before searching, or when they ask for an overview or summary of their documents.
For a cloud library (library="cloud://owner/slug"), also returns the library's README (if present) before the overview.
Scope: omit library to overview your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to overview a linked cloud library. To discover which cloud libraries are linked, call list_libraries first — then call explore once per cloud library you want to inspect.
Inputs: library, output_format.
find_pathsARead-onlyInspect
Locate folder paths in indexed documents by fuzzy keyword match on the directory part of the file path. Returns top folder candidates ordered by file count — pass a distinctive segment of any returned path back to search as path_glob (substring-matched, so *xinWeChat* works as well as a full prefix). Cloud results include the source library reference (cloud://owner/slug); pass it as library to your follow-up search so the glob is scoped to the right backend.
Call BEFORE search when the user names a container with a fuzzy or cross-language word ("in my WeChat", "Notion notes") and the on-disk path is unknown. Pass multiple variants in patterns in one call (e.g. ["WeChat", "微信", "wxid"]) — patterns are OR-ed and substring-matched. limit caps candidates (default 10, max 50). Skip this tool for pure content queries or file-type filters — call search directly.
Scope: omit library to search paths across your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to scope to a linked cloud library. To search paths in cloud libraries, call list_libraries first to see what is available, then call find_paths once per cloud library. Note: cloud libraries with a flat structure (no sub-folders) yield no candidates — use search directly instead.
Inputs: patterns (required), limit, library, output_format.
grepARead-onlyInspect
[Workflow: search → grep or outline → read] Locate specific lines within a single document by regex pattern. Best for documents with has_outline=false where outline is unavailable. Use after 'search' to pinpoint exact positions of names, dates, terms, identifiers, or any pattern — then use 'read' with offset to see full context. Works on all document types, including text derived from images and scanned PDFs (OCR) and from audio and video (transcripts). Requires a doc_id from a previous search result. For searching across multiple documents, call grep once per document.
Inputs: doc_id (required), pattern (required), after, limit, +7 more.
library_linkADestructiveIdempotentInspect
Link a cloud knowledge library to this account, or unlink one (action: "unlink"). Pass the exact cloud://owner/slug — from a library_search result to link, from list_libraries to unlink; bare names, local:// references and document ids are rejected.
LINK (default action): the library appears in list_libraries immediately and search / explore / list accept its cloud://owner/slug right away. Who can link: Public libraries — any signed-in user; Showcase and Private libraries — the owner or an invited reader only (the tool answers invite_required, or not_found for a private library you cannot see). Linking the same library again is safe and answers already_linked without using another Slot. Every link uses one Slot (Free plan: 1, Pro: 99). When the quota is full the tool answers slot_exhausted with the current count, the limit and an upgrade link — do NOT pick a library to unlink yourself: show the user their linked libraries (list_libraries), let them name the one to release, then call this tool with action "unlink" on it and retry.
UNLINK (action: "unlink"): the library disappears from list_libraries and stops being searchable through this MCP server — for every client of this account, not just this session — and its Slot is freed. Call it ONLY for a library the user has named ("replace A with B"); never choose on their behalf, and never unlink to make room without being told which one. Unlinking is reversible: the user keeps their reader access and stars, so linking again later works — any time for a Public library, and while the invitation stands for a Showcase / Private one. Unlinking a library that is not linked is safe and answers already_unlinked.
This tool never searches anything: use library_search to find a library, search to find documents.
Inputs: library (required), action.
library_searchARead-onlyInspect
Search the catalog of cloud knowledge libraries on Linkly AI — including libraries you have NOT linked yet — by title, description or owner username, optionally filtered by category. Use it when the user wants to FIND a cloud library ("find a Rust knowledge base", "is there a library about X", "my own cloud libraries"); then call library_link on a result to make it searchable, and search / explore / list with library="cloud://owner/slug" to use it.
Do NOT use this to search documents — for content inside libraries call search. Do NOT use it to see what is already searchable — call list_libraries for that. Results cover active Public and Showcase libraries plus Private libraries you own or were invited to; each entry carries the exact cloud://owner/slug to pass on, is_linked (already searchable — do not link again) and can_link with the reason when linking is not allowed. Read-only: nothing is linked, starred or changed. Sorted by last update, newest first; paginate with offset and has_more — if the catalog changes between pages, entries can shift.
Inputs: limit, owner, query, offset, +2 more.
listARead-onlyInspect
[Tool boundaries: explore = global overview → find_paths = FIND a directory → list = LIST files in a known container → outline/read = read content. For keyword/semantic search use search.] List the entries of a container WITHOUT full-text matching. scope is REQUIRED: "folder" (indexed files under a disk directory — omit path to sweep all watched roots), "library" (one library's files; requires library; call list_libraries first), or "notes" (local markdown card notes). Listing is a flat recursive sweep of the whole subtree — no directory tree is returned; drill down by reading the absolute paths in items or via find_paths. Sorting IS the truncation policy: "recent" (default) anchors on modified_at for folder/library and created_at for notes, newest first — with has_more=true you are seeing the MOST RECENT slice, not a random one. "oldest" is the same anchor earliest-first; "name" is file basename A → Z. Page order equals sort direction; every sort has a deterministic full-path tiebreaker, so offset pagination is stable. total counts the whole filtered set; page with offset + has_more. Timestamps are Unix milliseconds; modified_at is the filesystem mtime. folder/library items carry doc_id/title/absolute path/doc_type/word_count/char_count/total_lines/has_outline/modified_at/keywords/skip_reason (a non-null skip_reason means the content is not readable — don't read/grep it). Use total_lines + has_outline to decide outline vs read. When a listed directory has a README-style file, the response carries a top-level readme pointer — when present and you need to understand the folder's purpose, read it first. notes are filesystem-first: notes created moments ago appear immediately, with doc_id=null and indexed=false until the watcher finishes. Each note item carries note_id plus real-time version (the CAS pair for note_save mode="edit") and title (null when the filename is machine-generated). tags filters notes only (AND; leading '#' stripped, ASCII lowercased); the response carries available_tags (top 50 by usage) — reuse them here and on search scope="notes"; for note_save pass tags only when the user explicitly asked. Defaults per scope — snippet: notes=on (~200 chars of body), folder/library=off (from the indexed abstract when on); output_format: notes=json, folder/library=markdown. snippet=on caps limit at 50; snippet=false pages up to 200.
Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.
Inputs: scope (required), path, sort, tags, +8 more.
list_librariesARead-onlyInspect
List the knowledge libraries this account can search RIGHT NOW, with descriptions and document counts: local libraries (cataloged on the user's Desktop) and cloud libraries already linked to this account. Call it before searching within a specific library. Local libraries are addressed as local://<library-id>; cloud libraries as cloud://<owner>/<slug>. This is not a catalog search — to discover cloud libraries that are not linked yet, call library_search, then library_link.
note_saveAInspect
Create or edit a local markdown card note in the user's Notes folder (mode="create" | "edit"). Notes are plain markdown files owned by the user; the server generates all YAML metadata. Create: pass content (markdown body WITHOUT YAML); optional tags. Body markdown is whitelist-checked (R14, UI toolbar subset): paragraphs/line breaks, bold, strikethrough, ordered/unordered lists, plain text only — headings, italics, quotes, code, links, tables, task lists, images and raw HTML are rejected with NOTE_INVALID_INPUT. Inline #tags in the body (outside code) become the note's tags — the body is the single source of truth for tags; the optional tags parameter adds extra tags and the server appends their #tokens to the body. Only add tags the user explicitly asked for. Write # for a literal # that is not a tag (e.g. issue numbers: #114). Edit (CAS loop): list (scope="notes") → get note_id + version → read the current full content via read(doc_id) → note_save with mode="edit", note_id, base_version=, and the NEW full content — keep the #tag tokens you want to keep, delete a #token to remove that tag (tags is optional and can only add). A stale base_version returns NOTE_VERSION_CONFLICT with the actual version — re-read, merge, retry; never overwrite blindly. Every success response returns the note's effective content (the server may have appended #tokens to what you submitted) plus its version: base any follow-up edit on that returned content, never on the content you sent. Notes not yet indexed have doc_id=null: wait for indexing, or edit your own just-created note using the version and content returned by note_save. Never rewrite a note from its snippet alone. Optional app_name: the display name of the APPLICATION hosting this conversation (NOT the model name), shown as the note's source badge — omit it entirely if unsure. There is no delete tool — deletion is user-only in the app UI.
Inputs: mode (required), content (required), tags, note_id, +2 more.
outlineARead-onlyInspect
[Workflow: search → grep or outline → read] Get metadata and structural outline of one or more documents by their IDs (obtained from search results) in batch. Recommended for documents >50 lines with has_outline=true — saves multiple read calls by identifying target sections first. Note: has_outline in each search result tells you which documents have a parsed outline; for the rest, use 'grep' to find specific patterns or 'read' for line-by-line browsing.
Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.
Inputs: doc_ids (required), expand, output_format.
readARead-onlyInspect
[Workflow: search → grep or outline → read] Read content of a document by its ID. Supports line-based pagination: use offset to start from a specific line number and limit to control how many lines to read. Returns content with line numbers. Results include a "Referenced images in shown range" mapping that resolves markdown image refs to indexed image documents (doc_id + text excerpt); control detail with the optional image_text parameter ("none" / "abstract" / "full"). For image documents, pass include_image=true to receive the image itself as an image content block (resized, about 1,600 tokens); the text result always says whether an image is available. Images inside a scanned PDF appear as [Image p3-1]; pass image="p3-1" to see one (one image per call). For long documents, prefer using outline or grep first to identify target sections, then read specific ranges.
Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count. Characters covers the whole available body, not just the returned lines, and is partial while OCR/ASR is pending or extraction was truncated.
For a Markdown clip that carries user annotations (highlights, notes and comments written in the clip reader), a "User annotations" block follows the content on the first content page (offset=1) or whenever annotations_offset is given; annotations page independently of the lines (20 per call, 20000-character budget) and the block reports total, has_more and next_annotations_offset. Pass limit=1 with annotations_offset to page annotations only.
Inputs: doc_id (required), image, limit, offset, +4 more.
searchARead-onlyInspect
[Workflow: search → grep or outline → read] Search indexed documents with a natural-language question. Returns the most relevant documents with titles, paths, types, and text snippets.
After finding target documents, use 'outline' to get summaries in batch or 'grep' to find specific patterns, then use 'read' to read specific sections of interest. When the user names a container by a fuzzy or cross-language word ("WeChat", "Notion notes"), call find_paths first to discover what path_glob to pass.
Scope: omit library to search across your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to query a linked cloud library. To search across cloud libraries, call list_libraries first to see what is available, then call search once per cloud library.
Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.
User annotations: the user's own highlights, notes and comments on clips are searched too. Each result carries matched_in ("content" and/or "annotations"); the Markdown output marks such snippets with "(in annotations)". Pass scope="annotations" to search only the annotation text (keyword-only, no field-qualified clauses).
Match source: each result carries matched_by: "keyword" (keyword search found it), "both" (keyword and semantic search), or "semantic" (only semantic search found it; it may not contain the query's words, so treat it as weaker evidence). A query that is only a number of six or more digits, such as an ID or a tax or phone number, runs keyword search only, so it gets no semantic-only hits; separators (.,-/()+, spaces) and up to two letters in a row may be part of it. A shorter number such as a year, or a number with a word (CNPJ 98.765.432/0001-10), runs both searches. Both hold for Desktop results only: cloud:// results do not carry matched_by, and a number query on a cloud library may still run semantic search.
Inputs: query (required), tags, limit, scope, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The content-access tools (search, list, explore, find_paths, grep, read, outline) each have a distinct operation, and the descriptions explicitly state boundaries (e.g. 'explore = global overview → find_paths = FIND a directory → list = LIST files'). The main residual confusion is between library_search, list_libraries, and explore, which all touch library discovery but are clearly differentiated in their descriptions.
Names mix bare verbs (outline, list, explore, search, grep, read) with noun_verb compounds (library_link, library_search, note_save) and a verb_noun form (find_paths). Each name is individually readable, but there is no single predictable convention across the set.
11 tools is well within a reasonable range for a document/knowledge-base server, and each tool maps to a real workflow step (discover → search → locate → read) or a distinct library/note operation. No tool appears redundant in count.
The surface covers the full retrieval lifecycle (overview, library discovery/linking, search, path finding, outline, grep, read) plus note create/edit with CAS handling. Gaps are minor and intentional, such as no note deletion (explicitly user-only) and no direct content-write or indexing-trigger tool for source documents.
Maintenance
Related MCP Connectors
Read and search folders on your own computer with explicit consent. Files are never uploaded.
Search, read, upload and organize your private documents: receipts, contracts, tax records.
Search, read, file and organize the documents in your Granite vault.
Search, read and cite documents. Add, replace and delete files with write access. OAuth required.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides tools for searching and reading local files, supporting metadata filters, PDF full-text keyword search, and sandboxed file access.2-
- FlicenseNot gradedqualityDmaintenanceEnables searching, reading, and summarizing local files and Google Drive content through natural language.-
- AlicenseNot gradedqualityCmaintenanceEnables searching and reading a library of PDF books page by page, and verifying whether a quote appears on its cited page.ISC
- AlicenseNot gradedqualityCmaintenanceEnables Claude to search and read the user's local document collection (PDF, Word, Excel, Markdown, plain text) during a conversation by subject, by file name/path, or by exact word, and to retrieve file contents page by page. It also supports finding folders relevant to a topic and checking indexing status, with everything running locally on the user's machine.MIT