Skip to main content
Glama

Zactonz MCP server

A Model Context Protocol server for the Zactonz APIs. It lets an AI assistant capture a screenshot of a web page, read a page as Markdown, preview a link, look up DNS, SSL and WHOIS records, check a domain's email setup, verify addresses, generate QR codes, barcodes and social card images, convert images and translate text.

It runs on your machine: over stdio, started by your MCP client, or as a small HTTP service that several agents share. It needs Node.js 20 or newer.

Install

There is nothing to install ahead of time. The client configurations below run npx -y @zactonz/mcp, which fetches the package on first use and keeps it cached. You need Node.js 20 or newer.

Skip to Setup unless you want to run it from a checkout.

From source

Useful for pinning a particular commit, working on the server, or running without a registry. Needs Node.js 20 or newer and git.

git clone https://github.com/zactonz/zactonz-mcp.git
cd zactonz-mcp
npm ci --omit=dev

That is the whole install: two runtime dependencies, no build step. Check it starts — it will wait for input, so press Ctrl+C to leave:

node bin/zactonz-mcp.js

Then point your client at the absolute path, in place of the npx form used below:

{
  "mcpServers": {
    "zactonz": {
      "command": "node",
      "args": ["/absolute/path/to/zactonz-mcp/bin/zactonz-mcp.js"],
      "env": {
        "ZACTONZ_API_KEYS": "zk_screen_…,zk_markdown_…"
      }
    }
  }
}

Use the real absolute path — ~ and relative paths are not expanded by most clients. On Windows, write it with forward slashes or escaped backslashes, for example C:/Users/you/zactonz-mcp/bin/zactonz-mcp.js.

For Claude Code:

claude mcp add zactonz --env ZACTONZ_API_KEYS="zk_screen_…" -- node /absolute/path/to/zactonz-mcp/bin/zactonz-mcp.js

If you would rather have zactonz-mcp on your PATH, run npm link in the clone, then use "command": "zactonz-mcp" with no args.

To update later: git pull && npm ci --omit=dev.

Related MCP server: rasterly-mcp

Setup

  1. Create a key for each product you want to use in the API console. There is a free plan.

  2. Add the server to your MCP client, with the keys in ZACTONZ_API_KEYS separated by commas.

If you installed from source instead, substitute the "command" and "args" shown there for the npx form used below.

Clients that read an mcpServers block, such as Claude Desktop, Cursor and Windsurf:

{
  "mcpServers": {
    "zactonz": {
      "command": "npx",
      "args": ["-y", "@zactonz/mcp"],
      "env": {
        "ZACTONZ_API_KEYS": "zk_screen_…,zk_markdown_…,zk_domain_…"
      }
    }
  }
}

VS Code (.vscode/mcp.json):

{
  "servers": {
    "zactonz": {
      "command": "npx",
      "args": ["-y", "@zactonz/mcp"],
      "env": { "ZACTONZ_API_KEYS": "zk_screen_…,zk_markdown_…" }
    }
  }
}

Claude Code:

claude mcp add zactonz --env ZACTONZ_API_KEYS="zk_screen_…,zk_markdown_…" -- npx -y @zactonz/mcp

On Windows, if the client cannot start npx directly, use "command": "cmd" with "args": ["/c", "npx", "-y", "@zactonz/mcp"].

Keys

A Zactonz key works for one product, and the product is part of the key: zk_screen_… is a screenshot key, zk_markdown_… a Markdown key. Put every key you have in ZACTONZ_API_KEYS. The server uses the right one for each call and offers the assistant only the tools those keys can call.

Keys stay in the server process. They are sent to api.zactonz.com in the Authorization header and nowhere else, and they are never included in anything returned to the assistant.

Serving several agents

A client that starts the server itself gets a process of its own, which is what stdio is for. A self-hosted agent is often not that: there are several of them, they come and go, and they run where no parent process can start one. Run the server once instead and let them connect over HTTP:

ZACTONZ_API_KEYS="zk_screen_…,zk_markdown_…" npx -y @zactonz/mcp --http

It listens on http://127.0.0.1:8808/mcp, loopback only. Point a client at that URL as a remote MCP server. For Claude Code:

claude mcp add --transport http zactonz http://127.0.0.1:8808/mcp

Keys per request

A request may bring its own keys, in the x-zactonz-api-keys header or as a bearer token:

