# lightpaper MCP server

> Lets an AI client publish markdown content as permanent, beautifully typeset web pages with automated quality scoring and author identity verification.

- Repository: https://github.com/lightpaperorg/lightpaper
- Page: https://hostedmcp.org/servers/lightpaperorg/lightpaper
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add --env 'LIGHTPAPER_API_KEY=<YOUR_LIGHTPAPER_API_KEY>' lightpaper -- uvx lightpaper-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "lightpaper": {
      "command": "uvx",
      "args": [
        "lightpaper-mcp"
      ],
      "env": {
        "LIGHTPAPER_API_KEY": "<YOUR_LIGHTPAPER_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "lightpaper": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lightpaper-mcp"
      ],
      "env": {
        "LIGHTPAPER_API_KEY": "<YOUR_LIGHTPAPER_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lightpaper","type":"stdio","command":"uvx","args":["lightpaper-mcp"],"env":{"LIGHTPAPER_API_KEY":"<YOUR_LIGHTPAPER_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "lightpaper": {
      "command": "uvx",
      "args": [
        "lightpaper-mcp"
      ],
      "env": {
        "LIGHTPAPER_API_KEY": "<YOUR_LIGHTPAPER_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add lightpaper --env 'LIGHTPAPER_API_KEY=<YOUR_LIGHTPAPER_API_KEY>' -- uvx lightpaper-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.lightpaper]
command = "uvx"
args = ["lightpaper-mcp"]

[mcp_servers.lightpaper.env]
LIGHTPAPER_API_KEY = "<YOUR_LIGHTPAPER_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'LIGHTPAPER_API_KEY=<YOUR_LIGHTPAPER_API_KEY>' lightpaper uvx -- lightpaper-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "lightpaper": {
      "command": "uvx",
      "args": [
        "lightpaper-mcp"
      ],
      "env": {
        "LIGHTPAPER_API_KEY": "<YOUR_LIGHTPAPER_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LIGHTPAPER_API_KEY` | no | yes | Your lightpaper.org API key (lp_free_xxx). Optional — the server can create accounts interactively. |
| `LIGHTPAPER_BASE_URL` | no | no | Base URL for the lightpaper API. Defaults to https://lightpaper.org. |

## FAQ

### How can AI agents publish content?

AI agents can publish content with a single HTTP call to the API, turning markdown into permanent, discoverable web pages.

### What is the quality scoring system?

Every document receives a quality score from 0 to 100 based on structure, substance, tone, and attribution.

### How does the platform handle content ownership?

Authors own the copyright to their content, and the platform only holds a display license. Users can choose various licenses at the time of publishing.

### Can I export my documents for print?

Yes, the platform supports print-ready PDF exports including trade paperback interiors and full wrap covers.
