Skip to main content
The SuperDoc MCP server lets AI agents open, read, edit, and save .docx files. It exposes the same operations as the Document API through the Model Context Protocol — the open standard for connecting AI tools to agents.

How it works

The MCP server runs as a local subprocess, communicating over stdio. It manages document sessions in memory — each superdoc_open creates an Editor instance, and all subsequent operations run against that in-memory state until you superdoc_save.
AI Agent (Claude, Cursor, Windsurf)
  │ MCP protocol (stdio)

@superdoc-dev/mcp
  │ Document API

SuperDoc Editor (in-memory)
  │ export

.docx file on disk
Your documents never leave your machine. The server runs locally, reads files from disk, and writes back to disk.

Setup

Install once. Your MCP client spawns the server automatically on each conversation.
claude mcp add superdoc -- npx @superdoc-dev/mcp

Tools

The MCP server exposes 12 tools total:
  • 3 lifecycle tools: superdoc_open, superdoc_save, superdoc_close
  • 9 grouped intent tools generated from the SDK catalog
All tools except superdoc_open take a session_id from superdoc_open.

Lifecycle

ToolInputDescription
superdoc_openpathOpen a .docx file. Returns session_id and file path
superdoc_savesession_id, out?Save to the original path, or to out if specified
superdoc_closesession_idClose the session. Unsaved changes are lost

Intent tools

ToolActionsDescription
superdoc_get_contenttext, markdown, html, infoRead document content in different formats
superdoc_searchmatchFind text or nodes and return handles or addresses for later edits
superdoc_editinsert, replace, delete, undo, redoPerform text edits and history actions
superdoc_formatinline, set_style, set_alignment, set_indentation, set_spacingApply inline or paragraph formatting
superdoc_createparagraph, headingCreate structural block elements
superdoc_listinsert, create, detach, indent, outdent, set_level, set_typeCreate and manipulate lists
superdoc_commentcreate, update, delete, get, listManage comment threads
superdoc_track_changeslist, decideReview and resolve tracked changes
superdoc_mutationspreview, applyExecute multi-step atomic edits as a batch
Multi-action tools use an action argument to select the underlying operation. superdoc_search is a single-action tool and does not require action.
  • How to use — workflow patterns, targeting, and common operations
  • Debugging — inspect and troubleshoot MCP tool calls
  • LLM Tools — build custom LLM integrations with the SDK
  • CLI — edit documents from the terminal