On this page
What Linger’s MCP server does
- Local stdio transport only communicates with desktop MCP clients on your Mac without exposing an HTTP port or public library API.
- Read-only by default with 10 tools so an agent can summarize your library, list references and Project Canvases, read machine facets and text clues, and inspect existing image previews returned as MCP image content.
- Opt-in write tools via
--allow-write(15 tools total) unlock versioned machine analysis (save_analysis), evidenced vocabulary suggestions (save_vocabulary), and shared queue processing (claim_ai_job,complete_ai_job,fail_ai_job). - Strict isolation between model output and human notes guarantees agents never delete files, run raw SQL, modify external Finder originals, or overwrite your titles and optional personal Feeling notes.
- 100% local ownership & zero-config baseline. Just like Obsidian stores plain local files you own completely, Linger keeps plain media files and an inspectable SQLite database on your Apple Silicon Mac (macOS 14+, accessible anytime via Reveal in Finder), running color palettes and Apple Vision OCR offline with zero plugins or API keys; AI stays optional and mainly powers deeper Recall and Project Canvas handoff.
- Honest privacy boundary means local stdio does not automatically force offline inference—your agent client still sends any authorized preview to the local or cloud model you configured.
ARCHITECTURE & GUARDRAILS
Architecture and hard safety boundaries
Linger’s MCP server reuses the same Rust LibraryIndex, managed library locator, cross-process file lock, and SQLite database as the native macOS desktop app. Every design constraint is meant to keep your reference archive inspectable and reversible.
| Boundary | Behavior in Linger | Why it matters |
|---|---|---|
| Transport | Local stdio only; no listening HTTP port and no public website API | Built for desktop agents on your Mac, not remote multi-tenant cloud access |
| Default permissions | Read-only (10 tools); pass --allow-write to enable write and queue tools (15 tools total) |
Lets you test agent queries safely before allowing any database writes |
| Image inspection | view_inspiration returns existing managed JPEG previews as MCP image content |
Multimodal agents actually see the visual reference rather than guessing from a filename |
| Metadata isolation | Machine tags, descriptions, OCR text, and summaries are stored as versioned revisions | Personal notes, titles, user tags, and original files are never overwritten; manual edits to machine tags are preserved across re-runs |
| Vocabulary suggestions | Stored as evidenced suggestions linked to specific inspiration IDs | Agents propose aesthetic vocabulary with proof rather than declaring your permanent taste automatically |
| Prohibited actions | No arbitrary path read/write, no raw SQL, no delete tool, no bulk overwrite, no remote URL scraping | Prevents accidental archive destruction or uncontrolled crawling |
| Provider disclosure | Images are forwarded by your agent client to whichever model provider you configured | Your client and model determine where inference runs. Choose which references to share |
TOOL REFERENCE
MCP tools in Linger 0.8.0
Read-only mode includes the ten library and project tools below. Add the write flag to save analysis or vocabulary suggestions and process queued jobs.
| Tool | Mode | What it does |
|---|---|---|
get_library_summary |
Read-only | Returns counts of active inspirations, analyzed items, and vocabulary entries |
list_inspirations |
Read-only | Paginates active references by ID (up to 50 per page) with text, collection, or unanalyzed filters |
get_inspiration |
Read-only | Reads one reference, its user notes, latest machine analysis, and revision number (paginates long body text in 16,000-character slices) |
view_inspiration |
Read-only | Returns the existing managed image preview as MCP image content without scraping remote URLs |
list_vocabulary |
Read-only | Paginates saved aesthetic vocabulary suggestions along with their inspiration IDs and supporting notes |
get_ai_status |
Read-only | Reports current provider mode, daily request budget, and recent job queue state (never exposes API keys) |
list_boards |
Read-only | Lists projects in pages. |
load_board |
Read-only | Reads one project by its board ID. |
get_board_assets |
Read-only | Lists references within one project, optionally restricted to a direction or selection. |
view_board_reference |
Read-only | Shows the managed preview for one reference on a specified board. |
save_analysis |
--allow-write |
Appends machine tags, visual description, optional OCR text, and summary using expected-revision checks |
save_vocabulary |
--allow-write |
Saves a suggested vocabulary term, its meaning, and inspiration evidence while keeping revision history |
claim_ai_job |
--allow-write |
Claims one queued task in Agent mode and returns its input and output schema. Analysis leases last up to 300 seconds; search tasks expire 120 seconds after creation |
complete_ai_job |
--allow-write |
Commits machine analysis or bounded search-ranking matches and marks the job complete in one transaction |
fail_ai_job |
--allow-write |
Records task failure with bounded retry backoff (up to 3 attempts) instead of silent infinite loops |
CHOOSE YOUR LEVEL OF AI
Four ways to index and retrieve references in Linger
Linger is built around saving images first without folder trees or forced manual tagging. Color palettes and local Apple Vision OCR are indexed in the background without model setup, while optional model-driven tagging stays user-controlled across the four paths below.
| Path | Default State | Where Processing Runs | Best Used For |
|---|---|---|---|
| Built-in local indexing & Recall | Always on | 100% local on your Mac (SQLite + Apple Vision OCR) | Automatic color palettes, image OCR text, saved-text search, source links, and optional Feeling notes |
| Optional local visual recall (DigUp) | Off by default | 100% local on Apple Silicon (~865 MB DigUp runtime folder) | Adding pixel similarity alongside machine facets for Recall similar and canvas exploration |
| Connected model (Ollama, BYOK, Codex) | Off by default | Local Ollama or your chosen API (OpenRouter, Gemini, OpenAI, Anthropic, Codex, custom endpoint) | Enabling Automatically analyze new saves to generate machine tags, summaries, and aesthetic facets without manual tagging |
| External Agent via Local MCP | Off by default | Local stdio bridge to Codex, Claude, or your active MCP client | Letting a desktop agent inspect authorized previews, write versioned machine analysis/facets, and assist direction research |
Need help configuring saved-text filters or optional on-device visual recall first? Read our Recall setup guide.
PRACTICAL SETUP
Connect Codex, Claude Code, or a desktop MCP client
Linger’s desktop app (macOS 14+, Apple Silicon) can copy the exact executable path, arguments, and library settings for your installed build so you do not have to guess binary paths. You can also export any assembled Project Canvas directly from the app as PDF, SVG / Figma, Copy SVG, or DESIGN.md alongside your MCP workflow.
- Initialize your local library first by opening Linger on Mac and confirming your managed library folder is set up (inspectable anytime via Reveal in Finder).
- Copy the MCP config from Settings under Settings → Recall & AI → Model connection, select External MCP, and click Copy MCP Configuration (removing
--allow-writeif you want read-only access). - Register the server in your client using the Codex or Claude Code commands below for standard
/Applications/Linger.appinstallations, or paste themcpServersJSON block into Claude Desktop or Cursor (updating custom library environment paths if needed, and adding--allow-writeonly when you want the agent to save machine tags and facets). - Verify tool discovery by reloading your agent session and confirming 10 tools in read-only mode or 15 tools with
--allow-write. - Run a scoped first workflow by calling
get_library_summaryor listing one filter slice, inspecting a preview withview_inspiration, and letting the agent generate machine tags and aesthetic facets stored separately from any personal Feeling notes.
# Codex CLI
codex mcp add linger -- /Applications/Linger.app/Contents/MacOS/linger-service --mcp
codex mcp get linger --json
# Claude Code CLI
claude mcp add --transport stdio linger -- /Applications/Linger.app/Contents/MacOS/linger-service --mcp
{
"mcpServers": {
"linger": {
"command": "/Applications/Linger.app/Contents/MacOS/linger-service",
"args": ["--mcp"]
}
}
}
Testing on an isolated library stays safe because developers can point the server at a disposable copy with LINGER_APP_DATA_DIR and LINGER_LIBRARY_ROOT inside the JSON env block so experiments never touch a personal library.
MAKER’S NOTES
Why we designed Linger’s MCP server this way
Our philosophy is simple—users should never be forced to sort folders or type tags by hand before saving an image, yet they should also keep full control over which model runs and how machine analysis relates to personal notes.
- Why machine tags and facets live separately from optional Feeling notes. Optional machine analysis supports deeper Recall. Connect Ollama or your own model and enable automatic analysis to add lighting, composition, color strategy, medium, and subject cues on import. An external MCP agent can process the queue while it is running. In our 80-query retrieval benchmark testing partial-memory queries across saved design references (Finding an image you can almost remember), letting verbose generated text outrank exact personal clues knocked one target from #1 down to #13. Storing machine facets cleanly in their own layer lets automation help Recall while keeping human clues intact.
- Why vocabulary stays evidenced suggestions. When an agent spots five posters sharing muted sage paper and wide margins, tying suggestions to concrete inspiration IDs lets you review or ignore patterns without polluting your library.
- Why Linger supports Ollama, BYOK, and local MCP without credit markups. Many designers already run Ollama locally or pay for Claude, ChatGPT/Codex, or OpenRouter accounts. Shipping Linger as a one-time Mac app with local stdio MCP puts automatic model tagging completely under your control.
Comparing Linger against other local Mac reference tools before trying this workflow? See our Eagle alternatives for Mac comparison, read our local-first storage architecture guide, or explore why we built Linger as a native AppKit + Rust Mac app.
FREQUENTLY ASKED QUESTIONS
Frequently asked questions about Linger MCP & BYOK
Does Linger send my design references to AI automatically?
No. Model connections and external agents are off by default in Linger. Out of the box, color palettes, Apple Vision OCR, and saved-text search run locally without enabling any AI provider or MCP client.
Does local stdio MCP mean AI image analysis runs offline on my Mac?
Not unless your chosen client points to a local model. Local stdio means the MCP server talks locally with your desktop agent over standard input and output without opening an HTTP port. When that agent inspects an image preview, your client forwards the preview to whichever local or cloud model you configured, so only authorize references suitable for that provider.
Can an MCP agent delete my images or overwrite my personal notes and tags?
No. Linger's MCP server exposes no delete tool, no raw SQL access, and no arbitrary file read or write interface. It starts read-only by default. Even with --allow-write enabled, machine tags and aesthetic facets are appended as separate versioned revisions and never overwrite your original files, titles, or optional personal Feeling notes.
What is the difference between read-only mode and --allow-write?
Read-only mode is the default and exposes 10 tools for summarizing the library, listing inspirations, reading text metadata, viewing image previews, listing vocabulary suggestions, inspecting project boards and their references, and checking AI status. Passing --allow-write unlocks 5 additional tools so an agent can save versioned machine analysis, save evidenced vocabulary suggestions, and claim or finish queued AI jobs.
Does Linger charge an AI subscription or token markup for MCP and BYOK?
No. Linger is a one-time Mac license ($39 Personal or $79 Lifetime). You can run free local Ollama models, connect your own Codex login or API keys (OpenRouter, Gemini, OpenAI, Anthropic, or custom OpenAI-compatible endpoints stored in macOS Keychain), or attach an external MCP agent directly and pay only your chosen provider if applicable.
Does the desktop app have to stay open while an external MCP agent runs?
No. Once your Linger managed library has been initialized, the stdio MCP server can run standalone using the same SQLite database and cross-process file lock without requiring the Linger window to stay open. However, an external MCP connection is not a background daemon—it only works while your chosen agent is actively executing tools.