# pyxsd

pyxsd — an MCP server for Claude Code and Cursor: explores XML schemas, validates documents, and transforms typed object trees.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11 repo stars
- Author: knorby
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/knorby/pyxsd
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/pyxsd

## What it does

pyxsd compiles XML Schema into Python classes and validates XML documents into typed object trees. It combines validation reports, XPath queries, and user-defined transforms with optional Pydantic and Arrow integrations. The local stdio server allows agents to inspect schemas and run diagnostics directly in the workspace.

Python 3.11 or newer is required. Transformation execution via MCP remains disabled by default.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add pyxsd -- uvx pyxsd
```
uvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>

### Codex

**Platform CLI**
```bash
codex mcp add pyxsd -- uvx pyxsd
```
uvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pyxsd": {
            "command": "uvx",
            "args": [
                "pyxsd"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pyxsd": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "pyxsd"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add pyxsd uvx pyxsd
```
uvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>

## When to use it
- compile XML Schema into Python classes
- validate XML documents against XSD
- query data using XPath paths
- convert between XML and JSON formats

## Example prompts
- Validate `inventory.xml` against `inventory.xsd` using pyxsd
- Query the XML document structure with XPath
- Convert XML data to JSON format

## Similar
- [xdto-decompile](https://affpapa.org/en/nevibecode/skills/xdto-decompile.md) — skill · 37 installs
- [skd-validate](https://affpapa.org/en/nevibecode/skills/skd-validate.md) — skill · 47 installs
- [open-pencil](https://affpapa.org/en/nevibecode/skills/open-pencil.md) — skill · 685 installs
- [hunt-ldap](https://affpapa.org/en/nevibecode/skills/hunt-ldap.md) — skill · ★ 16193 repo stars
- [odoo-18](https://affpapa.org/en/nevibecode/skills/odoo-18.md) — skill · 1500 installs
- [magento-ui-component-developer](https://affpapa.org/en/nevibecode/skills/magento-ui-component-developer.md) — skill · 200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
