Atlas / MCP servers / ryanjdillon / corpus

corpusBLOCK

mcp/ryanjdillon/corpus

Semantic search and structured query over your own content

Verdict
BLOCK
Grade
D
Trust score
65 /100
Exposed tools
6 6r · 0w · 0d
Transport
streamable-http
License
MPL-2.0
Stars
0
01

Overview

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

Semantic search and structured query over your own content.

corpus is a knowledge base for your own content. Point it at markdown, documents, or structured records — corpus classifies each item, embeds it through an OpenAI-compatible endpoint, and stores the vectors alongside structured metadata in Postgres/pgvector. Then query it by meaning or by fact.

Everything starts from a raw markdown layer that keeps each item verbatim. From it, corpus derives a configurable set of storage tiers: each tier declares its projection, the tool that exposes it, and an access rule naming who may read it. A sensitive tier serves raw plus enrichment to callers you trust with the originals; a one-way sanitize projects only cloud-safe fields into a tier a lower-trust caller — a cloud-model agent — may query. Add as many tiers as your trust boundaries need; access is a property of each tier, not bolted on afterward.

The embedding endpoint is any OpenAI-compatible API. Run a local model and nothing leaves your network; use a hosted provider and the pi

Read from source at commit cb024ec05ea5OBSERVED · 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.

claude-code
claude mcp add corpus -- uvx corpus
claude-desktop
{
  "mcpServers": {
    "corpus": {
      "command": "uvx",
      "args": [
        "corpus"
      ]
    }
  }
}
03

Exposed tools (6)

6 read · 0 write · 0 destructive.

ToolRiskDescription
corpus_getreadFetch one indexed document by id: full body content and all metadata.
corpus_statsreadIndex totals and per-label document counts.
index_by_domainreadRecent sanitized items in a life-area domain.
index_due_soonreadTime-sensitive items, or items carrying a deadline.
index_statsreadCounts of sanitized items by domain and suggested disposition.
index_summaryreadThe sanitized summary + priority signal for one message id.
04

Trust audit

BLOCKgrade D · trust 65/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 surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (7 observation(s))
Shell
declared (1 observation(s))
Dependencies
pinned
Secrets in source
found

Findings (18)

CRITICALHard-coded secrets · secret.private_key · CWE-798, CWE-321
scripts/gen_enrich_fixtures.py:106
["-----BEGIN OPENSSH PRIVATE KEY-----", *lines, "-----END OPENSSH PRIVATE KEY-----"]
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/eval_enrich.py:1329
lines = [f"## Enrichment eval ({', '.join(names)})", ""]
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/conftest.py:126
dsn = f"postgresql://postgres:[email protected]:{port}/ai"
MEDIUMHard-coded secrets · secret.github · CWE-798, CWE-321
tests/corpus/test_leaks.py:35
"ghp_0123456789abcdefghijklmnopqrstuvwxyz and "
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
tests/corpus/test_egress_envoy.py:72
secret = "-----BEGIN OPENSSH PRIVATE KEY-----\nAAAA\n-----END OPENSSH PRIVATE KEY-----"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
tests/corpus/test_egress_policy.py:16
"-----BEGIN OPENSSH PRIVATE KEY-----\n"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
tests/corpus/test_leaks.py:27
"-----BEGIN OPENSSH PRIVATE KEY-----\nQUJD\n-----END OPENSSH PRIVATE KEY-----"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
tests/corpus/test_leaks.py:97
block = "-----BEGIN OPENSSH PRIVATE KEY-----\nQUJDREVG\n-----END OPENSSH PRIVATE KEY-----"
MEDIUMAuth / authz · mcp.remote_no_auth · CWE-287, CWE-862
streamable-http
Why it matters. a network transport with no auth environment variable found
Fix. require a token
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/corpus/enrichment.py:259
SCHEMA_VERSION = hashlib.sha1(msgspec.json.encode(json_schema())).hexdigest()[:12]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/corpus/scan.py:44
return hashlib.sha1(repr(parts).encode()).hexdigest()[:12]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/corpus/vault.py:33
stem = uid if _SAFE_UID.fullmatch(uid or "") else hashlib.sha1(doc_id.encode()).hexdigest()[:24]
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/conftest.py:235
monkeypatch.setattr(settings, "openai_api_base", f"http://127.0.0.1:{port}/v1")
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/conftest.py:239
yield f"http://127.0.0.1:{port}/v1"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/corpus/test_eval_enrich.py:793
("http://localhost:8080/v1", True), ("http://127.0.0.1:8000/v1", True),
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/corpus/test_ingest.py:128
monkeypatch.setattr(settings, "openai_api_base", f"http://127.0.0.1:{port}/v1")
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/corpus/test_ingest.py:213
monkeypatch.setattr(settings, "openai_api_base", f"http://127.0.0.1:{port}/v1")
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
docs/fetchers/imap.md:38
access revokes when that password is rotated. Configure one fetcher name per
Why it matters. asks the agent to read credentials

Gates applied: critical_finding, no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha cb024ec05ea5full audit observations/trust-audit/mcp-server/ryanjdillon__corpus.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-11cb024ec05ea5BLOCKD65first audit
06

Questions

What is the corpus MCP server?

Semantic search and structured query over your own content

What tools does corpus expose?

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

Is corpus safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (65/100) and found 2 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 corpus need?

No credential environment variables were found in its source, so it appears to need none.

How does corpus run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as corpus.

How current is this page?

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

Advertisement