Skip to content
MCP server

Leafwright

Render HTML, URLs, and templates to PDF. AI drafts templates and fixes them from logs.

Install
Pricing
Open source
Runs
Locally or Remotely
Version
0.2.4
Listing updated
5 days ago

About Leafwright

Leafwright is an open-source MCP server. It can run locally on your machine or as a hosted remote server.

Install

Run in a terminal

claude mcp add --transport http leafwright https://leafwright.co/mcp

Add to Settings → Connectors → Add custom connector

https://leafwright.co/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "leafwright": {
      "url": "https://leafwright.co/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "leafwright": {
      "type": "http",
      "url": "https://leafwright.co/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "leafwright": {
      "serverUrl": "https://leafwright.co/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "leafwright": {
      "type": "http",
      "url": "https://leafwright.co/mcp"
    }
  }
}

Configuration

  • LEAFWRIGHT_API_KEYProject API key (lw_live_… or lw_test_…) for server automation. Optional — the server can also authenticate through a browser login.
  • LEAFWRIGHT_MCP_TOKENMCP token (mcp_…) for non-interactive setups.
  • LEAFWRIGHT_PROJECT_IDOverride the active default project.
  • LEAFWRIGHT_MCP_READ_ONLYSet to true to expose only read tools — no renders, template writes, or AI.

Pricing

Open source

Prices change. Check leafwright.co before you buy.

Leafwright FAQ

Is Leafwright free?

Yes. Leafwright is open source, so you can use and self-host it for free.

How do I add Leafwright to Claude Code?

Run this command in your terminal: claude mcp add --transport http leafwright https://leafwright.co/mcp