# Sezzlee XML MCP server

> Query local XML documents using XPath and structured tools within a sandboxed, read-only environment.

- Repository: https://github.com/sezzlee/mcp
- Page: https://hostedmcp.org/servers/sezzlee/xml
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.5.1

## Install

### Claude Code

```sh
claude mcp add xml -- npx -y @sezzlee/xml-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "xml": {
      "command": "npx",
      "args": [
        "-y",
        "@sezzlee/xml-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "xml": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sezzlee/xml-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"xml","type":"stdio","command":"npx","args":["-y","@sezzlee/xml-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "xml": {
      "command": "npx",
      "args": [
        "-y",
        "@sezzlee/xml-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add xml -- npx -y @sezzlee/xml-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.xml]
command = "npx"
args = ["-y", "@sezzlee/xml-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user xml npx -- -y @sezzlee/xml-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "xml": {
      "command": "npx",
      "args": [
        "-y",
        "@sezzlee/xml-mcp"
      ]
    }
  }
}
```

## Tools (7)

- `list_documents`
- `describe_document`
- `read_node`
- `find_in_document`
- `select_xpath`
- `project_records`
- `aggregate_document`

## FAQ

### What file extensions can this server read?

The server supports .xml, .xsd, .xhtml, .svg, .csproj, .props, .targets, .config, and .resx.

### How does the server handle very large XML files?

Documents exceeding the 8 MiB resident ceiling are read in a reduced-capability 'chunked' mode where select_xpath, find_in_document, and aggregate_document are unavailable.

### Is the server capable of modifying my files?

No, the server is designed to be read-only and sandboxed to a single folder.
