Customjs Mcp

space.customjs由 customjs.space 發布官方發布者v1.0.0更新於 Oct 24, 2026

Host static HTML pages, generate PDFs, screenshots, scrape JS sites, run sandboxed JavaScript.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取檔案與儲存開發者工具

概覽

AI 產生的概覽

託管的 CustomJS MCP 伺服器,讓助理發布 HTML 頁面、產生 PDF 與截圖、擷取渲染後的網頁,並在沙箱中執行 JavaScript。

可以做什麼
  • 發布、列出與刪除靜態 HTML 頁面,取得公開網址,同名發布即更新
  • 將 HTML 或 Markdown 轉換為 PDF 文件
  • 對網站擷取整頁截圖
  • 擷取經 JavaScript 渲染後的完整 HTML
  • 在安全沙箱中執行 JavaScript 程式碼
  • 查看頁面、PDF、截圖、擷取與程式碼的內建用法範例
適用情境
適合需要把產生的 HTML 或 Markdown 變成可分享的公開頁面或 PDF、為網站截圖、從依賴 JavaScript 的頁面擷取內容,或在不安裝本機執行環境的情況下執行少量 JavaScript 程式碼的情境。
執行需求
遠端 Streamable HTTP 端點,無需安裝或自行架設。需要 CustomJS API 金鑰,透過 x-customjs-api-key 標頭隨每次請求送出(同時宣告了 OAuth)。部分用戶端需透過 mcp-remote 這個 npm 套件連線。需要能連上 CustomJS 服務的網路。
安裝前請注意
API 金鑰屬於憑證,會隨每次請求送出,請勿寫入共用設定。託管會把內容發布到公開網址,同名再次發布會覆蓋原頁面,刪除操作會移除頁面。擷取與截圖會把目標網址送給第三方服務;由於快取,更新後公開網址可能短暫顯示舊內容。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "customjs": {
      "type": "http",
      "url": "https://mcp.customjs.space/customjs/mcp"
    }
  }
}

README

CustomJS MCP Server

A remote Model Context Protocol server that gives AI agents web superpowers — host HTML pages on a public URL, generate PDFs, capture screenshots, scrape sites, and run sandboxed code — using your own CustomJS API key.

Endpointhttps://mcp.customjs.space/customjs/mcp
TransportStreamable HTTP
Authx-customjs-api-key header (per-user API key)

There's nothing to install or self-host — it's a hosted remote MCP server. Bring your CustomJS API key and connect.

Tools

ToolWhat it does
customjs_host_html_pagePublish static HTML and get a public lp.customjs.space URL (upsert by name)
customjs_list_html_pagesList your hosted pages (name, url, pageId)
customjs_delete_html_pageDelete a hosted page by name or pageId
customjs_html_to_pdfConvert HTML to PDF (Nunjucks templating)
customjs_markdown_to_pdfConvert Markdown to PDF
customjs_screenshotCapture a full-page website screenshot
customjs_scrape_htmlExtract fully-rendered HTML (JavaScript-aware)
customjs_run_codeRun JavaScript in a secure sandbox
customjs_helpBuilt-in usage examples (topics: pages, pdf, screenshot, scraping, code)

Get an API key

Create a free key at https://www.customjs.space/integration/native-api/api-key. Your key is sent per request as the x-customjs-api-key header and is never stored by the connector.

Connect

Claude Code — plugin (recommended)

text
/plugin marketplace add customjs/claude-plugin/plugin install customjs@customjs-tools

You'll be prompted only for your API key. (See customjs/claude-plugin.)

Claude Code — without the plugin

bash
claude mcp add --transport http \  --header "x-customjs-api-key: <your-key>" \  customjs https://mcp.customjs.space/customjs/mcp

Claude Desktop (JSON config via mcp-remote)

json
{  "mcpServers": {    "customjs": {      "command": "npx",      "args": [        "-y", "mcp-remote",        "https://mcp.customjs.space/customjs/mcp",        "--header", "x-customjs-api-key:${CUSTOMJS_API_KEY}"      ],      "env": { "CUSTOMJS_API_KEY": "your-key" }    }  }}

Other MCP clients (Cursor, VS Code, etc.)

Add a remote / HTTP MCP server pointing at https://mcp.customjs.space/customjs/mcp with the header x-customjs-api-key: <your-key>.

Hosting HTML pages

customjs_host_html_page publishes static HTML and returns a public https://lp.customjs.space/<shortId> URL. Hosting again with the same name updates the existing page (upsert by name).

Note: the public URL is served via CloudFront, so immediately after an update it may briefly show the previous content until the cache refreshes.

Official MCP Registry

This server is published to the official MCP Registry as space.customjs/customjs-mcp (DNS-verified on customjs.space) — see server.json. For how it's published and the full directory list, see PUBLISHING.md.

Links

License

The contents of this repository (documentation and registry manifest) are released under the MIT License. The CustomJS service itself requires a valid API key and is governed by CustomJS's terms of service at https://www.customjs.space.

來源:README.md,提交 c009173

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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