# groupdocs-viewer-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/groupdocs-viewer/GroupDocs.Viewer.Mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/groupdocs-viewer-mcp

## Description
MCP server for GroupDocs.Viewer — render pages as PNG and inspect view info via AI agents.

## Tools
Capabilities this server exposes over MCP:

- **RenderPage** — Renders a single document page as a PNG image and returns it inline (plus saves a copy to storage as `<source-stem>_page<N>.png`). Supports PDF, Word, Excel, PowerPoint, ODT, RTF, HTML, and 170+ more formats; optional `password` for protected documents.
- **GetViewInfo** — Returns file type, page count, and per-page dimensions as JSON — without rendering. Useful as a pre-flight check before deciding which page(s) to render. 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-viewer/GroupDocs.Viewer.Mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Run:

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

2. Run:

```sh
dnx GroupDocs.Viewer.Mcp@26.9.0 --yes
```

3. Install:

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

4. Start the server:

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

5. Start the server:

```sh
cd docker
```

6. Start the server:

```sh
docker compose up
```

## Documentation

## What groupdocs-viewer-mcp MCP server does

The groupdocs-viewer-mcp MCP server exposes GroupDocs.Viewer through MCP tools for inspecting documents and rendering individual pages. It is intended for AI clients that need visual access to files stored on the server’s configured filesystem rather than a separate document-management integration.

Supported examples include PDF, Word, Excel, PowerPoint, ODT, RTF, and HTML files. The underlying viewer supports more than 170 formats. Protected documents can be opened by passing a password to the relevant tool.

## How it works

An MCP client sends a document path and operation to the server. `GetViewInfo` performs a non-rendering inspection and returns JSON containing the detected file type, total page count, and dimensions for each page. This is useful for choosing valid pages and deciding whether rendering is necessary.

`RenderPage` processes one page and returns the resulting PNG inline to the agent. It also writes a copy to storage using the pattern `<source-stem>_page<N>.png`. Agents can therefore display a page immediately while retaining a filesystem artifact for later use. Requests for several pages require separate page render operations.

The groupdocs-viewer-mcp MCP server communicates with clients as a .NET MCP process. It can be launched directly with `dnx`, installed as a global .NET tool, or run in Docker.

## Setup and configuration

Running the server requires the .NET 10 SDK when using the native .NET options. The recommended direct command is `dnx GroupDocs.Viewer.Mcp --yes`; a specific version can be pinned. The global-tool route uses `dotnet tool install -g GroupDocs.Viewer.Mcp`, followed by `groupdocs-viewer-mcp`.

For Docker, mount a host directory at `/data` and run the published GroupDocs Viewer MCP image. Native Linux and macOS installations also need the platform’s `libgdiplus` dependency and related font packages. The Docker image includes `libgdiplus`.

Set `GROUPDOCS_MCP_STORAGE_PATH` to the base directory containing input files. `GROUPDOCS_MCP_OUTPUT_PATH` can point to a separate output directory; otherwise output uses the storage directory. `GROUPDOCS_LICENSE_PATH` selects an offline GroupDocs license file. Metered use requires both `GROUPDOCS_METERED_PUBLIC_KEY` and `GROUPDOCS_METERED_PRIVATE_KEY`, and takes precedence over a license file.

## Tools and capabilities

- `RenderPage`: Render one page as a PNG, return it inline, and save a copy.
- `GetViewInfo`: Inspect file type, page count, and per-page dimensions without rendering.
- Password arguments: Open password-protected documents with either operation.
- Broad format coverage: Process supported PDF, office, markup, and other document formats.

## Limitations and notes

Without a GroupDocs engine license, the groupdocs-viewer-mcp MCP server runs in evaluation mode. Rendering is limited to a number of pages per document, output may contain evaluation notices, and one process can open at most 15 documents before restart is required. Production use needs either a license file or metered credentials.

Metered licensing reports usage to GroupDocs and therefore requires outbound connectivity. Air-gapped deployments should use an offline license file instead. Keep the metered private key out of committed project configuration; environment variables are the preferred storage method.

The server itself is MIT licensed, but that does not remove the separate licensing requirements for the GroupDocs.Viewer engine.

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

