oJo — HTML to image and PDF MCP Server
Fill an HTML template with JSON and get a hosted PDF or image link. Free previews, no key.
oJo — HTML to image and PDF scores 66 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 9 tools. Filed under Knowledge. GitHub shows 0 stars. Package registries report about 111 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: OAuth sign-in. Your client opens a browser window to sign in with the provider. No key goes in the config file. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ojodotso-mcp-server": { "command": "npx", "args": [ "-y", "@ojodotso/mcp-server@0.9.0" ], "env": { "OJO_API_KEY": "YOUR_OJO_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
OJO_API_KEYSecret | Optional | oJo API key — create one at https://ojo.so/dashboard/api. Optional: without it the server runs in preview-only mode, where create_preview_link renders free full-resolution previews with no account. |
Tools9Tool docs quality grade B
All capabilitiesBuild a free, full-resolution /preview link for an HTML/Handlebars draft.
create_templatetoolCreate a reusable template from plain HTML/Handlebars.
Render plain HTML (with inline CSS) to a PNG; returns its public URL.
Render an existing template, optionally overriding variables via modify.
Render plain HTML (with inline CSS) to a PDF of up to 100 pages, A4 unless a CSS @page rule sets the size; returns its public URL, page count and credits spent. A longer document is refused and costs nothing.
Render an existing template to a PDF, optionally overriding variables via modify, or build one PDF of up to 100 pages from many templates and HTML with pages.
get_templatetoolFetch one template's HTML and variable defaults.
list_templatestoolList the templates available to the account.
update_templatetoolReplace a template's HTML, and its variable defaults when given, under the same ID. Overwrites: API renders use the new version at once.
About
@ojodotso/mcp-server
oJo turns an HTML template and your JSON data into a PDF or PNG at a hosted link,
from the REST API, any MCP client or the editor. This package is oJo's
Model Context Protocol server. Live previews are free and need
no account; an oJo API key adds hosted PNG and PDF links and reusable templates through the user's
own account. Transport is local stdio; the API boundary is HTTP to
https://api.ojo.so/v1 only.
Most clients can connect to https://mcp.ojo.so/mcp directly and sign in, without installing
anything: see https://ojo.so/docs/mcp-server. This package is the local alternative.
Quick start — no account needed
Point your MCP client at the package. With no API key the server starts in
preview-only mode: create_preview_link renders HTML into a live,
full-resolution image preview, free and unlimited, with no oJo account.
{
"mcpServers": {
"ojo": {
"command": "npx",
"args": ["-y", "@ojodotso/mcp-server"]
}
}
}
claude mcp add ojo -- npx -y @ojodotso/mcp-server
Adding a key
A key unlocks the permanent PNG or PDF URL — the thing you can put in an email, a
social card or an API response — plus reusable templates. Create one at
https://ojo.so/dashboard/api and pass it as OJO_API_KEY:
{
"mcpServers": {
"ojo": {
"command": "npx",
"args": ["-y", "@ojodotso/mcp-server"],
"env": { "OJO_API_KEY": "sk_..." }
}
}
}
claude mcp add ojo -e OJO_API_KEY=sk_... -- npx -y @ojodotso/mcp-server
Works the same for Claude Desktop, Cursor, and Claude Code.
Tools
Only create_preview_link is registered without an API key; the rest talk to
the oJo API, so advertising them keyless would offer tools that can only fail.
| Tool | Purpose | Credit | Needs a key |
|---|---|---|---|
create_preview_link | Build a free, full-resolution /preview link for an HTML/Handlebars draft. | — | no |
generate_image_from_html | Render plain HTML (with inline CSS) to a PNG; returns its public URL. | 1 | yes |
generate_image_from_template | Render an existing template, optionally overriding variables via modify. | 1 | yes |
generate_pdf_from_html | Render plain HTML (with inline CSS) to a PDF of up to 100 pages, A4 unless a CSS @page rule sets the size; returns its public URL, page count and credits spent. A longer document is refused and costs nothing. | 1 per 20 pages | yes |
generate_pdf_from_template | Render an existing template to a PDF, optionally overriding variables via modify, or build one PDF of up to 100 pages from many templates and HTML with pages. | 1 per 20 pages | yes |
list_templates | List the templates available to the account. | — | yes |
get_template | Fetch one template's HTML and variable defaults. | — | yes |
create_template | Create a reusable template from plain HTML/Handlebars. | — | yes |
update_template | Replace a template's HTML, and its variable defaults when given, under the same ID. Overwrites: API renders use the new version at once. | — | yes |
The design loop
Iterate with create_preview_link, then render. It returns an
https://ojo.so/preview#draft=… URL that renders the draft live in the browser
through the same engine as the final PNG, at full resolution. The draft is
gzipped into the URL hash, so it never reaches a server and nothing is stored
— the link is self-contained and shareable with a human reviewer. For a PDF the
preview shows the screen rendering, not the page breaks.
Both image tools also accept inspect: true, which returns a 512px-wide
downscaled thumbnail alongside the URL. That is a confirmation that the render
succeeded, not a design surface — it is too small to judge layout or typography.
Guiding prompt
author_ojo_template — teaches the Handlebars helper catalog, the Template
Variables (schema/defaults) vs Modify Payload (per-render data) model,
viewport conventions, and the preview-first design loop.
Configuration
OJO_API_KEY(optional) — your oJo API key. Without it the server runs in preview-only mode; with it the full tool surface is registered.OJO_API_BASE_URL(optional) — defaults tohttps://api.ojo.so/v1.OJO_WEB_BASE_URL(optional) — the web app that serves/previewforcreate_preview_link. Defaults tohttps://ojo.so; point it at a localhttp://localhost:3000when developing against a self-hosted web app.
Develop
pnpm install
pnpm build
pnpm test
pnpm check
Frequently asked questions
What is oJo — HTML to image and PDF MCP Server?
Fill an HTML template with JSON and get a hosted PDF or image link. Free previews, no key.
How do I install oJo — HTML to image and PDF MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. oJo — HTML to image and PDF MCP Server runs locally from the npm package @ojodotso/mcp-server with the command npx -y @ojodotso/mcp-server@0.9.0.
Is oJo — HTML to image and PDF MCP Server free and open source?
Yes. oJo — HTML to image and PDF MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does oJo — HTML to image and PDF MCP Server support remote (HTTP) connections?
Yes. oJo — HTML to image and PDF MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does oJo — HTML to image and PDF MCP Server provide?
oJo — HTML to image and PDF MCP Server provides 9 tools, including create_preview_link, create_template, generate_image_from_html, and generate_image_from_template. See the full tool list for descriptions and parameters.
How is oJo — HTML to image and PDF MCP Server's trust score calculated?
oJo — HTML to image and PDF MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.