XPath

by thirdstrandstudio

618 downloads
Not rated
GitHub

About

Enables Claude to execute XPath queries on XML and HTML content, supporting both direct parsing and web scraping through Puppeteer for structured data extraction from documents and websites.

Details

Author
thirdstrandstudio
Repository
thirdstrandstudio/mcp-xpath
Downloads
618
License
MIT License
Categories
Web Scraping, Other, Productivity, Developer Tools, Design, Workplace, File Management, AI, Search, Infrastructure, Frontend, API

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.) npx
    Arguments
    • Argument 1 @thirdstrandstudio/mcp-xpath

    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

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

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

``bash

npm install

Add the following to your claude_desktop_config.json`:

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.

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.

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

Claude Desktop / Cursor

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

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

Linux

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

Macos

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

Windows

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

XPath MCP Server

Third Strand Studio

MCP Server for executing XPath queries on XML content.

<a href="https://glama.ai/mcp/servers/@thirdstrandstudio/mcp-xpath">
mcp-xpath MCP server
</a>

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 @thirdstrandstudio/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.