MCP server · Audited from source
LegalContext MCP server
by protomated/legal-context-ceMPL-2.0 licenceAudited 8 Oct 2026 · source 2bf0b61da485
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)
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
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 14 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 2 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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-contextat 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
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
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
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
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
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
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
"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
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
- —
LOWInsecure cryptocrypto.weak_hash · src/documents/documentIndexer.ts:362
const hash = crypto.createHash('md5');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/documents/documentProcessor.ts:192
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
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
"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
- **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
@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
- **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
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
| Tool | Risk | What it does |
|---|---|---|
case_law_search | read | Searches for relevant case law and legal precedents matching specified criteria with jurisdiction and date filters. |
contract_risk_analysis | read | Analyzes legal contracts to identify potential risks, liabilities, and non-standard clauses with severity ratings. |
document_content | read | Retrieves and displays the full content of a legal document with statistics and metadata summary. |
document_metadata | read | Retrieves comprehensive metadata information about a specific legal document. |
document_search | read | Searches through the firm\ |
document_summarization | read | Creates concise summaries of legal documents highlighting key provisions, terms, and important details. |
index_document | read | Indexes a document for semantic search by processing its content and storing embeddings. |
legal_query | read | No description in the source |
precedent_analysis | read | Provides detailed analysis of legal precedents with success rates of arguments and similarity to other cases. |
rag_query | read | No description in the source |
semantic_document_search | read | Performs 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]{
"mcpServers": {
"legal-context": {
"command": "npx",
"args": [
"-y",
"@protomated/[email protected]"
],
"env": {
"CLIO_CLIENT_SECRET": "${CLIO_CLIENT_SECRET}",
"SECRET_KEY": "${SECRET_KEY}"
}
}
}
}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
- !CAUTION C 77 / 100
First audit ·
2bf0b61da485
README badge
For maintainers · updates on every re-audit
[](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?
What tools does LegalContext expose?
Is LegalContext safe to connect to an agent?
What credentials does LegalContext need?
How does LegalContext run?
How current is this page?
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.
- What is the LegalContext MCP server?
- What tools does LegalContext expose?
- Is LegalContext safe to connect to an agent?