XPath MCP Server logo

XPath MCP Server

by Third Strand Studio

MCP Server for executing XPath queries on XML content. It provides tools to query XML content directly or fetch content from a URL and query it.

View on GitHub

Last updated: N/A

What is XPath MCP Server?

This is an MCP (Multi-Client Protocol) server designed to execute XPath queries on XML and HTML content. It offers tools to extract data from XML strings or directly from URLs.

How to use XPath MCP Server?

The server provides two main tools: xpath and xpathwithurl. xpath takes XML content and an XPath query as input. xpathwithurl takes a URL and an XPath query, fetches the content from the URL, and then executes the query. Configuration examples for use with Claude Desktop are provided in the README.

Key features of XPath MCP Server

  • XPath query execution

  • XML content querying

  • HTML content querying

  • URL content fetching and querying

  • MIME type specification

Use cases of XPath MCP Server

  • Extracting data from XML files

  • Scraping data from websites

  • Automating data extraction tasks

  • Integrating with Claude Desktop for automated workflows

FAQ from XPath MCP Server

What is XPath?

XPath is a query language for selecting nodes from an XML document.

What MIME types are supported?

The server supports MIME types such as text/xml, application/xml, text/html, and application/xhtml+xml.

How do I install this server?

You can install it using Smithery or manually by cloning the repository and following the setup instructions.

Can I use this server to query HTML content?

Yes, you can use the xpath tool with the text/html MIME type or the xpathwithurl tool to query HTML content from a URL.

What license is this server released under?

This MCP server is licensed under the MIT License.