// api reference

MCP Server

One remote Model Context Protocol server that gives any AI agent the full CustomJS toolbox. Generate PDFs, capture screenshots, scrape pages, and run JavaScript. Add one URL to Claude, Cursor, n8n, or any MCP-compatible client.

Quick Start

MCP Server URL

https://mcp.customjs.space/customjs/mcp

Get your API key from app.customjs.space, 600 free operations every month, no credit card.

Connect your AI client

CustomJS is a remote MCP server. There's nothing to install. Point your client at the URL and pass your API key in the x-api-key header.

Claude Desktop, Cursor & other JSON-configured clients

{
  "mcpServers": {
    "customjs": {
      "url": "https://mcp.customjs.space/customjs/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

n8n

Add the MCP Client tool node to your agent, then configure the connection:

FieldValue
Endpointhttps://mcp.customjs.space/customjs/mcp
Header Namex-api-key
Header ValueYOUR_API_KEY

Available tools

Once connected, your agent can call any of these tools on its own. No per-tool setup. Each links to its full REST reference.

ToolWhat the agent can doReference
HTML/Markdown to PDFGenerate professional PDFs from HTML or Markdown. Invoices, reports, resumes, documents.HTML to PDF →
Screenshot URLsCapture any web page as a PNG, with automation and custom wait times for dynamic content.Screenshot API →
Website ScrapingExtract content and structured data from websites for analysis, monitoring, or collection.Web Scraper API →
JavaScript ExecutionRun custom JavaScript for data transformation, calculations, and complex logic.JS Execution →

Example prompts

Just ask in plain language. The agent picks the right tool and returns a result (usually a download URL).

PDF

“Generate a professional invoice PDF for Acme Corp. Web Design 40h at $95, Hosting $250, total $4,050 due March 15. Return only the download URL.”

Screenshot

“Take a full-page screenshot of stripe.com, accept the cookie banner first, and return the image URL.”

Scraping

“Scrape the top 10 product names and prices from this page and return them as JSON.”

JavaScript

“Run JavaScript to convert this CSV into JSON and return the result.”

Authentication & limits

ItemDetail
Headerx-api-key: YOUR_API_KEY on every request
TransportRemote MCP over HTTP. No local install
Free tier600 operations / month, shared across all tools

// get started

Give your agent real-world tools.

Grab a free API key, drop the server URL into your MCP client, and your AI can generate PDFs, take screenshots, scrape pages, and run code. All on its own.

mcp.json
{
  "mcpServers": {
    "customjs": {
      "url": "https://mcp.customjs.space/customjs/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

Works with Claude, Cursor, n8n & more

Frequently Asked Questions