Skip to main content
Document Engine is in alpha and subject to breaking changes while the contract and adapters continue to evolve.
Document Engine gives you four ways to read and edit .docx files without a visible editor:
SurfaceBest forRuntime
Document APIIn-browser editing via editor.doc.*Browser
SDKsBackend automation with typed methodsNode / Python
CLIScripts and CI pipelinesAny shell
MCP ServerAI agents (Claude Code, Cursor, custom)Local subprocess
All four share the same operation set. find is editor.doc.find() in the browser, superdoc.doc.find() in the SDK, superdoc find in the CLI, and superdoc_find in MCP.

How it works

The Document API defines the canonical operations. The CLI and MCP server wrap them for different consumers. The SDKs manage the CLI process and expose typed methods.

Which surface should I use?

Your setupSurfaceWhy
Web app with a visible editorDocument APIDirect access via editor.doc.* — no network round-trips
AI agent (Claude Code, Cursor, Windsurf, custom)MCP ServerSessions keep the editor alive across tool calls
Backend automation (Node.js / Python)SDKsTyped methods, session management, error handling built in
Shell scripts or CI pipelinesCLIStateless one-shot commands — no process to manage
Serverless (Lambda, Vercel, Workers)CLI or SDKsOpen the file, run the operation, return the result