XPath MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Allows querying XML content using XPath expressions, supporting both direct XML input and fetching content from URLs. Can extract specific data from XML documents based on XPath queries.
XPath MCP Server
MCP Server for executing XPath queries on XML content.
Tools
xpath
- Query XML content using XPath expressions
- Inputs:
xml
(string): The XML content to queryquery
(string): The XPath query to executemimeType
(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 fromquery
(string): The XPath query to executemimeType
(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:
Setup
Usage with Claude Desktop
Add the following to your claude_desktop_config.json
:
npx
Direct Node.js
Replace /path/to/mcp-xpath
with the actual path to your repository.
Examples
Query XML content
Query HTML content
Query URL content
Development
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
This server cannot be installed
An MCP server that allows querying XML/HTML content using XPath expressions, with support for both direct XML input and fetching content from URLs.