
Pageport
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Oct 29, 2026
Fetch a URL and return its contents as readable markdown text.
概览
抓取指定 URL 并通过 HTTP 取回内容,以易读的 markdown 风格文本返回,长页面可分页读取。
- 可以做什么
- 抓取 URL 并以整洁的 markdown 风格文本返回内容,也可按需返回未改动的原始文档。
- 通过起始位置和最大长度分块读取长页面,内容被截断时会给出下一段的偏移量。
- 以浏览器风格请求并跟随重定向,纯文本等非 HTML 响应原样返回。
- 主机不可达或返回错误状态时,明确返回带原因的错误结果。
- 适用场景
- 适合助手需要把某个具体网页当作文本读取、浏览、引用或总结时使用,尤其是需要分段读取的长页面。它是单一用途的抓取工具,而非搜索或爬虫工具。
- 运行要求
- 以本地 stdio 进程运行,可通过 npx 使用 npm 包,或以 Docker 容器运行。未声明任何账号、API 密钥、环境变量或请求头。需要出站网络访问以连接目标 URL。
安装
在 SourceWeft 中
- 打开 控制台中的 Pageport,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
pageport
Fetch a web page and read it as text. pageport retrieves a URL over HTTP, turns HTML pages into clean markdown-style text you can scan or quote, and hands non-HTML responses back exactly as they arrive. Long pages are not a problem: ask for a window of characters, then page forward through the rest with an offset.
What it does
- Sends a normal browser-style request and follows redirects.
- Converts HTML to readable markdown-style output: headings keep their levels, links keep their targets, lists stay lists, and script or style content is dropped instead of polluting the text.
- Returns the untouched document when you ask for raw output, and returns plain-text or other non-HTML bodies unchanged.
- Slices long results: choose where reading starts and how many characters come back. When a result is cut short, the output says so and tells you the offset to use for the next chunk.
- Reports failures plainly: an unreachable host or an error status comes back as an error result with the reason, never as empty success.
CLI
Exit codes: 0 on success, 1 on a fetch error, 2 on a usage error.
MCP server
The same binary runs as a stdio MCP server:
MCP client configuration:
Tool: fetch
Fetches a URL from the internet and optionally extracts its contents as markdown.
Docker
The container defaults to the mcp subcommand, so a plain docker run -i
is a working stdio MCP server.
Development
Tests cover the HTML conversion, the slicing and truncation behaviour, and the fetch flow against injected responses — no network is needed.
License
MIT — see LICENSE.
来源:README.md,提交 21266fc
工具
0版本历史
1- v0.1.0最新Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分