curl -sS http://127.0.0.1:8808/mcp -H 'x-zactonz-api-keys: zk_qr_…' -H 'accept: application/json, text/event-stream' -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Those keys are used for that request and no other: the tools the caller is offered, and the quota a call spends, follow the key in the header. So two agents holding different keys can share one process without seeing each other's tools or spending each other's quota.

A request that brings no keys is answered with the keys in ZACTONZ_API_KEYS. Set ZACTONZ_MCP_REQUIRE_KEY_HEADER=1 to refuse it instead, and make every caller bring its own.

With Claude Code the header goes on the server:

claude mcp add --transport http zactonz http://127.0.0.1:8808/mcp --header "x-zactonz-api-keys: zk_qr_…"

In a container

Inside a container the server has to bind every interface to be reachable through a port mapping. Set ZACTONZ_MCP_HOST=0.0.0.0, put the keys in ZACTONZ_API_KEYS, run the server with --http, and publish port 8808.

Binding away from loopback makes the server reachable from outside the machine, and it has no authentication of its own: a caller is whoever holds a Zactonz key. The server says as much on stderr when it starts. Put TLS in front of it, name the hosts it should answer to in ZACTONZ_MCP_ALLOWED_HOSTS, and consider requiring the key header.

GET /healthz answers a liveness probe with the version, how many API-backed tools the build carries, whether the process has keys — never which products they are for — and what the process is currently sending to the API. It makes no request and spends nothing. Its apiTools count is not what a caller is offered: that depends on the keys the caller brings, and tools/list also returns check_api_key.

One cap on outbound calls covers the whole process, not each request, since that is the only place a fleet's traffic can be held back: see Limits and timing.

What it does not keep

Nothing is remembered between requests. Each one is answered by a server built around that request's keys and discarded with it, which is what keeps the keys from reaching the next caller. There is no session, so GET /mcp and DELETE /mcp answer 405: this server has nothing to stream and nothing to end. Requests beyond ZACTONZ_MCP_MAX_REQUESTS at once are refused with a 503 and a Retry-After rather than queued.

Tools

Tool

Purpose

Key

capture_screenshot

Capture a web page as an image or PDF

screen

render_html

Render HTML to an image or PDF

screen

read_webpage

Read a web page as Markdown

markdown

convert_html_to_markdown

Convert HTML to Markdown

markdown

preview_link

Title, description, image and metadata of a URL

unfurl

lookup_dns

DNS records and DNSSEC status

domain

inspect_ssl_certificate

Certificate, chain, expiry and TLS details

domain

lookup_whois

Registrar, dates and nameservers of a domain

domain

check_email_domain

MX, SPF, DKIM, DMARC and related records, scored

email

verify_emails

Whether addresses can receive mail

mverifier

generate_qr_code

Generate a QR code

qr

read_qr_code

Decode a QR code

qr

generate_barcode

Generate a barcode

barcode

generate_social_image

Generate an Open Graph image

og

convert_image

Convert, resize or crop an image

image

inspect_image

Dimensions, format and colours of an image

image

translate_text

Translate between 46 languages

translator

get_drive_download_link

Direct download link for a Google Drive file

gdrive

check_api_key

Plan and remaining quota of a key

any

docs/tools.md lists the arguments of each tool.

Example requests once it is connected:

  • "Take a screenshot of example.com on a 390 pixel wide screen and tell me whether the menu fits."

  • "Read https://example.com/pricing and summarise the plans."

  • "Does example.com have SPF and DMARC set up correctly?"

  • "When does the SSL certificate for example.com expire?"

Results

A tool returns the answer twice over: as text for an assistant to read, and as structured content for a caller that would rather not parse anything. Both describe the same payload, and every tool whose response the API documents also advertises an outputSchema, so a caller knows the shape before it calls.

Seventeen of the nineteen tools tools/list returns carry a schema. The two without are verify_emails, whose endpoint does not document its response, and check_api_key, which this server adds itself and whose endpoint has no specification here either. Both still return structured content; neither promises a shape, because a schema that was invented rather than documented would be worse than none.

Two things differ from the raw API:

  • read_webpage and convert_html_to_markdown return the Markdown as plain text, followed by the remaining fields as JSON. They request at most 20,000 characters unless the assistant asks for more.

  • A tool that produces an image returns the link and, when the file is 750 KB or smaller, the image as well, so the assistant can look at it. capture_screenshot and render_html use JPEG quality 80 unless told otherwise, to stay under that size. PDFs and larger images are returned as a link only.

A refused call is returned as a tool error carrying the API's message, the status, how long to wait when a limit was reached, and the request id.

