Connect Customjs to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the generate image tool in Customjs
Use the generate pdf from html tool in Customjs
Use the execute java script tool in Customjs
Use the check ssl certificate tool in Customjs
Use the scrape website tool in Customjs
Use the manage html pages tool in Customjs
Supported Tools
generate_image
Generate Image
Generates PNG images from HTML content or captures high-resolution screenshots of websites. Use **html_to_png** to convert styled HTML into images (useful for charts, infographics, OG images). Use **screenshot** to capture a snapshot of any public URL with optional browser automation commands and cropping.
generate_pdf
Generate PDF from HTML
Converts HTML content into a pixel-perfect PDF document. Supports styled HTML with CSS, Nunjucks templating with data variables, and custom page dimensions. Ideal for generating invoices, reports, certificates, and other structured documents.
execute_javascript
Execute JavaScript
Executes custom JavaScript code on the CustomJS platform and returns the result. Supports Node.js with available NPM modules including axios, moment, uuid, jsonwebtoken, crypto, openai, and many more. Use this for data transformations, calculations, API integrations, and custom business logic.
check_ssl
Check SSL Certificate
Checks the SSL certificate status of a domain and retrieves certificate details including expiration date. Useful for monitoring SSL certificates and detecting upcoming expirations.
scrape_website
Scrape Website
Crawls a website and extracts its HTML content. Supports browser automation commands to interact with the page before extraction — click buttons, type into inputs, scroll, wait for elements, and more. Returns the raw HTML of the page after all commands have been executed.
manage_pages
Manage HTML Pages
Deploy, update, list, retrieve, or delete hosted HTML pages on CustomJS. Pages are deployed instantly with no build steps required. Use this for landing pages, AI-generated pages, campaign pages, and prototypes. Supports custom slugs for friendly URLs.
manipulate_pdf
Manipulate PDF
Performs various operations on PDF files: merge multiple PDFs into one, extract specific pages, compress to reduce file size, convert to text, convert to PNG image, read form field names, or fill form fields. Provide PDF files as public URLs.
convert_document
Convert Document
Converts between document formats. Supports: **Markdown to PDF**, **Markdown to HTML**, **HTML to DOCX** (Word). Useful for generating documents from structured content.
execute_python
Execute Python
Executes custom Python code on the CustomJS platform and returns the result. Suitable for data analysis, API interactions, or any logic better suited to Python.
process_data
Process Data
Data processing utilities for JSON and text. Supports **JSONPath** queries to extract values from nested JSON structures, and **Regex** operations (extract, replace, test, split) for pattern matching on text data.
extract_web_data
Extract Web Data
Extract structured data or page content with the CustomJS browser agent. Describe the source website and the information to collect in plain language.
get_account
Get Account
Get the workspace, account owner, and request allowance associated with the connected API key.
execute_stored_function
Execute Stored Function
Run a reusable function saved in the CustomJS Code Editor by its Script ID, passing the function its expected JSON data.
Enable Customjs in Metorial. In your Metorial portal, enable the Customjs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Customjs tools.
Enable Customjs in Metorial. In your Metorial portal, enable the Customjs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Customjs tools.
Enable Customjs in Metorial. In your Metorial portal, enable the Customjs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Customjs tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Customjs in Metorial. In your Metorial portal, enable the Customjs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Customjs tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Customjs in Metorial. In your Metorial portal, enable the Customjs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Customjs tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Customjs through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Customjs and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Customjs tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Execute custom JavaScript and Python code via API. Generate PDFs from HTML, merge, split, compress, and extract text from PDFs. Convert HTML to PNG images and capture website screenshots. Scrape web content and automate browser interactions with Puppeteer. Host static HTML pages and forms. Create mail hooks that forward incoming emails to webhooks. Process data with JSON Path selectors and Regex operations. Run stored reusable functions and check SSL certificates.
Frequently asked questions
Common questions about connecting Customjs to AI agents with Metorial.
How many tools does the Customjs MCP server have?
The Customjs MCP server exposes 13 tools, including Generate Image, Generate PDF from HTML, Execute JavaScript. Each one is governed and traced through Metorial.
Does the Customjs MCP server support triggers?
Customjs exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Customjs MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Customjs MCP server through the same Metorial URL.
How do I give only some teams access to Customjs?
Use role-based access control to decide which teams, users, and agents can use Customjs and which of its tools they can call.
Can I self-host the Customjs MCP server?
Yes. Metorial is open source, so you can run the Customjs MCP server yourself or use the hosted gateway.
Connect Customjs to production AI agents
See how Metorial gives your team governed access to Customjs, with tracing and security controls built in.