Official MCP server for oJo — turn HTML into images. Free live previews need no API key.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
claude mcp add mcp-server -- npx -y @ojodotso/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": ["-y", "@ojodotso/mcp-server"],
"env": {
"OJO_API_KEY": "<ojo_api_key>"
}
}
}
}OJO_API_KEYResumen de MCP Servers
# @ojodotso/mcp-server
A [Model Context Protocol](https://modelcontextprotocol.io) server that lets an
AI agent turn HTML into images and PDFs. Live previews are free and need no
account; an oJo API key adds hosted PNG and PDF URLs 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.
## 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.
```json
{
"mcpServers": {
"ojo": {
"command": "npx",
"args": ["-y", "@ojodotso/mcp-server"]
}
}
}
```
```bash
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`:
```json
{
"mcpServers": {
"ojo": {
"command": "npx",
"args": ["-y", "@ojodotso/mcp-server"],
"env": { "OJO_API_KEY": "sk_..." }
}
}
}
```
```bash
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 20 pages, A4 unless a CSS `@page` rule sets the size; returns its public URL and page count. A longer document is refused and costs nothing. | 1 | yes |
| `generate_pdf_from_template` | Render an existing template to a PDF, optionally overriding variables via `modify`. | 1 | yes |
| `list_templates` | List the templates available to the account. | — | yes |
| `get_template` | Fetch one template's decoded HTML and variable defaults. | — | yes |
| `create_template` | Create a reusable template from plain HTML/Handlebars. | — | 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 to `https://api.ojo.so/v1`.
- `OJO_WEB_BASE_URL` (optional) — the web app that serves `/preview` for
`create_preview_link`. Defaults to `https://ojo.so`; point it at a local
`http://localhost:3000` when developing against a self-hosted web app.
## Develop
```bash
pnpm install
pnpm build
pnpm test
pnpm check
```
Lo que la gente pregunta sobre mcp-server
¿Qué es ojodotso/mcp-server?
+
ojodotso/mcp-server es mcp servers para el ecosistema de Claude AI. Official MCP server for oJo — turn HTML into images. Free live previews need no API key. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-28.
¿Cómo se instala mcp-server?
+
Puedes instalar mcp-server clonando el repositorio (https://github.com/ojodotso/mcp-server) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar ojodotso/mcp-server?
+
Nuestro agente de seguridad ha analizado ojodotso/mcp-server y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene ojodotso/mcp-server?
+
ojodotso/mcp-server es mantenido por ojodotso. La última actividad registrada en GitHub es del 2026-09-28, con 0 issues abiertos.
¿Hay alternativas a mcp-server?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega mcp-server en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/ojodotso-mcp-server)<a href="https://claudewave.com/repo/ojodotso-mcp-server"><img src="https://claudewave.com/api/badge/ojodotso-mcp-server" alt="Featured on ClaudeWave: ojodotso/mcp-server" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.