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
Offers direct Node.js execution capabilities for the MCP server, with configuration options for connecting the XPath functionality to Node.js environments.
Enables execution of XPath queries on XML content, allowing content extraction and transformation from XML documents with support for various MIME types including text/xml and application/xml.
XPath MCP 服务器
MCP 服务器用于对 XML 内容执行 XPath 查询。
工具
xpath
- 使用 XPath 表达式查询 XML 内容
- 输入:
xml
(字符串):要查询的 XML 内容query
(字符串):要执行的 XPath 查询mimeType
(可选,字符串):MIME 类型(例如 text/xml、application/xml、text/html、application/xhtml+xml)
- 返回:XPath 查询的结果作为字符串
xpathwithurl
- 从 URL 获取内容并使用 XPath 表达式进行查询
- 输入:
url
(字符串): 获取 XML/HTML 内容的 URLquery
(字符串):要执行的 XPath 查询mimeType
(可选,字符串):MIME 类型(例如 text/xml、application/xml、text/html、application/xhtml+xml)
- 返回:XPath 查询的结果作为字符串
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 mcp-xpath:
设置
与 Claude Desktop 一起使用
将以下内容添加到您的claude_desktop_config.json
中:
NPX
直接使用 Node.js
将/path/to/mcp-xpath
替换为您的存储库的实际路径。
示例
查询 XML 内容
查询 HTML 内容
查询 URL 内容
发展
执照
此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。
This server cannot be installed
用于对 XML 内容执行 XPath 查询的 MCP 服务器