Pageport

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Oct 29, 2026

Fetch a URL and return its contents as readable markdown text.

概覽

AI 產生的概覽

抓取指定 URL 並透過 HTTP 取回內容,以易讀的 markdown 風格文字回傳,長頁面可分頁讀取。

可以做什麼
  • 抓取 URL 並以乾淨的 markdown 風格文字回傳內容,也可依需求回傳未經處理的原始文件。
  • 透過起始位置與最大長度分段讀取長頁面,內容被截斷時會提供下一段的偏移量。
  • 以瀏覽器風格請求並跟隨重新導向,純文字等非 HTML 回應原樣回傳。
  • 主機無法連線或回傳錯誤狀態時,明確回傳附帶原因的錯誤結果。
適用情境
適合助理需要把某個特定網頁當作文字讀取、瀏覽、引用或摘要時使用,尤其是需要分段讀取的長頁面。它是單一用途的抓取工具,而非搜尋或爬蟲工具。
執行需求
以本機 stdio 程序執行,可透過 npx 使用 npm 套件,或以 Docker 容器執行。未宣告任何帳號、API 金鑰、環境變數或請求標頭。需要對外網路連線以連上目標 URL。
安裝前請注意
伺服器會請求助理提供的任意 URL,抓取內容來自第三方,可能不可信或有誤導性。它只讀取頁面,未描述寫入、傳送或刪除操作。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pageport,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
npx @reneturcios/pageport fetch https://example.comnpx @reneturcios/pageport fetch https://example.com --max-length 2000npx @reneturcios/pageport fetch https://example.com --start-index 2000 --max-length 2000npx @reneturcios/pageport fetch https://example.com --rawnpx @reneturcios/pageport --version

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:

bash
npx -y @reneturcios/pageport mcp

MCP client configuration:

json
{  "mcpServers": {    "pageport": {      "command": "npx",      "args": ["-y", "@reneturcios/pageport", "mcp"]    }  }}

Tool: fetch

Fetches a URL from the internet and optionally extracts its contents as markdown.

ParameterTypeRequiredDefaultMeaning
urlstringyes—URL to fetch
max_lengthintegerno5000Maximum number of characters to return
start_indexintegerno0Start index for content
rawbooleannofalseReturn raw HTML instead of markdown conversion

Docker

bash
docker run -i ghcr.io/cloudcorprecords/pageportdocker run --rm ghcr.io/cloudcorprecords/pageport fetch https://example.com

The container defaults to the mcp subcommand, so a plain docker run -i is a working stdio MCP server.

Development

bash
npm installnpm run buildnpm testnpm run dev

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分