这是一个强大的MCP服务器,可轻松抓取网络内容,并将其转换为HTML、JSON、Markdown、纯文本等多种格式,为内容处理提供便利。
本项目提供了便捷的安装和使用方式,以下是快速上手的步骤:
npm install -g @tokenizin/mcp-npx-fetch
npx mcp-npx-fetch
直接在终端运行以下命令获取帮助:
mcp-npx-fetch --help
settings.json
文件。{
"mcp-npx_FETCH": {
"path": "node_modules/@tokenizin/mcp-npx-fetch/dist/index.js",
"args": []
}
}
npm install -g @tokenizin/mcp-npx-fetch
npx mcp-npx-fetch
mcp-npx-fetch --input "https://example.com" --output "./result.md"
mcp-npx-html-to-md --input "./index.html" --output "./document.md"
mcp-npx-fetch
参数名 | 类型 | 描述 |
---|---|---|
input |
string | 需要处理的输入路径或内容 |
output |
string | 输出结果的保存路径 |
mcp-npx-fetch --input "https://example.com" --output "./result.md"
html-to-md
将 HTML 内容转换为 Markdown 格式。
mcp-npx-html-to-md --input "./index.html" --output "./document.md"
本项目采用了以下技术栈:
欢迎贡献!请随意提交 Pull Request。对于重大更改,请先打开问题讨论您想更改的内容。
git checkout -b feature/AmazingFeature
)。git commit -m '添加一些 AmazingFeature'
)。git push origin feature/AmazingFeature
)。此项目在 MIT 许可证下发布,详细信息请参阅 LICENSE 文件。