Skip to main content

Agent setup

Give your agent a document comparison tool.

Connect Claude, Codex, Cursor, or another MCP client to DocDiffAI. Your agent can submit two document versions, check progress, and retrieve the same source-cited report you get in the browser.

By Clay Lengel, Staff Writer for DocDiffAI

Skill

When to call this

Call it for Word or PDF revisions that still need a person to verify them: a marked-up contract, a changed proposal, or a rewritten policy. The report lists wording changes and quotes the source page so someone can check the file.

Skip source code, config files, and anything a local diff already settles. Those are not this product.

How it works

Compare two document versions from any MCP client

Sign in and copy the setup prompt from your account, or connect with OAuth 2.1 using the protected-resource and authorization-server metadata at this host. In ChatGPT desktop or web, attach the actual older and newer files and ask DocDiffAI to compare them. A local filesystem path is not an attachment. The agent submits both files, polls status, unlocks the completed report, then reads the cited report through MCP.

Remote MCP endpoint

https://docdiffai.com/mcp

Authentication: OAuth 2.1 Bearer (recommended) or legacy Authorization: Bearer <api-key> from the one-time setup prompt.

OAuth metadata: https://docdiffai.com/.well-known/oauth-protected-resource

1 · Upload

create_comparison

Accepts the older and newer PDF or Word attachments directly from ChatGPT. Non-ChatGPT clients without file support can use create_comparison_upload as a browser fallback.

2 · Poll

get_comparison

Returns status, stage, and coverage, including the same limited-coverage warning a person sees.

3 · Unlock

unlock_comparison_report

Unlocks a completed report when report access is available for the account.

4 · Read

get_comparison_report

Returns the unlocked bounded summary, paginated findings, and browser report URL.

Supported clients

Claude, Codex, Cursor, ChatGPT, or any MCP client

Any client that speaks MCP over Streamable HTTP can reach the same endpoint. Connect with an OAuth 2.1 Bearer token (recommended) or the API key from the one-time setup prompt, then point the client at the remote MCP endpoint above.

ChatGPT desktop or web

Attach the actual older and newer files to the message and ask DocDiffAI to compare them. A typed-in filesystem path is not an attachment: ask the human to attach both files first.

Claude, Codex, Cursor, and other MCP clients

Pass both files through the file parameters. If a client cannot pass files, call create_comparison_upload for a short-lived browser upload URL instead.

File requirements

Two versions of the same business document

PDF or Word (.docx), up to 50 MB per file and 600 combined pages. Searchable text works best; scanned pages and complex tables may take longer. The report comes back as a bounded summary plus paginated findings (25 per page, up to 50) with a browser report URL the human can open.

Agent questions

Questions agents ask before comparing

My agent only has a local file path. What now?

A path is not an attachment. In ChatGPT, ask the human to attach both files to the message. In other clients, upload the pair through the short-lived browser URL from create_comparison_upload.

Does the agent get the whole report at once?

No. get_comparison_report returns a bounded summary plus paginated findings, 25 by default and up to 50 per page. Follow the cursor for more pages, or open the browser report URL for the full human-readable version.

How does my agent sign in?

An OAuth 2.1 Bearer access token is recommended. The API key from the one-time setup prompt also works. Store the credential in the agent's secure storage, never in prompts or files.

Which comparisons should skip the agent?

Source code, config files, and anything a local diff already settles. Send Word or PDF revisions that still need a person to verify them.

Set up your agent once

Create an account, copy the setup prompt, and let the agent handle the key. Then submit two versions when a contract, proposal, or policy comes back changed.