drio
Open app

Xpath

Source

Catalog onlyCatalog onlySTDIO

Overview

Xpath is a server designed for executing XPath queries on XML content, allowing users to extract data from XML documents efficiently.

To use Xpath, you can either query XML content directly or fetch content from a URL and execute XPath queries on it. You can install it via Smithery or directly using Node.js.

  • Execute XPath queries on XML and HTML content. - Fetch content from URLs for querying. - Supports various MIME types for content.
  1. Extracting specific data from XML files.
  2. Scraping links from HTML pages.
  3. Automating data extraction tasks in applications.

Add to your AI client

Use these steps to connect Xpath in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

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

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

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

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

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

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "xpath-jayarrowz": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jayarrowz/mcp-xpath"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

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

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

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

FAQ

Can Xpath handle both XML and HTML content?

Yes! Xpath can query both XML and HTML content using XPath expressions.

Is Xpath easy to install?

Yes! You can install it easily via Smithery or by using npm commands.

What is the license for Xpath?

Xpath is licensed under the MIT License, allowing free use, modification, and distribution.