# structdiff MCP server

> Performs semantic diffs of JSON, YAML, TOML, CSV, .env, and INI files, detecting moved items and generating verified RFC 6902 JSON patches.

- Repository: https://github.com/0xmortuex/structdiff-mcp
- Page: https://hostedmcp.org/servers/0xmortuex/structdiff-mcp
- Transport: —
- Stars: 0
- License: MIT

## Tools (11)

- `diff_files`
- `diff_text`
- `csv_diff`
- `as_json_patch`
- `apply_preview`
- `inspect_file`
- `array_match`
- `array_keys`
- `ignore`
- `strip_comments`
- `encoding`

## FAQ

### Is this server safe to use with my files?

Yes, it is read-only and sandboxed to specified directories. It uses PyYAML's SafeLoader to prevent malicious code execution.

### How does it handle lists and arrays?

Lists can be matched by identity rather than position, allowing the server to detect when an item has moved rather than just being edited.

### Can I generate JSON patches from the diffs?

Yes, the as_json_patch tool returns an RFC 6902 patch that is verified by applying it before it is returned.

### What file formats are supported?

The server supports JSON, YAML, TOML, CSV, .env, and INI files.
