MCP Server for AI — Generate PDFs, Images & Screenshots from Cursor, Claude Code, Windsurf | TongoRender
Model Context Protocol (MCP)

AI-Powered Document Generation

Connect TongoRender to your AI coding assistant via MCP Server. Generate PDFs, images, and screenshots with natural language — directly from Cursor, Claude Code, or Windsurf.

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI assistants interact with external tools and services. Think of it as a USB port for AI — plug in any compatible tool and your AI assistant can use it instantly.

TongoRender's MCP Server gives your AI assistant the ability to generate PDFs, render images, and capture screenshots — all through natural language. Ask Cursor to "generate an invoice PDF" and it just works.

🔌

Plug & Play

Add the MCP server URL and start generating documents instantly

🤖

AI-Native

Your AI understands HTML, templates, and rendering options natively

🔄

Multi-Agent Ready

Perfect for agentic workflows that need to produce documents

Set Up in 30 Seconds

Choose your AI assistant and follow the setup guide

~/.cursor/mcp.json
{
  "mcpServers": {
    "tongorender": {
      "url": "https://tongorender.io/mcp/tongorender",
      "transport": "http"
    }
  }
}

That's it. Restart your IDE and start generating documents with AI.

What You Can Ask Your AI

Real prompts that work out of the box with TongoRender MCP

PDF

"Generate a PDF invoice for order #1042 with 3 line items totaling $299"

AI creates HTML, calls render-pdf, returns download link

Screenshot

"Take a screenshot of https://competitor.com in dark mode, full page"

AI calls render-screenshot with dark_mode:true, full_page:true

Image

"Create an OG image for my blog post "Building with AI Agents""

AI designs HTML card, calls render-image at 1200x630

Template

"List all available templates and render the invoice template with this data"

AI calls list-templates, picks the best match, renders with your data

PDF

"Generate a weekly report PDF from our dashboard data with charts"

AI creates HTML with inline SVG charts, renders A4 landscape PDF

Screenshot

"Screenshot our staging site at 3 viewport sizes for QA review"

AI makes 3 render-screenshot calls: 375px, 768px, 1440px

5 MCP Tools Available

Each tool is auto-discovered by your AI assistant

render-pdfConvert HTML to PDF

Params: html, format, landscape, margins, header/footer

"Generate a PDF from this HTML in A4 format"
render-imageRender HTML as PNG/JPEG/WebP

Params: html, format, width, height, quality, pixel_ratio

"Create a 1200x630 OG image from this HTML"
render-screenshotScreenshot a live URL

Params: url, format, full_page, dark_mode, block_ads

"Screenshot example.com in dark mode"
list-templatesBrowse available templates

Params: category (optional)

"Show me all invoice templates"
render-templateRender template with data

Params: slug, data, output_type

"Render invoice-modern with this order data"

Built for Multi-Agent Workflows

TongoRender's MCP Server is designed for agentic architectures. Whether you're building with Claude Agent SDK, LangChain, CrewAI, or custom orchestrators — any agent that speaks MCP can generate documents.

Multi-agent workflow example
Agent 1 (Data Collection)
  → Fetches order data from your database
  → Passes structured data to Agent 2

Agent 2 (Document Generation via TongoRender MCP)
  → Calls render-template with invoice data
  → Gets back a signed PDF URL

Agent 3 (Distribution)
  → Sends PDF via email to customer
  → Archives in S3 for compliance

All orchestrated by your supervisor agent.
TongoRender handles step 2 — the hard part.

Claude Agent SDK

Build Python/TS agents that render documents via MCP

LangChain / LangGraph

Add TongoRender as a tool in your agent chains

CrewAI

Give your crew members document generation capabilities

Custom Orchestrators

Any system that speaks HTTP can use TongoRender MCP

Why Developers Choose TongoRender for AI Integration

As AI coding assistants become the default development environment, the tools they can access become critical infrastructure. TongoRender's MCP Server turns document generation from a complex integration task into a natural language request.

Unlike traditional PDF APIs that require you to construct HTTP requests manually, TongoRender's MCP integration lets your AI assistant handle the entire workflow. Describe what you need in plain English — "generate a receipt PDF for this order" — and the AI handles HTML creation, API calls, and file delivery automatically.

For teams building autonomous AI agents, TongoRender provides the document generation primitive. Your agents can produce invoices, reports, certificates, social media graphics, and screenshots without any human intervention. The MCP protocol ensures reliable tool discovery and invocation across any compatible AI framework.

Whether you're using Cursor for daily development, Claude Code for CLI-based AI workflows, or Windsurf for collaborative AI coding — TongoRender integrates in one line of JSON configuration. No SDK installation, no API key management in your prompts, no boilerplate. Just add the MCP server URL and start asking your AI to generate documents.

Let Your AI Generate Documents

Add TongoRender MCP to your AI assistant in 30 seconds. 100 free renders/month.