Skip to content
Documentation menu
Developers

Document comparison API and MCP server

Version Story’s comparison engine is deterministic: it produces the exact set of changes between two versions of a document, preserving footnotes, tables, numbering, and formatting. Two programmatic surfaces expose it.

Which one should I use?

It comes down to who is driving. Reach for the REST API when your own code makes the call and you want a plain HTTP request authenticated with an API key. Reach for the MCP server when an AI agent does the work on behalf of a signed-in user, discovering the tools and authenticating through OAuth.

What the engine does

CapabilityProduces
CompareA true redline of every change between a base document and each revision
MergeOne document folding together revisions of a shared base, each edit labeled by where it came from
CombineOne document folding together independent drafts that share no base
Version historyOne document attributing every surviving change to the version that introduced it

Every comparison renders to whichever deliverable you ask for:

  • Word document with real tracked changes
  • PDF redline
  • PDF of only the changed pages

Start building

Issue a REST API key from Settings → Organization → API Keys in the Version Story web app. The MCP server needs no key at all — connect a client and sign in with your Version Story account.