Programmatic .docx Automation for Agents & Apps
Coming Soon: The DraftAgent MCP Server & REST API
We are bringing the same native OOXML document engine powering DraftAgent on macOS and iOS to your backend pipelines, CLI workflows, and AI agents.
Generate, inspect, restyle, and review real Microsoft Word (.docx) files programmatically—without headless browser hacks, broken Markdown conversions, or lossy HTML exports.
Email us at [email protected] to join the Developer Waitlist.
Why a Native .docx API?
Most document pipelines treat Word files as static text blobs—extracting raw strings or dumping unformatted Markdown into basic templates. When your workflow requires real document structure, those shortcuts break down.
The DraftAgent engine operates directly on the underlying Open XML (OOXML) document tree:
- Deterministic Structure: Read, insert, update, and reorganize headings, paragraphs, lists, and tables while preserving document hierarchy.
- Style & Layout Control: Apply consistent typography, normalize messy imported styles, and enforce formatting standards across generated documents.
- First-Class Review Workflows: Programmatically read and insert margin comments, inspect tracked changes, and accept or reject revisions.
- Clean .docx Output: Produce valid, standards-compliant Word documents that open cleanly in Microsoft Word, Apple Pages, and Google Docs.
Two Ways to Integrate
1. Model Context Protocol (MCP) Server
Give Claude, Cursor, or your custom AI agents direct, structured tools to read and edit Word documents safely—without stuffing raw XML into your context window.
- Structured Document Tools: Expose high-level operations (
get_outline,edit_section,normalize_styles,add_comment,review_revisions) over standard MCP transports. - Context-Efficient Inspection: Query specific sections, tables, or comment threads instead of parsing megabytes of verbose OOXML markup.
- Human-in-the-Loop Redlines: Have agents propose edits as native tracked changes and comments so human reviewers can approve every modification in Word or DraftAgent.
2. REST API
Integrate native .docx generation, transformation, and review directly into your backend services and automated workflows.
- Stateless Document Processing: Pass
.docxpayloads or structured instructions via standard HTTPS endpoints and receive clean, modified.docxfiles back. - Template & Report Automation: Assemble multi-section proposals, legal drafts, and client reports with consistent styles and tables.
- Zero Data Retention: Built on the same privacy-first architecture as our native apps—files are processed ephemerally and never used to train AI models.
Example: Agentic Redlining via MCP
{
"tool": "docx_propose_revision",
"arguments": {
"document_id": "msa_draft_v2.docx",
"section_heading": "4.2 Limitation of Liability",
"instruction": "Cap aggregate liability to 12 months of fees paid and add a mutual carve-out for confidentiality breaches.",
"track_changes": true,
"comment": "Updated liability cap per standard playbook."
}
}Get Early Access
We are onboarding a small group of engineering teams and agent builders ahead of our public beta. Tell us what you are building to request early access to the DraftAgent MCP server and REST API.
Email us at [email protected] to join the Developer Waitlist.
No spam, no sales pitches. We’ll only reach out when your API key or MCP server preview invite is ready.