# customjs-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/customjs/customjs-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/customjs-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **customjs_host_html_page** — Publish static HTML and get a public `lp.customjs.space` URL (upsert by name)
- **customjs_list_html_pages** — List your hosted pages (name, url, pageId)
- **customjs_delete_html_page** — Delete a hosted page by name or pageId
- **customjs_html_to_pdf** — Convert HTML to PDF (Nunjucks templating)
- **customjs_markdown_to_pdf** — Convert Markdown to PDF
- **customjs_screenshot** — Capture a full-page website screenshot
- **customjs_scrape_html** — Extract fully-rendered HTML (JavaScript-aware)
- **customjs_run_code** — Run JavaScript in a secure sandbox
- **customjs_help** — Built-in usage examples (topics: pages, pdf, screenshot, scraping, code)

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "customjs-mcp": {
    "url": "https://mcp.customjs.space/customjs/mcp"
  }
}
```

## Documentation

## What customjs-mcp does

The customjs-mcp MCP server exposes CustomJS web and document operations to MCP-compatible clients. It can publish static HTML at a public `lp.customjs.space` URL, enumerate or remove hosted pages, render HTML or Markdown as PDFs, capture full-page screenshots, retrieve HTML after JavaScript rendering, and execute JavaScript in a secure sandbox.

Hosted pages are managed by name or page ID. Publishing with an existing name updates that page rather than creating another one. The service is useful for agents that need to turn generated content into a reachable page or document, inspect JavaScript-driven websites, or perform bounded JavaScript processing.

## How it works

The service is remote and uses Streamable HTTP. Clients connect to `https://mcp.customjs.space/customjs/mcp` and send the per-user CustomJS API key in the `x-customjs-api-key` header. The connector does not require a local installation or self-hosted deployment.

The page-hosting operation returns a public URL. Because those pages are delivered through CloudFront, an update may briefly continue showing the previous content while the cache refreshes. PDF conversion supports Nunjucks templating for HTML input; Markdown conversion accepts Markdown directly. Scraping returns fully rendered HTML, making it suitable for pages whose content depends on JavaScript.

## Setup and configuration

Create a CustomJS API key at the CustomJS native API key page, then configure an MCP client with the remote endpoint and header. Claude Code can use the documented HTTP registration command or the CustomJS Claude Code plugin. Claude Desktop can connect through `mcp-remote`, with `CUSTOMJS_API_KEY` supplied as an environment variable. Cursor and VS Code can be configured as remote or HTTP MCP clients using the same endpoint and header.

Keep the API key outside prompts and source files where possible. The key is sent with each request. The repository documentation states that the connector does not store it.

## Tools and capabilities

The customjs-mcp MCP server provides these tools:

- `customjs_host_html_page` publishes static HTML and upserts by name.
- `customjs_list_html_pages` lists hosted page names, URLs, and page IDs.
- `customjs_delete_html_page` removes a page by name or page ID.
- `customjs_html_to_pdf` converts HTML to PDF with Nunjucks templating.
- `customjs_markdown_to_pdf` converts Markdown to PDF.
- `customjs_screenshot` captures a full-page website screenshot.
- `customjs_scrape_html` extracts JavaScript-rendered HTML.
- `customjs_run_code` runs JavaScript in a secure sandbox.
- `customjs_help` returns usage examples for pages, PDFs, screenshots, scraping, and code.

## Limitations and notes

A valid CustomJS API key is required to use the hosted service. Public page updates may not appear immediately because of CDN caching. The repository is released under MIT, while use of the CustomJS service is subject to CustomJS terms of service.

_Full upstream README: https://allmcps.com/mcp/customjs-mcp/readme_

