Lexar — Claude Code MCP server for Norwegian law
Lexar lets an AI assistant search current Norwegian statutes and central regulations from Lovdata, with source references. Use it to inspect legal wording and related documents.
claude mcp add --transport http lexar https://lexar-api.publifye.com/mcpWhat Lexar does
Lexar connects an assistant to consolidated Norwegian statutes and central regulations from Lovdata. Its research tools find documents, read provisions, show document structure and follow links between materials. When a name or citation is ambiguous, Lexar returns candidates instead of silently choosing one.
The corpus also includes preparatory works linked to relevant provisions; these documents can be opened by ID. Lexar provides source text and navigation, not legal advice. It does not cover court decisions, local regulations, English translations or historical consolidated versions. A document’s presence also does not establish that every provision in it is in force.
What it helps with
- find a Norwegian statute by name or citation
- check the wording of a specific provision
- inspect the structure of a legal document
- locate preparatory works linked to a provision
Example prompts for the agent
- Find the Norwegian statute referred to in this citation and show possible matches.
- Read the provision about deadlines and give me its source.
- Find preparatory works connected to this statute.
How to install Lexar
Platform CLI: remote server
claude mcp add --transport http lexar https://lexar-api.publifye.com/mcpPlatform CLI: remote server
codex mcp add lexar --url https://lexar-api.publifye.com/mcpConfig file
{
"mcpServers": {
"lexar": {
"url": "https://lexar-api.publifye.com/mcp"
}
}
}Config file
{
"servers": {
"lexar": {
"type": "http",
"url": "https://lexar-api.publifye.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http lexar https://lexar-api.publifye.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Lexar
How do I install Lexar in Claude Code?
Run claude mcp add --transport http lexar https://lexar-api.publifye.com/mcp. OAuth opens in a browser on first use.
What does Lexar do?
It searches and presents current consolidated Norwegian statutes and central regulations from Lovdata, with source references. It supports legal research but does not provide legal advice.
What is outside Lexar’s coverage?
The corpus excludes court decisions, local regulations, English translations and historical consolidated versions. A missing search result does not establish that no relevant law exists.