# lumen MCP server

> Performs deterministic SEO audits, keyword research, and ranking checks using free data sources and MCP-compatible tools.

- Repository: https://github.com/nitishagar/lumen
- Page: https://hostedmcp.org/servers/nitishagar/lumen
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.3.0

## Install

### Claude Code

```sh
claude mcp add --env 'LUMEN_CRUX_KEY=<YOUR_LUMEN_CRUX_KEY>' --env 'LUMEN_OPR_KEY=<YOUR_LUMEN_OPR_KEY>' --env 'LUMEN_PSI_KEY=<YOUR_LUMEN_PSI_KEY>' lumen -- npx -y @lumen-seo/cli
```

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

```json
{
  "mcpServers": {
    "lumen": {
      "command": "npx",
      "args": [
        "-y",
        "@lumen-seo/cli"
      ],
      "env": {
        "LUMEN_CRUX_KEY": "<YOUR_LUMEN_CRUX_KEY>",
        "LUMEN_OPR_KEY": "<YOUR_LUMEN_OPR_KEY>",
        "LUMEN_PSI_KEY": "<YOUR_LUMEN_PSI_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "lumen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lumen-seo/cli"
      ],
      "env": {
        "LUMEN_CRUX_KEY": "<YOUR_LUMEN_CRUX_KEY>",
        "LUMEN_OPR_KEY": "<YOUR_LUMEN_OPR_KEY>",
        "LUMEN_PSI_KEY": "<YOUR_LUMEN_PSI_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lumen","type":"stdio","command":"npx","args":["-y","@lumen-seo/cli"],"env":{"LUMEN_CRUX_KEY":"<YOUR_LUMEN_CRUX_KEY>","LUMEN_OPR_KEY":"<YOUR_LUMEN_OPR_KEY>","LUMEN_PSI_KEY":"<YOUR_LUMEN_PSI_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "lumen": {
      "command": "npx",
      "args": [
        "-y",
        "@lumen-seo/cli"
      ],
      "env": {
        "LUMEN_CRUX_KEY": "<YOUR_LUMEN_CRUX_KEY>",
        "LUMEN_OPR_KEY": "<YOUR_LUMEN_OPR_KEY>",
        "LUMEN_PSI_KEY": "<YOUR_LUMEN_PSI_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add lumen --env 'LUMEN_CRUX_KEY=<YOUR_LUMEN_CRUX_KEY>' --env 'LUMEN_OPR_KEY=<YOUR_LUMEN_OPR_KEY>' --env 'LUMEN_PSI_KEY=<YOUR_LUMEN_PSI_KEY>' -- npx -y @lumen-seo/cli
```

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

```toml
[mcp_servers.lumen]
command = "npx"
args = ["-y", "@lumen-seo/cli"]

[mcp_servers.lumen.env]
LUMEN_CRUX_KEY = "<YOUR_LUMEN_CRUX_KEY>"
LUMEN_OPR_KEY = "<YOUR_LUMEN_OPR_KEY>"
LUMEN_PSI_KEY = "<YOUR_LUMEN_PSI_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'LUMEN_CRUX_KEY=<YOUR_LUMEN_CRUX_KEY>' -e 'LUMEN_OPR_KEY=<YOUR_LUMEN_OPR_KEY>' -e 'LUMEN_PSI_KEY=<YOUR_LUMEN_PSI_KEY>' lumen npx -- -y @lumen-seo/cli
```

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

```json
{
  "mcpServers": {
    "lumen": {
      "command": "npx",
      "args": [
        "-y",
        "@lumen-seo/cli"
      ],
      "env": {
        "LUMEN_CRUX_KEY": "<YOUR_LUMEN_CRUX_KEY>",
        "LUMEN_OPR_KEY": "<YOUR_LUMEN_OPR_KEY>",
        "LUMEN_PSI_KEY": "<YOUR_LUMEN_PSI_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LUMEN_CRUX_KEY` | no | yes | Chrome UX Report API key — enables field CWV data. Optional; without it that leg reports not-configured. |
| `LUMEN_OPR_KEY` | no | yes | Open PageRank API key — enables the OPR authority signal. Optional; without it that signal reports not-configured. |
| `LUMEN_PSI_KEY` | no | yes | Google PageSpeed Insights API key — enables the CWV lab leg of page reports. Optional; without it that leg reports not-configured. |

## Tools (5)

- `lumen_audit_site`: Bounded site SEO audit: crawls up to maxPages (default from server config, cap 10000), returns severity counts (error|warning|info), top issues, and passesThreshold for the failThreshold gate (default error; off disables; an incomplete report never passes).
- `lumen_page_report`: Page report for one URL: PageSpeed Insights lab data, CrUX field data (when includeCrux), and local page meta when available. Provenance on every metric; unavailable sections say why.
- `lumen_keyword_ideas`: Keyword ideas for a seed term from the configured suggestion/demand providers. Ideas are estimates — each carries its source and estimate label.
- `lumen_rank_check`: Check where a domain ranks for a keyword in search results (best effort, provider-labeled). Not found in the top N is a successful found:false answer. Appends rank history when a store is wired. NOTE: unavailable over remote MCP (needs local compute: crawl/HTML parsing).
- `lumen_authority`: Authority signals for a domain from the configured providers (e.g. Tranco rank, Open PageRank). Unconfigured providers are listed, never called.

## FAQ

### What kind of SEO audits does lumen provide?

It provides local site audits using a crawler with 36 built-in rules, severity scoring, and CI-friendly exit codes.

### How does lumen handle API keys for data providers?

It uses a 'Bring Your Own Key' (BYOK) model where keys are read from environment variables by name and are never stored or logged.

### What MCP tools are available in lumen?

The toolkit includes five MCP tools: lumen_audit_site, lumen_page_report, lumen_keyword_ideas, lumen_rank_check, and lumen_authority.
