# Lexar MCP server

> Provides AI assistants with access to consolidated Norwegian statutes and central regulations from Lovdata with source citations.

- Repository: https://github.com/Publifye/mcp
- Page: https://hostedmcp.org/servers/publifye/lexar
- Transport: remote
- Stars: 1
- License: CC-BY-4.0
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http lexar https://lexar-api.publifye.com/mcp
```

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

```json
{
  "mcpServers": {
    "lexar": {
      "url": "https://lexar-api.publifye.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "lexar": {
      "type": "http",
      "url": "https://lexar-api.publifye.com/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lexar","type":"http","url":"https://lexar-api.publifye.com/mcp"}'
```

### Codex

```sh
codex mcp add lexar --url https://lexar-api.publifye.com/mcp
```

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

```toml
[mcp_servers.lexar]
url = "https://lexar-api.publifye.com/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http lexar https://lexar-api.publifye.com/mcp
```

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

```json
{
  "mcpServers": {
    "lexar": {
      "url": "https://lexar-api.publifye.com/mcp",
      "type": "http"
    }
  }
}
```

## FAQ

### Does Lexar provide legal advice?

No, Lexar is a research surface that provides wording and source text, but it does not generate legal advice.

### What legal documents are included in the corpus?

The corpus includes consolidated statutes, central regulations from Lovdata, and preparatory works (forarbeider) from Stortinget and Nasjonalbiblioteket.
