Token导航 LogoToken导航TokenDH.com
XPath MCP logo
浏览器工具stdio官方级别未说明来源级核验

XPath MCP

MCP Server

@smithery/cli

用于执行XPath查询的MCP服务器,支持对XML和HTML内容进行查询,并可从URL获取内容进行查询。

工具数

2

提示词数

0

GitHub Stars

1

资源数

0
JavaScriptClaude数据提取Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

thirdstrandstudio

提供方

thirdstrandstudio

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @thirdstrandstudio/mcp-xpath --client claude

详细介绍

](https://mseep.ai/app/thirdstrandstudio-mcp-xpath)

XPath MCP服务器

![Third Strand Studio](https://tss.topiray.com)

用于对XML内容执行XPath查询的MCP服务器。

image

](https://smithery.ai/server/@thirdstrandstudio/mcp-xpath)

工具

  1. xpath

- 使用XPath表达式查询XML内容 - 输入: - xml (string):要查询的XML内容 - query (string):要执行的XPath查询 - mimeType (可选,字符串):MIME类型(例如text/xml、application/xml、text/html、application/xhtml+xml) - 返回:XPath查询的结果为字符串

  1. xpathwithurl

- 从URL获取内容,并使用XPath表达式进行查询 - 输入: - url (string):从中获取XML/HTML内容的URL - query (string):要执行的XPath查询 - mimeType (可选,字符串):MIME类型(例如text/xml、application/xml、text/html、application/xhtml+xml) - 返回:XPath查询的结果为字符串

安装

通过Smithery安装

通过以下方式自动安装mcp-xpath for Claude Desktop 史密瑟里:

npx -y @smithery/cli install @thirdstrandstudio/mcp-xpath --client claude
# Install dependencies
npm install

# Build the package
npm run build

设置

使用Claude Desktop

将以下内容添加到您的 claude_desktop_config.json:

新巴拿马型船舶

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

直接Node.js

{
  "mcpServers": {
    "xpath": {
      "command": "node",
      "args": [
        "/path/to/mcp-xpath/dist/index.js"
      ]
    }
  }
}

替换 /path/to/mcp-xpath 使用存储库的实际路径。

例子

查询XML内容

// Select all  elements from XML
const result = await callTool("xpath", {
  xml: "value1value2",
  query: "//item/text()",
  mimeType: "text/xml"
});

查询HTML内容

// Get all links from HTML
const result = await callTool("xpath", {
  xml: "Link 1Link 2",
  query: "//a/@href",
  mimeType: "text/html"
});

查询URL内容

// Get all links from a webpage
const result = await callTool("xpathwithurl", {
  url: "https://example.com",
  query: "//a/@href",
  mimeType: "text/html"
});

发展

# Install dependencies
npm install

# Start the server in development mode
npm start

许可证

此MCP服务器根据MIT许可证获得许可。这意味着您可以根据MIT许可证的条款和条件自由使用、修改和分发软件。有关更多详细信息,请参阅项目存储库中的LICENSE文件。

目录标签

目录标签

JavaScriptClaude数据提取XML处理本地部署XPath查询HTML解析MCP服务器

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

remote-capable

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP