# groupdocs-comparison-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/groupdocs-comparison/GroupDocs.Comparison.Mcp  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/groupdocs-comparison-mcp

## Description
MCP server for GroupDocs.Comparison — compare documents and inspect source info via AI agents.

## Tools
Capabilities this server exposes over MCP:

- **Compare** — Compares two documents (source vs target) and produces a marked-up result **file**, plus a change-count summary and a structured JSON list of the changes (type, page, the changed fragment, surrounding source/target text, table cell, style changes). Use when the user wants the rendered diff document…
- **AnalyzeChanges** — Returns the differences between two documents as **structured data only** — the same JSON change list as `Compare`, but **without** rendering or saving a result file. Cheaper than `Compare`; use when the user wants to summarize, explain, or reason about *what* changed rather than obtain the marked-…
- **GetDocumentInfo** — Inspects a single source document and returns file type, page count, file size, and per-page dimensions as JSON — without performing a comparison. Useful as a pre-flight check before deciding whether to compare or which formats to expect. Optional `password` for protected documents.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/groupdocs-comparison/GroupDocs.Comparison.Mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Run:

```sh
dnx GroupDocs.Comparison.Mcp --yes
```

2. Run:

```sh
dnx GroupDocs.Comparison.Mcp@26.9.1 --yes
```

3. Install:

```sh
dotnet tool install -g GroupDocs.Comparison.Mcp
```

4. Start the server:

```sh
docker run --rm -i \
  -v $(pwd)/documents:/data \
  ghcr.io/groupdocs-comparison/comparison-net-mcp:latest
```

5. Start the server:

```sh
cd docker
```

6. Start the server:

```sh
docker compose up
```

## Documentation

## What groupdocs-comparison-mcp MCP server does

The groupdocs-comparison-mcp MCP server connects AI agents to the GroupDocs.Comparison document-processing engine. It provides operations for comparing two documents, analyzing differences without creating an output file, and inspecting a single document before processing it.

`Compare` accepts source and target documents and produces a marked-up result file. Its response also includes a change count and structured details such as change type, page, changed fragment, surrounding source and target text, table cell information, and style changes. Supported examples include PDF, Word, Excel, PowerPoint, ODT, RTF, TXT, and HTML, along with more than 30 other formats.

`AnalyzeChanges` returns the structured differences without rendering or saving a comparison result. This is the better choice when an agent needs to summarize, explain, or reason about edits rather than deliver a visual diff.

`GetDocumentInfo` reports a document's file type, page count, file size, and dimensions for each page. It does not compare documents and can be used as a pre-flight inspection step.

## How it works

The groupdocs-comparison-mcp MCP server runs as a .NET MCP process and reads documents from configured storage locations. A client selects the appropriate tool based on the requested result: `Compare` for a marked-up file, `AnalyzeChanges` for data-only analysis, or `GetDocumentInfo` for file inspection.

Protected files can be handled with the optional password parameters: `sourcePassword` and `targetPassword` for comparisons, or `password` for document information requests. Comparison responses contain machine-readable change records that agents can summarize or filter, including changes associated with pages, text, tables, and styles.

## Setup and configuration

The server requires the .NET 10 SDK. It can run directly with `dnx GroupDocs.Comparison.Mcp --yes`, as a global dotnet tool, or in Docker. A version can be pinned when using `dnx`; Docker mounts a local documents directory into `/data`.

Native Linux and macOS installations require the `libgdiplus` native library and related font packages. Windows includes the required GDI+ component, while the Docker image already contains `libgdiplus`. Docker is therefore an alternative when native setup is undesirable.

Document and output locations are configured through `GROUPDOCS_MCP_STORAGE_PATH` and `GROUPDOCS_MCP_OUTPUT_PATH`. `GROUPDOCS_LICENSE_PATH` can point to an offline GroupDocs license file. Metered licensing uses `GROUPDOCS_METERED_PUBLIC_KEY` and `GROUPDOCS_METERED_PRIVATE_KEY`; metered mode requires outbound access so usage can be reported.

## Limitations and notes

The MCP server is MIT licensed, but the underlying GroupDocs.Comparison engine requires a production license. Without one, evaluation mode may add watermarks or notices to comparison output and limits one process to 15 opened documents until restart.

A license file is suitable for offline or restricted environments. Metered credentials are an alternative for usage-based billing, but the private key should not be committed to project MCP configuration. The README provides setup configurations for clients including Claude, Cursor, VS Code, Codex CLI, Windsurf, Cline, and JetBrains Rider.

_Full upstream README: https://allmcps.com/mcp/groupdocs-comparison-mcp/readme_

