mcp-xpath

mcp-xpath

3.5

MCP Server for executing XPath queries on XML content.

Top Comments

The XPath MCP Server is designed to facilitate the execution of XPath queries on XML and HTML content. It provides tools to query XML content directly or fetch content from a URL and then apply XPath queries. This server is particularly useful for developers and data analysts who need to extract specific data from XML or HTML documents efficiently. The server supports various MIME types, ensuring flexibility in handling different types of content. It is easy to set up and can be integrated with platforms like Claude Desktop using simple configuration scripts. The server is open-source and licensed under the MIT License, allowing for wide usage and modification.

Features

  • Execute XPath queries on XML content.
  • Fetch and query content from URLs using XPath.
  • Supports multiple MIME types for flexibility.
  • Easy integration with platforms like Claude Desktop.
  • Open-source with MIT License for broad usage.

MCP Tools

  • xpath: Query XML content using XPath expressions.
  • xpathwithurl: Fetch content from a URL and query it using XPath expressions.

Usage with Different Platforms

npx


{
  "mcpServers": {
    "xpath": {
      "command": "npx",
      "args": [
        "@thirdstrandstudio/mcp-xpath"
      ]
    }
  }
}

direct_node_js


{
  "mcpServers": {
    "xpath": {
      "command": "node",
      "args": [
        "/path/to/mcp-xpath/dist/index.js"
      ]
    }
  }
}