References

Each offered tool also has a reference resource at zactonz://tools/<name>, holding the endpoint behind it, the statuses the API documents for it, whether it returns third-party text, and the page that explains it. Reading one spends no quota and makes no request, so an unattended caller can work out how it will handle a 429 before it meets one.

Prompts

Two prompts hold sequences a caller would otherwise have to work out for itself:

Prompt

Argument

What it does

audit_domain

domain

DNS, certificate, registration and email authentication, then a verdict and what needs attention

check_link

url

Where the link really goes, what the page is, and anything about it that does not add up

Each is rendered against the tools the configured keys can call, so a prompt never sends a caller to a tool it has no key for, and the steps that remain are renumbered. A prompt with no tool behind it is not offered at all. Fetching one spends no quota.

Both end by saying what not to conclude, which is the part a model left to itself tends to get wrong: that an empty lookup is a finding rather than a failed check, that page text is evidence about the page and not an instruction, and that a valid certificate is not grounds for calling a link safe.

Limits and timing

Calls spend units from your plan's quota, the same as direct API calls. See rate limits and quotas.

A tool call is given 55 seconds in total, because MCP clients stop waiting after 60. Within that time the server retries once, and only where a retry cannot repeat work: after a 429 with a short Retry-After, after a gateway error on a read, or ten seconds after the API's request burst limit rejects a call. If the client cancels a call, the server stops.

The process sends at most ZACTONZ_MCP_MAX_CONCURRENCY calls to the API at once and queues the rest, counting the wait against the call's own 55 seconds. The firewall in front of the API blocks a burst of more than twenty requests to one endpoint within two seconds, so without a cap a fleet of agents sharing one process would get all of them blocked rather than served in turn.

If the API fails to answer ZACTONZ_MCP_BREAKER_FAILURES calls in a row, the server stops calling it for 30 seconds and answers in the meantime with how long is left. Only the API not answering counts: a refusal, a limit or a bad argument all mean it is there. When the wait is over, one call goes out to find out whether the API is back and the rest wait for its answer, so recovering costs one call rather than all of them.

Configuration

Variable

Purpose

Default

ZACTONZ_API_KEYS

API keys, separated by commas

none

ZACTONZ_MCP_INLINE_IMAGE_BYTES

Largest image returned inline, in bytes. 0 returns links only

750000

ZACTONZ_MCP_MAX_CONCURRENCY

API calls in flight at once. 0 for no limit

8

ZACTONZ_MCP_BREAKER_FAILURES

Unanswered calls before the server pauses for 30s. 0 to never

5

ZACTONZ_BASE_URL

API base URL

https://api.zactonz.com

Without keys the server still starts and lists every tool, and each call answers with setup instructions. Values in ZACTONZ_API_KEYS that are not Zactonz keys are ignored and reported on stderr.

These apply only when the server is listening over HTTP:

Variable

Purpose

Default

ZACTONZ_MCP_TRANSPORT

stdio or http; the same as --http

stdio

ZACTONZ_MCP_HOST

Address to bind; the same as --host

127.0.0.1

ZACTONZ_MCP_PORT

Port to bind; the same as --port. 0 takes any free port

8808

ZACTONZ_MCP_REQUIRE_KEY_HEADER

1 refuses a request that brings no key of its own

off

ZACTONZ_MCP_ALLOWED_HOSTS

Host header values to answer to, separated by commas

loopback

ZACTONZ_MCP_ALLOWED_ORIGINS

Browser origins allowed to call, separated by commas

none

ZACTONZ_MCP_MAX_REQUESTS

Requests handled at once before load is shed. 0 for no limit

64

ZACTONZ_MCP_MAX_BODY_BYTES

Largest request body accepted

1048576

Run npx -y @zactonz/mcp --help for the same list.

