xpath
Select query XML content using XPath
Run an XPath expression against XML you already hold, or against a URL the server fetches for you first.
LABSCO SUMMARY
There is nothing to authenticate and nothing to set up, which makes this the extraction half of a scraping loop rather than a scraper — xpathwithurl retrieves and applies the expression in the same call, and xpath does the same for content already in hand. mimeType is the one real control, deciding how the content is parsed before the expression runs against it. What is absent is everything around the extraction: no pagination, no session, no rendering step. The input is a document and the output is what the XPath selects, which is the right size of tool when something else in the chain is already doing the fetching.
An XPath query server of 2 tools: one that queries XML content passed inline, one that fetches a URL and queries what comes back, both taking the expression and a mimeType.
No credentials at all. For xpath, the XML content itself; for xpathwithurl, a url the machine running the server can reach.
One command — npx @thirdstrandstudio/mcp-xpath
USE CASES
Give it the address and the expression, and let retrieval and extraction happen in the same call.
Pass the XML through with the expression when something else in the chain has already done the fetching.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
xpathSelect query XML content using XPath
xpathwithurlFetch content from a URL and select query it using XPath
BEFORE YOU INSTALL
2 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 2 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-xpath": {
"command": "npx",
"args": [
"@thirdstrandstudio/mcp-xpath"
]
}
}
}npx @thirdstrandstudio/mcp-xpath