MCP Xpath MCP Server

MCP server for xpath

Local serverstdio

What is the MCP Xpath MCP server?

Mcp xpath mcp server lets Claude, Cursor and other MCP clients work with MCP Xpath directly. MCP server for xpath.

What MCP Xpath does

  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

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • Inputs — - xml (string): The XML content to query
  • Returns — The result of the XPath query as a string

Installing the mcp xpath mcp server

The server is distributed via npm as @smithery/cli, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. MCP Xpath sits in that group, and the shape of its toolset — Inputs, Returns — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by thirdstrandstudio.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp xpath mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
Inputs- xml (string): The XML content to query
ReturnsThe result of the XPath query as a string

How to install the MCP Xpath MCP server

{
  "mcpServers": {
    "xpath": {
      "command": "npx",
      "args": [
        "@thirdstrandstudio/mcp-xpath"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP Xpath to Inputs.
  • Use MCP Xpath to Returns.

Frequently asked questions

It connects MCP Xpath to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Inputs, Returns) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Xpath directly.