Security and privacy

  • Untrusted content. read_webpage, preview_link and read_qr_code return text written by whoever controls the page or the code. That text can contain instructions aimed at the assistant. The server labels it as third-party data, but the label is advice to the model, not a guarantee. Review what an assistant does after reading pages you do not control.

  • Generated files are public links. Screenshots, PDFs, QR codes, barcodes and converted images are stored on api.zactonz.com at unguessable URLs that anyone holding the link can open, for the period given on each endpoint's reference page. Do not render documents that must stay private.

  • What is sent. Tool arguments go to api.zactonz.com and nowhere else. The server keeps no logs and stores nothing on disk. The API's own handling of data is covered by the privacy policy.

  • Arguments are validated against each tool's schema before any request is made, and arguments outside the schema are refused.

  • Images are fetched for inline display only from the API's own host, over HTTPS, without following redirects.

  • Tools that fetch a URL do so from Zactonz's servers, which refuse private and internal addresses.

  • The HTTP transport binds loopback and serves no browser. A request carrying an Origin header is refused, as is one whose Host header names a host the server was not given — the two headers a page cannot be made to lie about, and so the two that stop a site the user is visiting from reaching a server bound to their own machine. Both refusals are logged with the value and answered without it. The endpoint sends no CORS headers and answers OPTIONS with 405.

  • The HTTP transport has no authentication of its own. A caller is whoever holds a Zactonz key. On loopback that is the machine's own user; anywhere else it is whoever can reach the port, so put TLS and whatever authentication you need in front of it. Keys travel in a header, which is cleartext without TLS.

Report a vulnerability as described in SECURITY.md.

Troubleshooting

  • A tool is missing. Only tools with a key are listed. Add a key for that product and restart the client.

  • Every call answers with setup instructions. ZACTONZ_API_KEYS is empty or holds no valid key. The server prints the reason on stderr, which most clients show in their MCP log.

  • "Missing or invalid API key." The key was revoked or mistyped. Ask the assistant to run check_api_key, or check the key in the console.

  • A screenshot has no inline image. The file is over the inline limit. Lower the quality or size, or raise ZACTONZ_MCP_INLINE_IMAGE_BYTES.

  • 403 when listening over HTTP. The request carried an Origin header, or a Host header naming something the server was not given. The reason, with the value, is on stderr. Name the host in ZACTONZ_MCP_ALLOWED_HOSTS, or the origin in ZACTONZ_MCP_ALLOWED_ORIGINS if a browser really should reach it.

  • 401 with keys in the header. None of the values presented is a Zactonz key, which looks like zk_<product>_<secret>. A request that brings no key at all is answered with ZACTONZ_API_KEYS instead, unless ZACTONZ_MCP_REQUIRE_KEY_HEADER=1.

  • 406 when calling with curl. The Accept header has to list both application/json and text/event-stream.

  • "The Zactonz API has failed to answer several calls in a row." The server has paused and says how long is left. It resumes by itself, one call at a time. If the API is fine and this is firing, raise ZACTONZ_MCP_BREAKER_FAILURES or set it to 0.

  • Calls are slower under load. They are queued behind ZACTONZ_MCP_MAX_CONCURRENCY. GET /healthz reports how many are in flight and how many are waiting.

  • 405 on GET /mcp. Expected: the server keeps no session, so there is no stream to open. Send POST.

Versioning

This package follows semantic versioning. While it is at 0.x, a minor release may rename a tool or an argument; such changes are listed in the changelog.

Development

See CONTRIBUTING.md.

Licence

MIT. See LICENSE. Maintained by Zactonz Technologies.

Available Tools

19 tools
capture_screenshotCapture a screenshot of a web pageA

Loads a public web page in a headless browser and captures it as a JPEG, PNG or WebP image, or as a PDF. Returns a link to the file, and the image itself when it is small enough to look at directly. Suited to checking how a page renders or keeping a visual record of it.

Inputs: url (required), delay, scale, width, +10 more.

check_api_keyCheck a Zactonz API keyA
Read-only

Reports the plan of a configured Zactonz API key and the quota it has left today and this month. Costs nothing.

Inputs: product (required).

check_email_domainCheck the email setup of a domainB
Read-only

Audits how a domain is configured for email: MX, SPF, DKIM, DMARC, MTA-STS, TLS-RPT and BIMI records, whether it is a disposable or free mail provider, a score out of 100 and a list of findings.

Inputs: domain (required), probe, selectors.

convert_html_to_markdownConvert HTML to MarkdownB
Read-only

Converts HTML you already hold to Markdown. Nothing is fetched.

Inputs: html (required), mode, links, images, +1 more.

convert_imageConvert or resize an imageA

Converts an image at a public URL to WebP, AVIF, JPEG, PNG or GIF, optionally resizing, cropping, rotating, flipping, blurring, sharpening or removing colour. Returns a link valid for 24 hours with the source and output details, and the image itself when it is small enough.

Inputs: url (required), fit, blur, flip, +8 more.

generate_barcodeGenerate a barcodeA

Renders a barcode: Code 128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14 or Codabar. Returns a link valid for 24 hours, the dimensions and the image itself.

