MCP Server Studio
Render HTML, URLs, and templates to PDF. AI drafts templates and fixes them from logs.
Registry name: co.leafwright/leafwright
Add to claude_desktop_config.json:
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<LEAFWRIGHT_MCP_TOKEN>",
"LEAFWRIGHT_PROJECT_ID": "<LEAFWRIGHT_PROJECT_ID>",
"LEAFWRIGHT_MCP_READ_ONLY": "<LEAFWRIGHT_MCP_READ_ONLY>"
}
}
}
}Run in your terminal:
claude mcp add leafwright -e LEAFWRIGHT_API_KEY='<LEAFWRIGHT_API_KEY>' -e LEAFWRIGHT_MCP_TOKEN='<LEAFWRIGHT_MCP_TOKEN>' -e LEAFWRIGHT_PROJECT_ID='<LEAFWRIGHT_PROJECT_ID>' -e LEAFWRIGHT_MCP_READ_ONLY='<LEAFWRIGHT_MCP_READ_ONLY>' -- npx -y @leafwright/mcp@0.2.4Add to .cursor/mcp.json:
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<LEAFWRIGHT_MCP_TOKEN>",
"LEAFWRIGHT_PROJECT_ID": "<LEAFWRIGHT_PROJECT_ID>",
"LEAFWRIGHT_MCP_READ_ONLY": "<LEAFWRIGHT_MCP_READ_ONLY>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"leafwright": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<LEAFWRIGHT_MCP_TOKEN>",
"LEAFWRIGHT_PROJECT_ID": "<LEAFWRIGHT_PROJECT_ID>",
"LEAFWRIGHT_MCP_READ_ONLY": "<LEAFWRIGHT_MCP_READ_ONLY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"@leafwright/mcp@0.2.4"
],
"env": {
"LEAFWRIGHT_API_KEY": "<LEAFWRIGHT_API_KEY>",
"LEAFWRIGHT_MCP_TOKEN": "<LEAFWRIGHT_MCP_TOKEN>",
"LEAFWRIGHT_PROJECT_ID": "<LEAFWRIGHT_PROJECT_ID>",
"LEAFWRIGHT_MCP_READ_ONLY": "<LEAFWRIGHT_MCP_READ_ONLY>"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"leafwright": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://leafwright.co/mcp"
]
}
}
}Run in your terminal:
claude mcp add --transport http leafwright https://leafwright.co/mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"leafwright": {
"url": "https://leafwright.co/mcp"
}
}
}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"
}
}
}| Name | Required | What it is |
|---|---|---|
LEAFWRIGHT_API_KEY | No | Project API key (lw_live_… or lw_test_…) for server automation. Optional — the server can also authenticate through a browser login. |
LEAFWRIGHT_MCP_TOKEN | No | MCP token (mcp_…) for non-interactive setups. |
LEAFWRIGHT_PROJECT_ID | No | Override the active default project. |
LEAFWRIGHT_MCP_READ_ONLY | No | Set to true to expose only read tools — no renders, template writes, or AI. |