XPath Extractor

XPath Extractor MCP Connector for Claude

A+

Extract precise data from XML and HTML using XPath 1.0 expressions.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

XPath Extractor provides precise tools for navigating and querying XML and HTML documents. Use evaluate_xpath_expression to retrieve specific node values or attribute strings, validate_document_structure to ensure your documents are well-formed, and extract_node_attributes to pull specific attribute values from matched elements. This connector bridges your AI agent to structured data parsing logic.

xpathxmlhtmlparsingdata-extraction

3 tools expose this connector's capabilities to your AI agent.

validate_document_structure

Use this tool only for structural checks. Checks if a provided string adheres to structural rules and identifies syntax errors

evaluate_xpath_expression

Ensure the document is valid XML or HTML. Executes an XPath 1.0 query against a provided document string to retrieve specific data

extract_node_attributes

Provide a precise XPath selector for the target nodes. Specifically targets and retrieves the values of attributes within a set of nodes

See how to talk to your AI agent using XPath Extractor.

Extract the value of the 'id' attribute from the first 'div' element in this HTML: <div><p id='main'>Hello</p></div>

main

What is the text content of the 'title' tag in this XML? <root><title>Example Title</title></root>

Example Title

Check if this XML is valid: <root><item>Data</item></root>

true

You can parse both XML and HTML documents. Use `validate_document_structure` to check if your document is well-formed before running queries.

Related Connectors