pyxsd — Claude Code MCP server: what it does, how to install
pyxsd — an MCP server for Claude Code and Cursor: explores XML schemas, validates documents, and transforms typed object trees.
no license ★ 11 updated 2026-11-16
claude mcp add pyxsd -- uvx pyxsdWhat pyxsd 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.
What it helps with
- compile XML Schema into Python classes
- validate XML documents against XSD
- query data using XPath paths
- convert between XML and JSON formats
Example prompts for the agent
- Validate
inventory.xmlagainstinventory.xsdusing pyxsd - Query the XML document structure with XPath
- Convert XML data to JSON format
How to install pyxsd
Platform CLI
claude mcp add pyxsd -- uvx pyxsduvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>
Platform CLI
codex mcp add pyxsd -- uvx pyxsduvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>
Config file
{
"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>
Config file
{
"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>
Platform CLI
gemini mcp add pyxsd uvx pyxsduvx runs the command named after the package; if the README names another one, use uvx --from pyxsd <command>
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 pyxsd
How to install pyxsd in Claude Code?
Run claude mcp add pyxsd -- uvx pyxsd in your terminal.
What does pyxsd do?
It compiles XML schemas into Python classes, validates documents, and handles XML queries.
What is required to run pyxsd?
Python 3.11 or newer and the uvx runner are required.