Compare Xml
Description
# compare-xml A toolkit for **structured XML comparison** — find what changed between two XML documents, with control over how keys, values, and arrays are matched. > Online playground: **[comparexml.com](https://comparexml.com)** ## Why Most XML diff tools either output…
About
# compare-xml A toolkit for **structured XML comparison** — find what changed between two XML documents, with control over how keys, values, and arrays are matched. > Online playground: **[comparexml.com](https://comparexml.com)** ## Why Most XML diff tools either output unstructured text or hide the parts that matter…
Details
- Author
- unitstack
- Downloads
- 149
- Categories
- Other
Jump to
- Deep comparison of XML elements, attributes, arrays, and text values.
- Three array comparison strategies: byIndex, lcs, and unordered.
- Case-insensitive key and/or value matching.
- Path tracking with both segment-array and dot-notation forms.
- CLI with table or JSON output, reading from inline strings or files.
- Built-in MCP server for MCP-aware AI assistants.
- Agent Skill that works in Claude Code, OpenAI Codex CLI, and others.
- Full TypeScript types.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Compare XmlCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install the CLI globally with npm install -g @compare-xml/cli, then run compare-xml base.xml contrast.xml. For programmatic use, install the core library with npm install @compare-xml/core and call its compareXML function. To use the MCP server, add a config entry with command npx @compare-xml/cli@latest --mcp. An agent skill can be installed via npx skills add unitstack/compare-xml.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"compare xml": {
"compare-xml": {
"command": "npx",
"args": [
"@compare-xml/cli@latest",
"--mcp"
]
}
}
}
}
McpServers
{
"compare-xml": {
"command": "npx",
"args": [
"@compare-xml/cli@latest",
"--mcp"
]
}
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




