rpt-mcp — Claude Code MCP server: what it does, how to install
Lets an agent inspect and edit SAP Crystal Reports .rpt files: formulas, parameters, groups, layout objects. Windows only.
Open on GitHubWhat rpt-mcp (SAP Crystal Reports) does
A .rpt file is binary, so an agent can't patch it as text. This server sits on top of SAP's own .NET runtime for Crystal Reports and turns edits into structured MCP tools. The agent can read tables, SQL commands, links, parameters, formulas, groups, sorts, sections and every object on the page, including conditional formulas buried in formatting.
Edits cover formulas, the record selection formula, parameters, groups, sorts, running totals, subreports, field formats and database connections. batch_edit bundles several changes into one load, one backup and one save, and either all of them apply or none. The original is copied to _rptmcp_backup before anything is overwritten, or you pass output_path to get a new file. Deleting a formula, parameter or table that something still uses gets refused unless you set force. export_report renders to PDF, Excel, Word, CSV or PNG/JPG so the agent can look at the layout.
You need Windows, .NET Framework 4.8 and the 64-bit v13 build of the SAP Crystal Reports runtime (SAP Crystal Reports for Visual Studio works too). SAP ships that runtime separately and the repo doesn't include it, so without it the server won't start.
What it helps with
- rewrite the record selection formula in an existing
.rpt - group a report by shift or day and add subtotals
- swap a logo without moving anything else
- repoint report tables to another server or database
- find which report columns vanished from the database
Example prompts for the agent
- Show me the structure of
report.rpt: parameters, formulas and groups - In
report.rpt, group by the Shift field and put a sum of Qty in the group footer - Export
report.rptto PNG and tell me if the layout looks broken
How to install rpt-mcp (SAP Crystal Reports)
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about rpt-mcp (SAP Crystal Reports)
How do I install rpt-mcp in Claude Code?
Install the SAP Crystal Reports runtime first. Then download rpt-mcp-<version>-win-x64.zip from the repository's Releases page, unzip it, and register rpt-mcp.exe as an MCP server in your client settings.
What does rpt-mcp do?
It gives an agent tools to read and edit .rpt reports: formulas, parameters, groups, objects, subreports, data source, plus export to PDF and images.
What does rpt-mcp need to run?
Windows, .NET Framework 4.8, and the 64-bit v13 SAP Crystal Reports runtime or SAP Crystal Reports for Visual Studio. You download the runtime from SAP separately.