Architecture: MCP server
A DocGen MCP server that proposes. Your org decides.
The ZeroExport MCP server lets Claude or Codex build Salesforce document templates and migrate Conga, Nintex, S-Docs and Word templates. It runs on your machine, reads your org through the Salesforce CLI, and writes nothing but a validated, inactive template draft. Documents are still generated by deterministic Apex.
For Salesforce architects, admins planning a migration, and the security reviewers who approve it.
Capabilities
Reads your org schema, read-only
Objects, fields and child relationships are described from the org you choose. Every merge field is checked object, field and full path, and ends Mapped, Ambiguous or Unresolved. Nothing is guessed: open items come back to you as questions, and your answers are checked against the org again.
Builds data sources from verified fields
Primary, child query, nested child, unrelated and summary sources, using ZeroExport's own data source model. Each source queries only the fields the template uses. Filters, sort order, limits and names come from you, never from the AI.
Generates the layout
Sections, headings, tables with implicit repeating rows, total rows, grids, headers, footers and page numbers are rebuilt from the source document. A coverage report lists every element as supported, transformed or unsupported.
Page setup, conditions, styles and brand
Page size and margins are read from the Word file. Conga conditions become visibility rules, with a count of what did not convert. Styles are recorded from screenshots of the original output, and an optional brand is applied only after you confirm every value.
Validates in your org before import
Local grammar checks run after every step. Before import, ZeroExport's own validator runs in the org: fields, visibility rules, and a dry-run import that is rolled back, so save rules and the query planner report problems before anything is saved.
Imports a compiled, inactive draft
With your yes, the template is imported as an inactive draft and compiled like any save in the builder. Production needs explicit confirmation. You can render a test PDF for a record you name, then review and activate in the Lightning builder.
Limitations
It cannot change org metadata
No deploys, objects, fields, permission sets or setup changes. Salesforce CLI commands are allowlisted, and Apex containing metadata APIs, callouts or direct DML is refused before it is sent. If a migration needs a field or permission that does not exist, it stops and tells you.
Logic outside the template file needs you
A Conga query aggregate or filter lives in the Conga query, not the Word file, so it cannot be read. You choose the ZeroExport equivalent. Region names suggest filters but are never treated as one.
Some files need screenshots
Text is extracted from .docx, HTML and plain text. A legacy .doc, PDF, RTF, scan or protected file cannot be read, so you paste screenshots and the assistant rebuilds from them. Styles always come from screenshots of the original output.
Images are placeholders
Embedded pictures are not copied. They become empty image nodes that keep their size and alt text, and you upload the picture in the builder.
Only what ZeroExport can print
Styles outside ZeroExport's style system, content inside table cells that a table cannot hold, and conditions with no equivalent are reported as unsupported rather than approximated. Brand fonts are limited to the four that print, and nesting goes up to four levels below the primary object.
Plan, version and tooling requirements
The MCP server is included in the Standard plan, needs ZeroExport 1.13 or later, Apex class access to ZeroExportMcp, and the Salesforce CLI signed in to the org. It runs locally in an MCP client such as Claude Code.
Unguarded AI authoring vs the ZeroExport MCP server
| Topic | Pasting a template into a chatbot | ZeroExport |
|---|---|---|
| Field names | Guessed from labels, wrong names fail silently as blanks | Looked up in your org; unresolved fields are asked, never guessed |
| Validation | Whatever the model believes is right | ZeroExport's own validator in your org, plus a rolled-back dry-run import |
| What reaches the org | Manual copy and paste | One inactive draft, imported only after your yes |
| Org changes | Depends on what the agent is allowed to run | None possible: metadata changes are blocked in the server |
| AI at generation time | Sometimes in the rendering path | Never. Generation is deterministic Apex |
Questions
What is a DocGen MCP server?
An MCP server for document generation gives AI assistants template-building tools over the Model Context Protocol. The ZeroExport DocGen MCP server reads your Salesforce schema, builds and migrates templates, and validates them in your org. Documents are still rendered by deterministic Apex.
Does the MCP server send Salesforce record data to an AI model?
It works from the template file and your org schema: object and field metadata, and the docs. Record data is read only if you ask it to render a test PDF for a record you name, and that PDF is saved to a local file.
Can it import straight into production?
Only with your explicit confirmation. Any org not clearly identified as scratch, sandbox or developer is treated as production. The template always arrives as an inactive draft.
Does it store Salesforce credentials?
No. Every Salesforce call goes through the Salesforce CLI, which handles sign-in. The server never reads or stores an access token.
Which templates can it migrate?
Conga templates run through a phased migration. Nintex, S-Docs and plain Word documents use the general flow, where the assistant designs the template from the extracted text and every field is checked against the org.