Atlas / MCP servers / usejunior / Safe Docx

Safe DocxBLOCK

mcp/usejunior/safe-docx

Safe DOCX suite: docx-primitives, docx-comparison, safe-docx MCP server

Verdict
BLOCK
Grade
D
Trust score
61 /100
Exposed tools
—
Transport
stdio
License
Apache-2.0
Stars
46
01

Overview

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

Edit Word and OpenDocument files with coding agents.

[](https://github.com/usejunior/safe-docx/actions/workflows/ci.yml) [](https://app.codecov.io/gh/usejunior/safe-docx) [](https://www.npmjs.com/package/@usejunior/safe-docx) [](https://github.com/UseJunior/safe-docx/blob/main/LICENSE) [](https://github.com/UseJunior/safe-docx/commits/main) [](https://github.com/UseJunior/safe-docx/issues?q=is%3Aissue+is%3Aclosed)

English · Español · 简体中文 · Português · Deutsch

Safe Docx is a local MCP server and CLI for reading, searching, editing, comparing, converting, and saving document files. It preserves DOCX structure and can produce clean or tracked-changes output.

Example

Ask your coding agent:

Edit NDA.docx. Change the governing law from New York to Delaware.
Save a clean copy and a tracked-changes copy. Do not change anything else.

Safe Docx finds the clause, applies the targeted edit, and writes both files for review. The rest of the document stays outside the requested edit.

Follow the complete editing walkthrough.

Comparisons

  • SuperDoc
  • Claude's built-in DOCX editing
  • python-docx
  • [DOCX compatibility matrix](docs/comparisons.md
Read from source at commit 4457f499c9f3OBSERVED · 2026-10-08
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 (npm)
claude mcp add safe-docx -- npx -y @usejunior/[email protected]
03

Trust audit

BLOCKgrade D · trust 61/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 (9 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHObfuscation / stealth · obf.rtl_override · CWE-506, CWE-94
packages/docx-core/src/primitives/content_fingerprint.ts:27
const INVISIBLE_FORMAT_CHARS_RE = /[--︀-️]/g;
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/oracle/word/bridge.mjs:33
const url = new URL(request.url, 'https://127.0.0.1');
MEDIUMObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
scripts/oracle/word/serve-addin.mjs:13
const icon = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAAAKVJREFUeF7t0AEJAAAMBKFD/Xv7GZiwgSTX3Qe8VcQqYhWxilhFrCJWEauIVcQqYhWxilhFrCJWEauIVcQqYhWxilhFrCJWEauIVcQqYhWxil
MEDIUMObfuscation / stealth · obf.homoglyph · CWE-506, CWE-94
scripts/report_package_coverage.mjs:109
'ΔLines'.padStart(9),
MEDIUMObfuscation / stealth · obf.homoglyph · CWE-506, CWE-94
scripts/report_package_coverage.mjs:110
'ΔBranches'.padStart(11),
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
scripts/check_advanced_revision_classification.test.mjs:64
assert.equal(hasExecutableEvidenceTest('const token = "ADV-CONTENT-RESOLUTION-01";', 'stuffed.ts', 'ADV-CONTENT-RESOLUTION-01'), false);
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
scripts/oracle/word/stage.test.mjs:27
const name = stagedFileName({ port: 43123, jobId: '657d7133-f504-45cf-aef4-a04394615230', token: 'Mkt4qFNf8wjhgbUU_NnF9at63wEdfGlxy29853mcJZo', originalFileName: 'original file.docx' });
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
scripts/oracle/word/taskpane-core.test.mjs:14
assert.deepEqual(connection, { bridge: 'https://localhost:43123', jobId: '657d7133-f504-45cf-aef4-a04394615230', token: 'Mkt4qFNf8wjhgbUU_NnF9at63wEdfGlxy29853mcJZo' });
LOWInventory / provenance · inv.binary · CWE-1104
packages/docx-compare/src/testing/fixtures/complete-rewrite/original.docx
original.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
packages/docx-compare/src/testing/fixtures/complete-rewrite/revised.docx
revised.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
packages/docx-compare/src/testing/fixtures/empty-to-content/original.docx
original.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
packages/docx-compare/src/testing/fixtures/empty-to-content/revised.docx
revised.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
packages/docx-compare/src/testing/fixtures/multiple-changes/original.docx
original.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.hidden_file · CWE-1104
.release-manual-tag
.release-manual-tag
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/safe-docx-mcpb/.mcpbignore
.mcpbignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
site/.eleventy.js
.eleventy.js
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
packages/docx-compare/src/tagged/premergeRuns.ts:24
return createHash('sha1').update(content, 'utf8').digest('hex');
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
packages/docx-core/src/primitives/bookmarks.ts:18
return createHash('sha1').update(input).digest('hex').slice(0, 12);
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/brand_allure_report.mjs:329
const iconHash = crypto.createHash('sha1').update(iconBuffer).digest('hex').slice(0, 8);
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
openspec/changes/archive/2026-08-19-refactor-tagged-tree-spine/check-legacy-rollback-nvca.mjs:10
} from '../../../../packages/docx-compare/dist/index.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
openspec/changes/archive/2026-08-19-refactor-tagged-tree-spine/check-legacy-rollback-nvca.mjs:13
'../../../../tests/test_documents/nvca-regression/source.docx',
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
openspec/changes/archive/2026-08-19-refactor-tagged-tree-spine/check-legacy-rollback-nvca.mjs:17
'../../../../tests/test_documents/nvca-regression/filled.docx',
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/docx-compare/src/compare-options.test.ts:37
'../../../tests/test_documents/open-agreements',
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/docx-compare/src/integration/strategy-differential-fixtures.ts:12
const REPO_ROOT = resolve(fileURLToPath(new URL('.', import.meta.url)), '../../../../');
LOWObfuscation / stealth · obf.rtl_override · CWE-506, CWE-94
packages/docx-core/src/primitives/content_fingerprint.test.ts:111
expect(computeContentFingerprint('AB')).toBe(computeContentFingerprint('AB'));

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 4457f499c9f3full audit observations/trust-audit/mcp-server/usejunior__safe-docx.json · Report an issue / request a re-scan
04

Audit history

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

DateSourceVerdictGradeScoreChange
2026-10-084457f499c9f3BLOCKD61first audit
05

Questions

What is the Safe Docx MCP server?

Safe DOCX suite: docx-primitives, docx-comparison, safe-docx MCP server

Is Safe Docx safe to connect to an agent?

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

What credentials does Safe Docx need?

It reads GOOGLE_SERVICE_ACCOUNT_KEY, SAFE_DOCX_AI_AUTHOR and SAFE_DOCX_WORD_ORACLE_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 Safe Docx run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @usejunior/safe-docx-site at 0.23.0.

How current is this page?

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

Advertisement