Basic information
About XPath MCP Server
XPath enables Claude to execute xpath queries on XML and HTML, supporting web scraping for structured data extraction with xpath.
XPath is a MCP server in the Search Web category listed in the AddMCP.net directory, published by thirdstrandstudio. It exposes 2 tools, including xpath, xpathwithurl. Supported transport: stdio. Runtime: JavaScript. License: MIT. Source code is hosted on github.com. Related topics: community, developer-tools, search-web, xml-query, xpath.
Setup
{
"mcpServers": {
"xpath": {
"command": "npx",
"args": [
"@thirdstrandstudio/mcp-xpath"
]
}
}
}
{
"mcpServers": {
"xpath": {
"command": "npx",
"args": [
"@thirdstrandstudio/mcp-xpath"
]
}
}
}
{
"servers": {
"xpath": {
"command": "npx",
"args": [
"@thirdstrandstudio/mcp-xpath"
]
}
}
}
XPath MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"xpath": {
"command": "npx",
"args": [
"@thirdstrandstudio/mcp-xpath"
]
}
}
}
XPath MCP Server tools
- xpath — Select query XML content using XPath
- xpathwithurl — Fetch content from a URL and select query it using XPath
Overview
What is XPath?
Xpath is an MCP server that executes XPath queries on XML and HTML content. It provides two tools—one for querying XML strings directly and another for fetching content from a URL and then querying it. The server is designed for developers and AI assistants that need to extract structured data from XML or HTML documents.
How to use XPath?
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.
Key features of XPath
- 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:
xpathandxpathwithurl - Returns query results as plain strings
- Easy integration with Claude Desktop and other MCP clients
Use cases of XPath
- Extract specific elements or attributes from XML data feeds
- Scrape links, headings, or other data from HTML web pages
- Parse API responses or configuration files in XML format
- Automate data extraction from HTML documents within an AI workflow
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In