Skip to main content
Glama
README.md
# RenderForge — Headless Web to Markdown, Document OCR, HTML-to-PDF & Screenshot API + MCP Server

[![Live API](https://img.shields.io/badge/API-edge.lonestarrust.com-0ea5e9)](https://edge.lonestarrust.com/)
[![MCP Streamable HTTP](https://img.shields.io/badge/MCP-Streamable%20HTTP-22c55e)](https://edge.lonestarrust.com/.well-known/mcp.json)
[![RenderForge Web & Document Engine MCP connector – tool definition quality and endpoint health on Glama](https://glama.ai/mcp/connectors/io.github.PappyDev/renderforge/badges/score.svg)](https://glama.ai/mcp/connectors/io.github.PappyDev/renderforge)
[![License: MIT](https://img.shields.io/badge/License-MIT-slate)](./LICENSE)

All-in-one headless Chromium and document conversion engine built for **AI agents, RAG pipelines, n8n/Make workflows, and SaaS backends**.

- **Homepage & Free Live Demo:** https://edge.lonestarrust.com/
- **OpenAPI / Swagger Docs:** https://edge.lonestarrust.com/docs
- **LLM Discovery:** https://edge.lonestarrust.com/llms.txt
- **MCP Discovery:** https://edge.lonestarrust.com/.well-known/mcp.json

---

## Capabilities & Endpoints

All endpoints accept both **`POST` (JSON body)** and **`GET` (query parameters)** and require authentication via `X-API-Key: <key>` or `Authorization: Bearer <key>` (except `/health`).

| Capability | Endpoint | Credits | Description |
| :--- | :--- | :---: | :--- |
| **Webpage → Markdown** | `POST` / `GET` `/v1/url-to-markdown` | 1 | Renders JavaScript-heavy pages in headless Chromium, strips boilerplate, and returns clean Markdown, page title, word count, and estimated token count. |
| **Document / Image → Markdown (OCR)** | `POST` / `GET` `/v1/doc-to-markdown` | 2 | Extracts Markdown and tables from PDF, DOCX, XLSX, PPTX, HTML, TXT, CSV, PNG, JPEG, or WEBP files (multipart upload on `POST`, or public `url`) with automatic Tesseract OCR fallback. |
| **HTML / URL → PDF** | `POST` / `GET` `/v1/html-to-pdf` | 2 | Renders HTML/CSS or public webpage URLs into print-ready PDFs (configurable paper size, margins, scale, landscape, and raw binary or base64 JSON response). |
| **Website Screenshot / OG Image** | `POST` / `GET` `/v1/screenshot` | 1 | Captures viewport or full-page `png`, `jpeg`, or `webp` screenshots of any public URL or raw HTML markup (raw binary or base64 JSON response). |
| **Account Credit Usage** | `GET /v1/usage` | 0 | Returns current plan, rate limit, monthly credit allowance, used credits, and reset timestamp. |
| **Service Health** | `GET /health` | 0 | Unauthenticated readiness check for API, Redis, Gotenberg, and Chromium. |

---

## Model Context Protocol (MCP) Server

RenderForge exposes a hosted **Streamable HTTP** MCP server at:

```text
https://edge.lonestarrust.com/mcp
```

**Available MCP Tools:**
- `url_to_markdown` — Convert any public URL to clean Markdown via headless Chromium
- `doc_to_markdown` — Extract Markdown (with OCR) from PDF, DOCX, XLSX, PPTX, or image URLs
- `html_to_pdf` — Render HTML/CSS or a public URL into a base64 PDF
- `website_screenshot` — Capture a PNG/JPEG/WEBP screenshot or HTML social preview image

### Claude Desktop / Cursor / Windsurf / Antigravity Config

Copy [`mcp.json`](./mcp.json) into your MCP client configuration and replace `YOUR_RENDERFORGE_API_KEY`:

```json
{
  "mcpServers": {
    "renderforge": {
      "url": "https://edge.lonestarrust.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_RENDERFORGE_API_KEY"
      }
    }
  }
}
```

---

## REST Quickstart

Ready-to-run client scripts live in [`examples/`](./examples):

- **cURL (`POST`, `GET`, & MCP):** [`examples/curl.sh`](./examples/curl.sh)
- **Python 3 (zero external dependencies):** [`examples/python_example.py`](./examples/python_example.py)
- **Node.js 18+ (`fetch`):** [`examples/node_example.mjs`](./examples/node_example.mjs)
- **n8n HTTP Request Workflow:** [`examples/n8n_http_node.json`](./examples/n8n_http_node.json)
- **Full OpenAPI 3.0.3 Spec:** [`openapi.yaml`](./openapi.yaml)

```bash
export RENDERFORGE_API_KEY="YOUR_RENDERFORGE_API_KEY"

curl -sS -X POST https://edge.lonestarrust.com/v1/url-to-markdown \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $RENDERFORGE_API_KEY" \
  -d '{"url": "https://example.com", "main_content_only": true}'
```

---

## Get an API Key & Supported Marketplaces

Choose whichever billing platform fits your stack:

- **Direct Subscriptions (Polar.sh — Starter \$15/mo, Pro \$49/mo, Scale \$149/mo):**  
  https://edge.lonestarrust.com/#pricing
- **Apify Store (Pay-Per-Event Actors, no monthly commitment):**
  - [URL to Clean Markdown](https://apify.com/renderforge-dev/renderforge-url-to-markdown)
  - [Document to Markdown (OCR)](https://apify.com/renderforge-dev/renderforge-doc-to-markdown)
  - [HTML & URL to PDF](https://apify.com/renderforge-dev/renderforge-html-to-pdf)
  - [Website Screenshot & OG Image](https://apify.com/renderforge-dev/renderforge-website-screenshot)
- **RapidAPI Hub (Free 200 req/mo tier + paid plans):**  
  https://rapidapi.com/JohnZee-A_FxfCFGW/api/renderforge-web-to-markdown-pdf-and-screenshot
- **Zyla API Hub (7-day free trial, monthly & annual tiers):**  
  https://zylalabs.com/api-marketplace/tools+%26+utilities/renderforge+web+markdown+pdf+screenshot+api/15929
- **Official MCP Registry (`io.github.PappyDev/renderforge`):**  
  https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PappyDev/renderforge
- **Postman Public Workspace:**  
  https://www.postman.com/supply-explorer-78643778-s-team/renderforge-web-document-engine-api/overview

---

## Security & Limits

- **SSRF Protection:** Only public HTTP and HTTPS URLs are permitted; localhost, private networks, and cloud metadata endpoints are rejected.
- **Upload / Download Cap:** 20 MB max per document in `/v1/doc-to-markdown`.
- **Timeouts:** Page navigation timeouts are configurable between `2,000` and `30,000` ms.