Koskamo

Leafwright MCP

An official MCP server provided by Leafwright that enables AI agents like Claude, Cursor, and Codex to render HTML, URLs, and templates to PDF. It supports both a remote server via OAuth 2.1 and a local package installation, allowing agents to generate signed download URLs, manage templates, and debug layouts using render logs.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Leafwright MCP logo, by LeafwrightVendor evidenceLocal stdioSource reviewed; not executedOperated by Leafwright
Vendor documentation

What you can do with it

  • Render HTML, URLs, or templates to PDF via AI agents
  • Debug broken layouts from render logs
  • Build and manage PDF templates
  • Generate signed download URLs for documents

Source and maintenance

Vendor evidenceRegistry 0.2.4
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@leafwright/mcp 0.2.4

npm
@leafwright/mcp package definition
{
  "version": "0.2.4",
  "transport": "stdio",
  "identifier": "@leafwright/mcp",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "LEAFWRIGHT_API_KEY",
      "description": "Project API key (lw_live_… or lw_test_…) for server automation. Optional — the server can also authenticate through a browser login."
    },
    {
      "name": "LEAFWRIGHT_MCP_TOKEN",
      "description": "MCP token (mcp_…) for non-interactive setups."
    },
    {
      "name": "LEAFWRIGHT_PROJECT_ID",
      "description": "Override the active default project."
    },
    {
      "name": "LEAFWRIGHT_MCP_READ_ONLY",
      "description": "Set to true to expose only read tools — no renders, template writes, or AI."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "leafwright-mcp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leafwright/mcp@0.2.4"
      ],
      "env": {
        "LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
        "LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>",
        "LEAFWRIGHT_PROJECT_ID": "<YOUR_LEAFWRIGHT_PROJECT_ID>",
        "LEAFWRIGHT_MCP_READ_ONLY": "<YOUR_LEAFWRIGHT_MCP_READ_ONLY>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "leafwright-mcp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leafwright/mcp@0.2.4"
      ],
      "env": {
        "LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
        "LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>",
        "LEAFWRIGHT_PROJECT_ID": "<YOUR_LEAFWRIGHT_PROJECT_ID>",
        "LEAFWRIGHT_MCP_READ_ONLY": "<YOUR_LEAFWRIGHT_MCP_READ_ONLY>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "leafwright-mcp-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@leafwright/mcp@0.2.4"
      ],
      "env": {
        "LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
        "LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>",
        "LEAFWRIGHT_PROJECT_ID": "<YOUR_LEAFWRIGHT_PROJECT_ID>",
        "LEAFWRIGHT_MCP_READ_ONLY": "<YOUR_LEAFWRIGHT_MCP_READ_ONLY>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "leafwright-mcp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leafwright/mcp@0.2.4"
      ],
      "env": {
        "LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
        "LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>",
        "LEAFWRIGHT_PROJECT_ID": "<YOUR_LEAFWRIGHT_PROJECT_ID>",
        "LEAFWRIGHT_MCP_READ_ONLY": "<YOUR_LEAFWRIGHT_MCP_READ_ONLY>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Leafwright MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.