XPath
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
Jump to
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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
XPathCommand (node, npx, python, etc.)npxArguments-
Argument 1
@thirdstrandstudio/mcp-xpath
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- 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
MCP Server for executing XPath queries on XML content.
<a href="https://glama.ai/mcp/servers/@thirdstrandstudio/mcp-xpath">
</a>
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




