Customjs MCP server

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.

What you can do with the Customjs MCP server

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.

Connect Customjs to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. 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.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Customjs tools.

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.

More integrations teams use with Customjs

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Microsoft Outlook

Send, read, reply to, forward, and manage email messages in user mailboxes. Organize messages into folders, apply categories, flags, and importance levels. Manage file and item attachments. Create, update, delete, and respond to calendar events and meetings. Find available meeting times, manage attendees, handle recurrence, and work with shared or delegated calendars. Create, read, update, and delete contacts, organize them into contact folders, and manage contact photos. Manage tasks and task lists via Microsoft To Do, including due dates, reminders, recurrence, and checklist items. Subscribe to webhook notifications for changes to messages, calendar events, and contacts. Support for Focused Inbox, @-mentions, mail tips, send-on-behalf, and send-as capabilities.

Linear

Create, read, update, and delete issues across teams with support for priorities, labels, assignees, due dates, and workflow states. Manage projects that group related issues, and organize work into time-boxed cycles (sprints). Create and manage documents, comments, and file attachments. Search issues using vector similarity or rich filters. Configure teams, workflow states, and labels. Track customers and link them to issues.

Jira

Create, read, update, and delete issues across projects. Search issues using JQL queries. Manage projects, boards, sprints, and epics for agile workflows. Log work time, add comments and attachments, and transition issues through workflow statuses. Create and manage project versions/releases, issue links, filters, and dashboards. Query users, groups, and permissions.

Technical notes for Customjs

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.

  1. 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.
  2. Customjs exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Customjs MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Customjs and which of its tools they can call.
  5. 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.