Xpath

by JayArrowz

230 downloads
Not rated
GitHub

Description

# XPath MCP Server MCP Server for executing XPath queries on XML content. ![image](https://github.com/user-attachments/assets/369045f3-1cdb-4204-9c62-0f5f32636262) [![smithery…

About

# XPath MCP Server MCP Server for executing XPath queries on XML content. ![image](https://github.com/user-attachments/assets/369045f3-1cdb-4204-9c62-0f5f32636262) [![smithery badge](https://smithery.ai/badge/@JayArrowz/mcp-xpath)](https://smithery.ai/server/@JayArrowz/mcp-xpath) ## Tools 1. `xpath` - Query XML…

Details

Author
JayArrowz
Downloads
230
Categories
Other

- Execute XPath queries on XML or HTML content
- Fetch remote content via URL and query it
- Optional MIME type parameter (e.g., text/xml, text/html)
- Two simple tools: xpath and xpathwithurl
- Returns query results as plain strings
- Easy integration with Claude Desktop and other MCP clients

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Xpath
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install it via Smithery (npx -y @smithery/cli install @JayArrowz/mcp-xpath --client claude) or clone the repo, install dependencies, and build. Configure it in Claude Desktop by adding the appropriate command and args to claude_desktop_config.json. Invoke the tools xpath (with xml and query inputs) or xpathwithurl (with url and query inputs) from your MCP client.

xpath

Select query XML content using XPath

xpathwithurl

Fetch content from a URL and select query it using XPath

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

XPath MCP Server

MCP Server for executing XPath queries on XML content.

image

smithery badge

Tools

1. xpath
- Query XML content using XPath expressions
- Inputs:
- xml (string): The XML content to query
- query (string): The XPath query to execute
- mimeType (optional, string): The MIME type (e.g. text/xml, application/xml, text/html, application/xhtml+xml)
- Returns: The result of the XPath query as a string

2. xpathwithurl
- Fetch content from a URL and query it using XPath expressions
- Inputs:
- url (string): The URL to fetch XML/HTML content from
- query (string): The XPath query to execute
- mimeType (optional, string): The MIME type (e.g. text/xml, application/xml, text/html, application/xhtml+xml)
- Returns: The result of the XPath query as a string

Installation

Installing via Smithery

To install mcp-xpath for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @JayArrowz/mcp-xpath --client claude

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.