Atlas / MCP servers / r0shi / harborclerk

harborclerkBLOCK

mcp/r0shi/harborclerk

An MCP server that lets AI agents query your document archive instead of uploading it — with OCR, hybrid search, and cited local-AI answers in a private, Mac-native app.

Verdict
BLOCK
Grade
F
Trust score
47 /100
Exposed tools
19 17r · 2w · 0d
Transport
streamable-http
License
MIT
Stars
3
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Private document intelligence with search, citations, and local AI.

Harbor Clerk turns watched folders into a private, searchable document archive.

Harbor Clerk packages a serious local document intelligence stack into a Mac-native app: OCR for scans, hybrid lexical and semantic search, local embeddings and reranking, cited AI answers, and MCP/CLI access for agents. A technical operator could assemble pieces of this from open-source tools; Harbor Clerk makes that power available to small teams without turning document search into an infrastructure project.

It reads your files in place, extracts text (including OCR for scanned documents), splits them into searchable passages, and indexes everything locally so you can search or ask questions across your entire collection. Results always come with clear citations so you can jump straight back to the original document and verify the source.

Everything runs on your machine. No SaaS account. No background sync. No shared tenancy. Your originals never move — Harbor Clerk just reads them where they live.

Harbor Clerk is designed for document-heavy small teams, independent operators, researchers, and privacy-focused individuals. It runs comfortably on a Mac mini or similar hardware and includes cited answers powered by local AI models.

If you want to connect external AI tools, Harbor Clerk exposes an MCP endpoint that allows them to search your knowledge base safely. With the recommended cloud-connector scope, they receive retrieved passages and citations rather than the whole corpus.

Cloud models are supported through scoped MCP/connectors in the

Read from source at commit cc8f021a7a09OBSERVED · 2026-10-11
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add harbor-clerk-frontend --env DOVECOT_TEST_PASSWORD=${DOVECOT_TEST_PASSWORD} --env HARBOR_CLERK_API_KEY=${HARBOR_CLERK_API_KEY} --env HC_API_KEY=${HC_API_KEY} --env HC_PASSWORD=${HC_PASSWORD} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "harbor-clerk-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DOVECOT_TEST_PASSWORD": "${DOVECOT_TEST_PASSWORD}",
        "HARBOR_CLERK_API_KEY": "${HARBOR_CLERK_API_KEY}",
        "HC_API_KEY": "${HC_API_KEY}",
        "HC_PASSWORD": "${HC_PASSWORD}"
      }
    }
  }
}
03

Exposed tools (19)

17 read · 2 write · 0 destructive.

ToolRiskDescription
kb_batch_searchwriteRun multiple search queries in one call (max 5), grouped per query.
kb_corpus_overviewreadSurvey the corpus: doc types, date ranges, sample titles.
kb_document_outlinereadGet a document
kb_documents_by_datereadReturn documents sorted by their effective date.
kb_entity_cooccurrencereadFind which entities appear together in the same documents or chunks.
kb_entity_overviewreadSurvey entities in the corpus (or scoped to a single doc).
kb_entity_searchreadFind documents that mention a specific named entity (person, organization, place).
kb_expand_contextreadRead N chunks immediately before/after a given chunk_id.
kb_find_allreadEnumerate documents matching a query — deduped by document, with
kb_find_relatedreadFind documents related to a given doc_id by semantic overlap.
kb_get_documentreadGet a document
kb_ingest_statusreadInspect a document
kb_list_recentreadList the most recently-added documents in the corpus.
kb_read_documentreadRead the full text of a document by doc_id.
kb_read_passagesreadRead specific passages by chunk_id. Use to verify content before answering.
kb_reprocesswriteRe-run the ingestion pipeline for a specific document. ADMIN-ONLY.
kb_searchreadSearch the knowledge base by topic, keyword, or question. Hybrid FTS + vector retrieval.
kb_system_healthreadCheck HC
kb_verify_identifierreadVerify a document identifier resolves to exactly one document.
04

Trust audit

