npx for all clients — no global install required. The server command is always:
Client setup
- Claude Desktop
- Claude Code
- Gemini CLI
- Cline / VS Code
- Generic MCP client
Open your Claude Desktop config file:Restart Claude Desktop. The server starts automatically when Claude launches.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
safe-docx entry to the mcpServers object:Runtime options
Safe Docx includes archive guardrails that reject suspicious.docx files before processing them. You can tune these limits with environment variables.
| Variable | Default | Description |
|---|---|---|
SAFE_DOCX_MAX_ARCHIVE_ENTRIES | 2000 | Maximum number of entries allowed in the .docx zip archive. |
SAFE_DOCX_MAX_UNCOMPRESSED_BYTES | 209715200 | Maximum total uncompressed size in bytes (200 MB). |
SAFE_DOCX_MAX_COMPRESSION_RATIO | 200 | Maximum allowed compression ratio. Archives that exceed this ratio are rejected as potential zip bombs. |
Safe Docx runs entirely as a local process on your machine. It reads and writes local filesystem paths only. No document content is sent to external servers.

