Screenshotline

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

Screenshot any web page, or read it as clean Markdown, with consent banners, ads and popups removed.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取瀏覽器自動化

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,讓助理把網頁截成圖片,或讀取為去除橫幅、廣告和彈出視窗後的乾淨 Markdown。

可以做什麼
在重視版面或視覺外觀時,把網頁截取為圖片,並處理同意橫幅、廣告、延遲載入圖片和延後渲染的單頁應用程式。渲染網頁並以乾淨的 Markdown 回傳內容,方便閱讀或推理文字。兩個工具都會先完整渲染頁面,執行 JavaScript 並移除橫幅、廣告、聊天元件和電子報彈出視窗,因此對一般 HTTP 抓取拿不到內容的網站同樣有效。空白截圖會以警告回報,不會被當成頁面內容呈現。
適用情境
適合助理需要查看頁面外觀,或需要從一般抓取無法處理的 JavaScript 密集型網站讀取內容的情況。需要視覺版面時用截圖工具,只需要文字時用 Markdown 工具。
執行需求
透過 streamable HTTP 連線到 api.screenshotline.com 的遠端端點。需要 API 金鑰,放在 X-Access-Key 標頭中,從服務商帳戶頁面取得;免費額度每月 500 次渲染,不需信用卡。README 也記錄了本機 npm 橋接套件,以 SCREENSHOTLINE_ACCESS_KEY 設定,並可用 SCREENSHOTLINE_BASE_URL 指向自架渲染服務。
安裝前請注意
必須提供 X-Access-Key 憑證並傳送給託管 API,所有渲染都在該第三方完成,因此頁面網址和內容會經過該服務。用量依金鑰的每月渲染額度計算。README 的本機安裝範例把金鑰放在環境變數中,請避免寫入共用設定。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Screenshotline,將其新增到工作區。
  2. 連接 X-Access-Key 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.MAMubeenKhan%2Fscreenshotline/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "screenshotline": {
      "type": "http",
      "url": "https://api.screenshotline.com/mcp",
      "headers": {
        "X-Access-Key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

screenshotline-mcp

An MCP server that gives an agent two tools:

  • screenshot — capture a web page as an image, for when the layout is the answer.
  • read_page — render the page, then return its text as clean Markdown, for when the text is.

Pages are fully rendered first: JavaScript executed, consent banners removed, lazy images loaded, ads, chat widgets and newsletter popups stripped. So read_page works on sites that return nothing useful to a plain HTTP fetch. A capture that comes back blank is reported as a warning, not narrated as though it were the page.

Install

Get a free key at screenshotline.com/account — 500 renders a month, no card. Then, in Claude Code:

bash
claude mcp add screenshotline -e SCREENSHOTLINE_ACCESS_KEY=sl_live_... -- npx -y screenshotline-mcp

Or in any MCP client's JSON config (Claude Desktop, Cursor, and others):

json
{  "mcpServers": {    "screenshotline": {      "command": "npx",      "args": ["-y", "screenshotline-mcp"],      "env": { "SCREENSHOTLINE_ACCESS_KEY": "sl_live_..." }    }  }}

Self-hosted

The renderer is open source. Point the server at your own instance and no key is needed unless you configured one:

bash
SCREENSHOTLINE_BASE_URL=http://localhost:3000 npx -y screenshotline-mcp
VariableDefault
SCREENSHOTLINE_ACCESS_KEY—Your API key. Required for the hosted API.
SCREENSHOTLINE_BASE_URLhttps://api.screenshotline.comAny Screenshotline instance.

This package is only the MCP bridge — one file plus the MCP SDK. It does not download a browser; the rendering happens on the API it points at.

Docs: screenshotline.com/docs/extract · License: AGPL-3.0-or-later

來源:mcp/README.md,提交 ab31916

工具

2

screenshot

Capture a screenshot of a web page and return it as an image. Handles consent banners, ads, lazy-loaded images and late-rendering SPAs. Use this when the layout, styling or visual appearance is what matters; use read_page when you only need the text.

輸入參數url必填formatselectorblock_adsfull_pageblock_chatsblock_popupscolor_schemeviewport_widthviewport_heightblock_cookie_banners

read_page

Render a web page and return its content as clean Markdown. The page is fully rendered first - JavaScript executed, consent banners dismissed, lazy images loaded - so this works on sites that return nothing useful to a plain HTTP fetch. Prefer this over screenshot when you need to read or reason about the text.

輸入參數url必填max_charsblock_chatsblock_popupsstrip_chromeblock_cookie_banners

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分