Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

LegalContext MCP server

by protomated/legal-context-ceMPL-2.0 licenceAudited 8 Oct 2026 · source 2bf0b61da485

npm @protomated/legal-context 1.0.0stdio★ 29
!CAUTIONGrade C · 77/100 · 8 Oct 2026 · 2bf0b61
29GitHub stars

Is it safe? With care — CAUTION, grade C (77/100). It exposes 11 tools: 11 read, 0 write and 0 destructive. The audit recorded 19 findings (0 critical, 0 high, 8 medium, 11 low). Maintainer's description: LegalContext is an open-source Model Context Protocol (MCP) server that creates a secure, standardized bridge between law firms' document management systems (specifically Clio) and AI assistants (starting with Claude Desktop)

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “LegalContext MCP server (protomated/legal-context-ce)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/protomated/legalcontext-1

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score77/100!CAUTION C
0 critical0 high8 medium11 low0 info

19 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemNone observedNothing seen in the source
  • NetworkDeclared9 observations
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 3 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 14 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 2 findings
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner protomatedOrganizationAccount type recorded when we read the repository.
  • PackagePublished on npm@protomated/legal-context at version 1.0.0
  • LicenceMPL-2.0From the repository, as read at the audited commit.
  • Last push5 months agoActivity of the repository when we read it.
  • Source commit read2bf0b61da485The audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory11 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (19)

Sorted by severity

MEDIUMInformation disclosuredisclose.log_secret · setup.ts:275
F-12 Information disclosureCWE-209 · CWE-532Layer L1
console.log(`4. Copy the Client ID and Client Secret to your .env file`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · src/clio/apiClient.ts:140
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.debug(`Loaded tokens with access token: ${this.tokens.access_token ? '****' + this.tokens.access_token.substring(this.tokens.access_token.length - 4) : 'Missing'}`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · src/clio/apiClient.ts:141
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.debug(`Token created at: ${this.tokens.created_at ? new Date(this.tokens.created_at * 1000).toISOString() : 'Unknown'}`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · src/clio/apiClient.ts:142
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.debug(`Has refresh token: ${this.tokens.refresh_token ? 'Yes' : 'No'}`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · src/clio/authStatus.ts:32
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.debug(`Token expires in: ${tokens.expires_in ? tokens.expires_in : 'unknown'} seconds`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · .env.example:16
F-04 Network egressCWE-200 · CWE-319Layer L1
CLIO_REDIRECT_URI=http://127.0.0.1:3001/clio/auth/callback
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · install.sh:74
F-04 Network egressCWE-200 · CWE-319Layer L1
"CLIO_REDIRECT_URI:http://127.0.0.1:3001/clio/auth/callback:OAuth callback URL (must match Clio settings)"
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · install.sh:187
F-04 Network egressCWE-200 · CWE-319Layer L1
echo -e "3. Set the redirect URI to exactly: ${CYAN}${CLIO_REDIRECT_URI:-http://127.0.0.1:3001/clio/auth/callback}${NC}"
Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .aidigestignore
F-13 Inventory / provenanceCWE-1104Layer L0
.aidigestignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .aiignore
F-13 Inventory / provenanceCWE-1104Layer L0
.aiignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .releaserc.json
F-13 Inventory / provenanceCWE-1104Layer L0
.releaserc.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · src/documents/documentIndexer.ts:362
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
const hash = crypto.createHash('md5');
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/documents/documentProcessor.ts:192
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return crypto.createHash('md5').update(text).digest('hex');
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/documents/documentProcessor.ts:268
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
const contentHash = crypto.createHash('md5').update(documentBuffer).digest('hex');
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:176
F-04 Network egressCWE-200 · CWE-319Layer L1
"CLIO_REDIRECT_URI": "http://127.0.0.1:3001/clio/auth/callback",
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:222
F-04 Network egressCWE-200 · CWE-319Layer L1
- **Redirect URI**: `http://127.0.0.1:3001/clio/auth/callback`
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@lancedb/lancedb, @modelcontextprotocol/sdk, @node-rs/argon2, @xenova/transformers, apache-arrow, dotenv, langchain, node-cron
Why
18 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · README.md:58
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **Clio**: A Clio account with API access and registered application credentials
Why
asks the agent to read credentials
Fix
—
LOWSupply chainprompt.pipe_to_shell · README.md:107
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -fsSL https://bun.sh/install | bash
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

11 declared in source · 0 destructive

11 read0 write0 destructive
ToolRiskWhat it does
case_law_searchreadSearches for relevant case law and legal precedents matching specified criteria with jurisdiction and date filters.
contract_risk_analysisreadAnalyzes legal contracts to identify potential risks, liabilities, and non-standard clauses with severity ratings.
document_contentreadRetrieves and displays the full content of a legal document with statistics and metadata summary.
document_metadatareadRetrieves comprehensive metadata information about a specific legal document.
document_searchreadSearches through the firm\
document_summarizationreadCreates concise summaries of legal documents highlighting key provisions, terms, and important details.
index_documentreadIndexes a document for semantic search by processing its content and storing embeddings.
legal_queryreadNo description in the source
precedent_analysisreadProvides detailed analysis of legal precedents with success rates of arguments and similarity to other cases.
rag_queryreadNo description in the source
semantic_document_searchreadPerforms semantic vector search across indexed documents to find content similar to the query, regardless of exact keyword matches.

Install

Package version 1.0.0 · audited commit 2bf0b61

Read the findings first. The most severe is Information disclosure (medium) at setup.ts.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 1.0.0. The audit covers commit 2bf0b61 only.

claude mcp add legal-context --env CLIO_CLIENT_SECRET=${CLIO_CLIENT_SECRET} --env SECRET_KEY=${SECRET_KEY} -- npx -y @protomated/[email protected]

The command pins the package version recorded in the source (1.0.0); the audit covers commit 2bf0b61da485. Transport: stdio. Reads these environment variables: CLIO_CLIENT_SECRET, SECRET_KEY. Give it the narrowest token it needs.

Audit history

  1. !CAUTION C 77 / 100

    First audit · 2bf0b61da485

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION CMODELSATLASCAUTION · C
[![ModelsAtlas: CAUTION C](https://modelsatlas.com/mcp/protomated/legalcontext-1/badge.svg)](https://modelsatlas.com/mcp/protomated/legalcontext-1/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about LegalContext MCP server

What is the LegalContext MCP server?
LegalContext is an open-source Model Context Protocol (MCP) server that creates a secure, standardized bridge between law firms' document management systems (specifically Clio) and AI assistants (starting with Claude Desktop)
What tools does LegalContext expose?
11 in total: 11 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is LegalContext safe to connect to an agent?
With care. The audit graded it C (77/100) and found 19 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does LegalContext need?
It reads CLIO_CLIENT_SECRET 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 LegalContext run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @protomated/legal-context at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (2bf0b61da485), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

  • protomated/legal-context-ce on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 2bf0b61da485Observed · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.