Render HTML, URLs, and templates to PDF. AI drafts templates and fixes them from logs.
registry version 0.2.4
npm
npx -y @leafwright/mcpnpm
npx -y @leafwright/mcp@0.2.4Streamable HTTP
https://leafwright.co/mcp
Pick your client — the config below is generated for this server (both local and hosted-endpoint forms). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}Remote (hosted) endpoint
https://leafwright.co/mcp
Claude Desktop: Settings → Connectors → Add custom connector, paste this URL.
Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env LEAFWRIGHT_API_KEY=<YOUR_LEAFWRIGHT_API_KEY> --env LEAFWRIGHT_MCP_TOKEN=<YOUR_LEAFWRIGHT_MCP_TOKEN> leafwright -- npx -y @leafwright/mcp
claude mcp add --env LEAFWRIGHT_API_KEY=<YOUR_LEAFWRIGHT_API_KEY> --env LEAFWRIGHT_MCP_TOKEN=<YOUR_LEAFWRIGHT_MCP_TOKEN> leafwright -- npx -y @leafwright/mcp@0.2.4
terminal
claude mcp add --transport http leafwright https://leafwright.co/mcp
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}.cursor/mcp.json (hosted endpoint)
{
"mcpServers": {
"leafwright": {
"url": "https://leafwright.co/mcp"
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}{
"servers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}.vscode/mcp.json (hosted endpoint)
{
"servers": {
"leafwright": {
"type": "http",
"url": "https://leafwright.co/mcp"
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<YOUR_LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<YOUR_LEAFWRIGHT_MCP_TOKEN>"
}
}
}
}mcp_config.json (hosted endpoint)
{
"mcpServers": {
"leafwright": {
"serverUrl": "https://leafwright.co/mcp"
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
LEAFWRIGHT_API_KEY secret — Project API key (lw_live_… or lw_test_…) for server automation. Optional — the server can also authenticate through a browser login.LEAFWRIGHT_MCP_TOKEN secret — MCP token (mcp_…) for non-interactive setups.LEAFWRIGHT_PROJECT_ID — Override the active default project.LEAFWRIGHT_MCP_READ_ONLY — Set to true to expose only read tools — no renders, template writes, or AI.Distributed as npm, Streamable HTTP, listed under Monitoring. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/Tactic-Systems/leafwright. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/leafwright/)
HTML
<a href="https://mcpnav.net/server/leafwright/"><img src="https://mcpnav.net/badge/leafwright.svg" alt="Listed on MCPNav" height="20"></a>