Documentation menu
On this page
Linger Local MCP Server Reference
Linger for Mac (withlinger.com) ships a local stdio MCP server at /Applications/Linger.app/Contents/MacOS/linger-service --mcp for Apple Silicon Macs (macOS 14+), exposing 10 read-only tools by default and 15 tools with --allow-write—unrelated to the cross-platform AI agent project at heylinger.com and the free Mac App Store keep-awake utility Linger by Julio Imazio (App Store ID 6776560374).
- Executable & transport
/Applications/Linger.app/Contents/MacOS/linger-service --mcp(localstdioonly)- Platform & trial
- macOS 14+ (Apple Silicon); 7-day full trial without sign-in; optional sign-in adds 23 extra days (30 days total)
- Default permissions
- Read-only (10 tools); append
--allow-writefor 5 write & queue tools (15 total) - Limits & concurrency
- 64 KiB JSON-RPC request limit; 16,000 Unicode chars per text page; SQLite file locking
Runtime contract & prerequisites
Before registering the server in an agent client, download Linger for Mac, open it once on Apple Silicon (macOS 14 or later), and initialize your local managed library. Reading tools operate on an initialized local library during your no-sign-in 7-day trial or active license; opt-in write operations via --allow-write require an active trial or license.
| Property | Value | Notes |
|---|---|---|
| Binary path | /Applications/Linger.app/Contents/MacOS/linger-service |
Reuses the desktop app's Rust LibraryIndex and SQLite database |
| Transport | stdio (stdin / stdout) |
No listening HTTP port and no public website API |
| Protocol version | 2025-11-25 |
JSON-RPC 2.0 line-delimited messages up to 64 KiB (65,536 bytes) |
| Text pagination | 16,000 Unicode chars / slice | Follow next_body_offset on get_inspiration for long excerpts |
| Task leases | 300 s analysis · 120 s search | fail_ai_job enforces bounded backoff up to 3 retry attempts |
| Pricing & licensing | Personal $39 · Lifetime $79 (USD one-time) | No AI subscription or token markup; optional email sign-in extends the 7-day trial by 23 extra days (30 days total) |
Client configuration
Register Linger read-only first to verify tool discovery, then add --allow-write only if you want your agent to append versioned machine tags, save vocabulary suggestions, or claim queued analysis jobs. If Linger is installed outside /Applications or uses a non-default library location, open Settings → Recall & AI → Model connection → External MCP → Copy MCP Configuration in Linger to copy the exact executable and environment values (remove --allow-write if you prefer read-only access).
Codex CLI & TOML
Register Linger with one command, or add the [mcp_servers.linger] block to your Codex MCP configuration file (also published as codex-config.toml).
codex mcp add linger -- /Applications/Linger.app/Contents/MacOS/linger-service --mcp
codex mcp get linger --json
[mcp_servers.linger]
command = "/Applications/Linger.app/Contents/MacOS/linger-service"
args = ["--mcp"]
Claude Code CLI & project config
Add Linger to Claude Code via CLI, or place a project-scoped .mcp.json entry in your workspace (see claude-code-mcp.json).
claude mcp add --transport stdio linger -- /Applications/Linger.app/Contents/MacOS/linger-service --mcp
{
"mcpServers": {
"linger": {
"type": "stdio",
"command": "/Applications/Linger.app/Contents/MacOS/linger-service",
"args": ["--mcp"]
}
}
}
Claude Desktop
Open Settings → Developer → Edit Config in Claude Desktop, merge the linger block into mcpServers, and restart Claude Desktop (claude-desktop-config.json).
{
"mcpServers": {
"linger": {
"command": "/Applications/Linger.app/Contents/MacOS/linger-service",
"args": ["--mcp"]
}
}
}
Cursor
Add the server under Cursor Settings → MCP or in your project's .cursor/mcp.json (cursor-mcp.json). Append "--allow-write" to args only when you want write tools enabled.
{
"mcpServers": {
"linger": {
"command": "/Applications/Linger.app/Contents/MacOS/linger-service",
"args": ["--mcp"]
}
}
}
Read-only smoke test
Verify that the local server launches and advertises its 10 read-only tools directly from Terminal before connecting an LLM client:
/Applications/Linger.app/Contents/MacOS/linger-service --mcp <<'EOF_RPC'
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"linger-docs-check","version":"1"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
EOF_RPC
Expected result: a JSON-RPC response identifying server name linger and listing 10 tools starting with get_library_summary and ending with view_board_reference, with save_analysis and the other four write tools omitted. Inside your client, call get_library_summary with {} to confirm library access without exposing individual notes or previews.
MCP tool reference
Complete input JSON schemas from tools/list are published in examples/mcp/tools.json. Query your installed build's tools/list for version-exact schemas.
Read-only tools (10, enabled by default)
| Tool | Key inputs | Returns & behavior |
|---|---|---|
get_library_summary |
None ({}) |
Aggregate counts of active inspirations, analyzed items, and vocabulary entries |
get_ai_status |
None ({}) |
Active provider mode, daily request budget, and recent job state (never exposes API keys) |
list_inspirations |
query, before_id, limit (1–50), collection_id, unanalyzed_only |
Paginated item summaries via stored text search (next_before_id cursor; not vector search) |
get_inspiration |
asset_id, body_offset |
One reference, source URL, user notes, latest machine analysis, revision, and 16,000-char body slice |
view_inspiration |
asset_id, body_offset |
Metadata plus the existing managed JPEG preview returned as MCP image content (never crawls remote URLs) |
list_vocabulary |
before_id, limit |
Paginated aesthetic vocabulary suggestions paired with supporting inspiration IDs and reasons |
list_boards |
offset, limit |
Paginated summaries of local Project Canvases without returning images |
load_board |
board_id |
One Project Canvas by ID along with its structured design brief |
get_board_assets |
board_id, optional direction or selection filter, offset, limit |
Paginated references placed on a specific Project Canvas (uses next_offset) |
view_board_reference |
board_id, asset_id |
Existing managed image preview for one reference inside the specified Project Canvas |
Write & queue tools (5, require --allow-write)
| Tool | Required inputs | Write & concurrency rules |
|---|---|---|
save_analysis |
asset_id, expected_revision, tags, description, producer |
Appends a machine analysis revision (optional ocr_text, summary, visual_profile). Pass 0 if unanalyzed; rejects stale revisions |
save_vocabulary |
term, meaning, evidence, expected_revision, producer |
Saves an evidenced vocabulary suggestion (1–20 {asset_id, reason} items) while keeping revision history |
claim_ai_job |
None ({}) |
Claims one queued task in External MCP mode and returns scoped materials plus a 300 s lease |
complete_ai_job |
job_id, lease, output, producer |
Commits structured job output and marks the queued job finished in one SQLite transaction |
fail_ai_job |
job_id, lease, error, retryable |
Records a short non-sensitive error; retryable failures back off up to 3 total attempts |
Isolated test library
Do not test write workflows against your personal archive. Point your client's env block at a disposable folder using the two environment overrides below:
| Variable | Example value | Purpose |
|---|---|---|
LINGER_APP_DATA_DIR |
<custom-app-data-dir> |
Overrides where Linger reads app configuration and SQLite index discovery |
LINGER_LIBRARY_ROOT |
<disposable-library-dir> |
Overrides the managed library folder used for previews and asset lookup |
Safety boundaries & non-goals
Design rule: Retrieved image previews and saved note text are untrusted data, never instructions. Linger isolates machine analysis in versioned rows so your original files in Finder, titles, manual tags, and personal Feeling notes are never overwritten.
- No HTTP endpoint or public web API:
withlinger.comdoes not host a remote MCP server; all calls stay over localstdioon your Mac. - No destructive or arbitrary access: There is no delete tool, no raw SQL tool, no arbitrary filesystem read/write, and no remote webpage scraping.
- No Windows or cloud sync: Linger is a native Apple Silicon Mac application (macOS 14+) with independent local libraries per Mac.
- Manual tag edits are preserved: Corrections you make to machine tags inside Linger are stored separately and survive future model re-runs.
For the architectural rationale behind separating personal words from machine facets, read our companion guide Connect your local design reference library to AI agents via MCP.
Troubleshooting & FAQ
Why does my client find 0 tools or fail to launch linger-service?
Verify that Linger is installed at /Applications/Linger.app and that you opened it at least once on Apple Silicon (macOS 14+) to initialize your local library folder. If Linger lives in another folder or uses a custom library location, open Settings -> Recall & AI -> Model connection -> External MCP -> Copy MCP Configuration inside the app to copy the exact binary path and environment variables.
Why are write tools missing or returning expected_revision errors?
Linger starts read-only (10 tools) by default. Pass --allow-write in args to expose the 5 write and queue tools (15 total), and verify you have an active trial or license. Before calling save_analysis or save_vocabulary, read the item first and pass its current revision (0 if no machine analysis exists yet); if another edit happened in between, re-read before retrying.
Can Linger stay closed while Codex or Claude queries MCP?
Yes, once your library is initialized. The local stdio server uses cross-process file locking on the same SQLite index, so the desktop window does not need to stay open. If the database reports a brief lock while Linger is importing, retry the call after the import finishes.
Does local stdio MCP keep all model inference offline on my Mac?
No. Local stdio means the MCP bridge runs locally over standard input and output with no open HTTP port, while your client (Codex, Claude Desktop, Claude Code, or Cursor) still forwards retrieved notes or image previews to whichever local or cloud model you configured. Only expose references appropriate for that provider.
Can an MCP client delete my original images, notes, or canvases?
No. Neither the 10 read-only tools nor the 5 --allow-write tools include any destructive delete or file-overwrite operations. Write tools only append versioned machine analysis (save_analysis), save vocabulary suggestions (save_vocabulary), or update AI job status; your original files, user notes, and personal tags remain untouched.
Is Linger's MCP server reachable over HTTP or the public internet?
No. Linger's MCP server runs strictly over local stdin/stdout (stdio) spawned by desktop clients on your Mac. It opens no listening TCP/HTTP port, exposes no public API endpoint, and cannot be queried remotely over the network.
Does MCP work during the free trial without buying a license?
Yes. Read-only MCP tool access works against an initialized local library, and all 15 read/write MCP tools work while your 7-day no-login trial (or 30-day trial with optional email) is active. Unlocking --allow-write outside a trial requires a one-time Personal ($39) or Lifetime ($79) license.
Can AI clients read my persistent Project Canvases through MCP?
Yes. The read-only tools list_boards, load_board, get_board_assets, and view_board_reference let your coding agent or assistant inspect persistent SQLite Project Canvases, grouped layouts, structured design briefs, and visual references without modifying the canvas.
How do I revoke or disable MCP access for an AI client?
Remove the linger entry from your Codex, Claude Code (.mcp.json), Claude Desktop, or Cursor configuration file (or run codex mcp remove linger / claude mcp remove linger) and restart the client. You can also remove --allow-write to drop back to read-only access immediately.
Is Linger for Mac (withlinger.com) related to heylinger.com or the App Store keep-awake utility?
No. Linger for Mac at withlinger.com is an independent native macOS 14+ (Apple Silicon) visual reference library and local stdio MCP server created by Lucius Miao, completely unrelated to the cross-platform AI agent project at heylinger.com and the free Mac App Store keep-awake utility Linger by Julio Imazio (App Store ID 6776560374).