Leafwright

co.leafwrightPublished by leafwright.coOfficial publisherv0.2.4Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableDeveloper ToolsAI & ML

Overview

AI-generated overview

Lets an assistant render HTML, URLs, and templates to PDF, and draft or fix templates with AI.

What you can do
Leafwright renders HTML, URLs, and templates to PDF. It also lets AI draft templates and repair them from logs. Three tools handle access: leafwright_login starts a browser login flow, leafwright_auth_status checks authentication and completes a pending login, and leafwright_logout revokes the stored token and clears local auth state.
When to use it
Useful when an assistant needs to turn web pages, HTML snippets, or reusable templates into PDF output, or to iterate on a template until it renders correctly.
Requirements
Runs as a remote endpoint or as a local npm package over stdio. Authentication is either a browser login or a project API key in LEAFWRIGHT_API_KEY; non-interactive setups can use LEAFWRIGHT_MCP_TOKEN. LEAFWRIGHT_PROJECT_ID overrides the default project.
Before you install
The server takes secrets: LEAFWRIGHT_API_KEY and LEAFWRIGHT_MCP_TOKEN. Setting LEAFWRIGHT_MCP_READ_ONLY to true limits it to read tools, with no renders, template writes, or AI. Without that, it can write templates and run AI actions. Logging out revokes the stored token.

Installation

In SourceWeft

  1. Open Leafwright in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/co.leafwright%2Fleafwright/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

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

README

This repository has no README.

Tools

3

leafwright_login

Log in to Leafwright

Start a browser login flow for Leafwright MCP. Open the returned URL, choose an organization and project, then call leafwright_auth_status.

Parametersclient_name

leafwright_auth_status

Leafwright auth status

Check whether Leafwright MCP is authenticated. Completes a pending browser login if approved. Pass the device_code returned by leafwright_login when the client has no local storage, which is the case over HTTP.

Parametersdevice_code

leafwright_logout

Log out of Leafwright

Revoke the stored Leafwright MCP token and clear local auth state.

Takes no parameters.

Version history

1
  1. v0.2.4LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • License10 pts

    Declare a license in the repository or the registry entry.