Xpath
About
# XPath MCP Server MCP Server for executing XPath queries on XML content.  [](https://smithery.ai/server/@JayArrowz/mcp-xpath) ## Tools 1. `xpath` - Query XML…
Explore
- 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:
- 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.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- 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 @JayArrowz/mcp-xpath --client claude
``bash
npm install
Add the following to your claude_desktop_config.json`:
xpath
Select query XML content using XPath
xpathwithurl
Fetch content from a URL and select query it using XPath
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": {
"xpath": {
"command": "npx",
"args": [
"-y",
"@jayarrowz/mcp-xpath"
]
}
}
}
}
McpServers
{
"xpath": {
"command": "npx",
"args": [
"-y",
"@jayarrowz/mcp-xpath"
]
}
}
MCP Server for executing XPath queries on XML content.
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