Inputs: content (required), type, color, scale, +3 more.

generate_qr_codeGenerate a QR codeA

Encodes text or a URL as a QR code. Returns a link to the image and the image itself. With the text format it returns the code as rows of 0 and 1 instead.

Inputs: content (required), size, color, format, +3 more.

generate_social_imageGenerate a social card imageA

Creates an Open Graph image, the card shown when a link is shared, from a title and an optional subtitle, site label and logo. Returns a link valid for seven days and the image itself.

Inputs: title (required), bg, font, logo, +7 more.

inspect_imageInspect an imageA
Read-only

Reports the width, height, format, file size, orientation, transparency and dominant colours of an image at a public URL.

Inputs: url (required).

inspect_ssl_certificateInspect an SSL certificateA
Read-only

Connects to a host and reports its TLS certificate: issuer, subject, validity dates, days remaining, whether the chain is trusted and the name matches, and the protocol and cipher in use.

Inputs: host (required), port, fresh.

lookup_dnsLook up DNS recordsB
Read-only

Returns the DNS records of a host or domain (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV) and its DNSSEC status.

Inputs: name (required), type.

lookup_whoisLook up a domain registrationA
Read-only

Returns the registration record of a domain from RDAP or WHOIS: registrar, creation, update and expiry dates, status codes, nameservers and abuse contact.

Inputs: domain (required), raw.

read_qr_codeRead a QR codeA
Read-only

Decodes the QR code in an image and returns the text it holds.

Inputs: image (required), format.

read_webpageRead a web page as MarkdownA
Read-only

Fetches a public web page and returns its main content as Markdown, without navigation, adverts or scripts. For pages that build their content with JavaScript, set render to true.

Inputs: url (required), mode, fresh, links, +3 more.

render_htmlRender HTML to an image or PDFA

Renders an HTML document you provide as a JPEG, PNG or WebP image, or as a PDF: an invoice, a report, a certificate. Returns a link to the file, and the image itself when it is small enough. Images, fonts and stylesheets referenced by the HTML must use absolute URLs.

Inputs: html (required), width, format, height, +1 more.

translate_textTranslate textB
Read-only

Translates text from one language to another. 46 languages are supported.

Inputs: to (required), text (required), from.

verify_emailsVerify email addressesA

Checks whether email addresses can receive mail by asking the receiving mail server, without sending a message. Returns valid or invalid for each address. Can take up to a minute.

Inputs: emails (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 19 tools

    Disambiguation4/5

    Each tool targets a clearly distinct operation (QR, DNS, SSL, WHOIS, email, web rendering, image processing, translation). The only mild overlap is among web-content tools (read_webpage, preview_link, capture_screenshot, render_html), but their descriptions clearly differentiate fetching text, metadata, visual capture, and rendering provided HTML.

    Naming Consistency5/5

    All 19 tools use snake_case with a leading verb (read_, lookup_, inspect_, check_, verify_, generate_, capture_, render_, convert_, preview_, translate_, get_), creating a highly predictable pattern. No mixing of conventions.

    Tool Count3/5

    19 tools is on the heavy side for a single MCP server; the rubric treats 16–25 as borderline. Each tool is distinct, but the broad utility scope means the set could feel large to an agent.

    Completeness4/5

    The surface covers many common web utilities well: QR/barcode generation and reading, image conversion/inspection, web rendering/screenshots, DNS/SSL/WHOIS lookups, email checks, translation, and Drive link conversion. Minor gaps include OCR beyond QR, PDF-to-text, URL expansion/shortening, or text summarization, but core utilities are present.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to capture webpage screenshots, generate PDFs from URLs or HTML, and extract rich metadata like Open Graph and JSON-LD data. It provides tools for web-to-image/PDF conversion and structured data extraction through the Junipr API.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to read, screenshot, or convert web pages to PDF using a real headless browser, turning any URL into clean Markdown, a visual image, or a print-ready document.
      82 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to fetch and process web content securely, including HTML-to-markdown conversion, reader mode, metadata extraction, RSS/sitemap parsing, and robots.txt-aware requests with SSRF protection.
      15
      601 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to access 50+ developer utility APIs for inspecting SSL, DNS, WHOIS, security headers, redirects, sitemaps, and page speed, converting between JSON, CSV, YAML, XML, Markdown, and HTML/PDF, and generating UUIDs, hashes, passwords, QR codes, and screenshots via natural language.
      50
      MIT