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 分