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.
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
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@leafwright/mcp 0.2.4
{
"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.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"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
{
"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
{
"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
{
"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.