BLOCKgrade F · trust 47/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (10 observation(s))
Network
declared (11 observation(s))
Shell
declared (2 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/test_corpora/runner/answer_eval.py:335
g = p.add_argument_group("answer-eval (only with --mode answer-eval)")
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/test_corpora/runner/retrieval_eval.py:493
g = parser.add_argument_group("retrieval-eval (only with --mode retrieval-eval)")
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
scripts/test_corpora/runner/rerun_pr_j.py:171
p.add_argument("--insecure", action="store_true", help="Skip TLS verify (self-signed dev cert)")
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
scripts/test_corpora/runner/retrieval_eval.py:558
parser.add_argument("--insecure", action="store_true")
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
scripts/test_corpora/runner/sweep.py:484
p.add_argument("--insecure", action="store_true", help="disable TLS verify (self-signed)")
Why it matters. certificate verification is disabled
Fix. leave verification on
MEDIUMInsecure crypto · crypto.weak_random · CWE-327, CWE-338
frontend-dist/assets/index-CRN-PirB.js:58
*/var j0="popstate";function Hg(i={}){function c(o,h){let{pathname:d,search:g,hash:S}=o.location;return Ks("",{pathname:d,search:g,hash:S},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}f
MEDIUMObfuscation / stealth · obf.homoglyph · CWE-506, CWE-94
scripts/test_corpora/runner/retrieval_eval.py:475
"DIFF vs %s  n_common=%d  Δrecall@10=%+.3f  Δmrr=%+.3f  regressions=%d  improvements=%d",
MEDIUMObfuscation / stealth · obf.zero_width · CWE-506, CWE-94
src/harbor_clerk/llm/summarize.py:125
_INVISIBLE_CHARS = ""
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
scripts/test_corpora/tests/test_client.py:1136
source.token = "t1-rotated-by-the-rest-client"  # the REST client re-logged in on its own 401
LOWInventory / provenance · inv.symlink · CWE-1104
CLAUDE.md
CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
alembic/CLAUDE.md
alembic/CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
frontend/CLAUDE.md
frontend/CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
macos/CLAUDE.md
macos/CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
src/harbor_clerk/CLAUDE.md
src/harbor_clerk/CLAUDE.md
Why it matters. link not followed
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
tests/test_entitlements_are_unrestricted.py:74
"A Developer ID app carrying these is killed at exec (exit 137) and every "
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
frontend/src/components/CliAccessCard.tsx:3
import skillMarkdown from '../../../skills/harbor-clerk/SKILL.md?raw'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
frontend/src/components/queue-tray/CompletedRow.tsx:3
import { stageLabel } from '../../utils/stageLabel'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
frontend/src/components/queue-tray/CompletedRow.tsx:4
import type { CompletedItem } from '../../hooks/useQueueTray'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
frontend/src/components/queue-tray/DocumentRow.tsx:2
import { stageLabel } from '../../utils/stageLabel'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
frontend/src/components/queue-tray/DocumentRow.tsx:3
import { PIPELINE_STAGES, type DocumentQueueItem } from '../../hooks/useQueueTray'
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
acceptance/test_config.py:59
HC_API_BASE="http://127.0.0.1:8100",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
acceptance/test_live_access.py:149
unreachable = run_cli("http://127.0.0.1:9", "hc_" + "0" * 48, "search", "anything", timeout_s=60)
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/superpowers/plans/2026-04-05-watched-folders.md:1567
apiBaseURL: "http://127.0.0.1:\(settings.apiPort)",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/superpowers/plans/2026-05-11-pr-4-launchd-postgres-tika.md:1065
guard let url = URL(string: "http://127.0.0.1:\(AppSettings.shared.tikaPort)/tika") else { return false }
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/superpowers/plans/2026-05-17-embedding-v2-implementation.md:209
monkeypatch.setenv("RERANKER_URL", "http://127.0.0.1:8201")

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha cc8f021a7a09full audit observations/trust-audit/mcp-server/r0shi__harborclerk.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-11cc8f021a7a09BLOCKF47first audit
06

Questions

What is the harborclerk MCP server?

An MCP server that lets AI agents query your document archive instead of uploading it — with OCR, hybrid search, and cited local-AI answers in a private, Mac-native app.

What tools does harborclerk expose?

19 in total: 17 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is harborclerk safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (47/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does harborclerk need?

It reads DOVECOT_TEST_PASSWORD, HARBOR_CLERK_API_KEY, HC_API_KEY, HC_PASSWORD, HF_TOKEN, OPENAI_API_KEY and SECRET_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does harborclerk run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as harbor-clerk-frontend at 0.8.0.

How current is this page?

The grade is for one exact copy of the source (cc8f021a7a09), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement