Linger

Linger’s local, read-only MCP server lets Codex and Claude browse saved design references and notes on an Apple Silicon Mac.

Documentation

Canonical: https://withlinger.com/resources/mcp-design-reference-library/

Local MCP & BYOK AI Workflow

Connect your local design reference library to AI agents via MCP

Linger ships a local stdio Model Context Protocol (MCP) server for macOS so desktop AI agents—like Codex or Claude—can inspect authorized visual references and write separate machine tags without cloud lock-in, subscriptions, or overwriting your own notes.

By Lucius Miao · Updated November 24, 2026 · 11 min read ·

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.

Looking for copyable Codex, Claude Code, Claude Desktop, or Cursor snippets, smoke-test commands, and full schema references? Open the Linger Local MCP Server Reference or inspect our public MCP examples on GitHub.

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.

Core architectural and privacy boundaries of Linger’s local MCP server

BoundaryBehavior in LingerWhy it matters
TransportLocal stdio only; no listening HTTP port and no public website APIBuilt for desktop agents on your Mac, not remote multi-tenant cloud access
Default permissionsRead-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 inspectionview_inspiration returns existing managed JPEG previews as MCP image contentMultimodal agents actually see the visual reference rather than guessing from a filename
Metadata isolationMachine tags, descriptions, OCR text, and summaries are stored as versioned revisionsPersonal notes, titles, user tags, and original files are never overwritten; manual edits to machine tags are preserved across re-runs
Vocabulary suggestionsStored as evidenced suggestions linked to specific inspiration IDsAgents propose aesthetic vocabulary with proof rather than declaring your permanent taste automatically
Prohibited actionsNo arbitrary path read/write, no raw SQL, no delete tool, no bulk overwrite, no remote URL scrapingPrevents accidental archive destruction or uncontrolled crawling
Provider disclosureImages are forwarded by your agent client to whichever model provider you configuredYour client and model determine where inference runs. Choose which references to share

TOOL REFERENCE

MCP tools in Linger 0.8.7

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.

Tools exposed by Linger’s local stdio MCP server

ToolModeWhat it does
get_library_summaryRead-onlyReturns counts of active inspirations, analyzed items, and vocabulary entries
list_inspirationsRead-onlyPaginates active references by ID (up to 50 per page) with text, collection, or unanalyzed filters
get_inspirationRead-onlyReads one reference, its user notes, latest machine analysis, and revision number (paginates long body text in 16,000-character slices)
view_inspirationRead-onlyReturns the existing managed image preview as MCP image content without scraping remote URLs
list_vocabularyRead-onlyPaginates saved aesthetic vocabulary suggestions along with their inspiration IDs and supporting notes
get_ai_statusRead-onlyReports current provider mode, daily request budget, and recent job queue state (never exposes API keys)
list_boardsRead-onlyLists projects in pages.
load_boardRead-onlyReads one project by its board ID.
get_board_assetsRead-onlyLists references within one project, optionally restricted to a direction or selection.
view_board_referenceRead-onlyShows the managed preview for one reference on a specified board.
save_analysis--allow-writeAppends machine tags, visual description, optional OCR text, and summary using expected-revision checks
save_vocabulary--allow-writeSaves a suggested vocabulary term, its meaning, and inspiration evidence while keeping revision history
claim_ai_job--allow-writeClaims 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-writeCommits machine analysis or bounded search-ranking matches and marks the job complete in one transaction
fail_ai_job--allow-writeRecords 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.

How built-in local indexing, DigUp visual recall, connected models, and MCP compare

PathDefault StateWhere Processing RunsBest Used For
Built-in local indexing & RecallAlways on100% 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 default100% 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 defaultLocal 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 MCPOff by defaultLocal stdio bridge to Codex, Claude, or your active MCP clientLetting 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.

  1. 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).
  2. Copy the MCP config from Settings under Settings → Recall & AI → Model connection, select External MCP, and click Copy MCP Configuration (removing --allow-write if you want read-only access).
  3. Register the server in your client using the Codex or Claude Code commands below for standard /Applications/Linger.app installations, or paste the mcpServers JSON block into Claude Desktop or Cursor (updating custom library environment paths if needed, and adding --allow-write only when you want the agent to save machine tags and facets).
  4. Verify tool discovery by reloading your agent session and confirming 10 tools in read-only mode or 15 tools with --allow-write.
  5. Run a scoped first workflow by calling get_library_summary or listing one filter slice, inspecting a preview with view_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. For Cursor configs, smoke tests, and per-tool parameter details, see the MCP server documentation.

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.

Written by Lucius Miao

Creator of Linger

Lucius Miao builds Linger, a native local-first design reference library for Mac, and writes about retrieval, source provenance, and human-controlled AI workflows.

GitHub · LinkedIn · X · About Linger

For macOS 14+ on Apple Silicon. One-time regular pricing is $39 Personal (2 Macs, 1 year of updates) or $79 Lifetime (4 Macs, all future updates). Start a 7-day full desktop trial without signing in (optional email sign-in adds 23 extra days for 30 days total), or compare license details.