Norwegian legislation via MCP — full-text search across statutes and provisions
Norwegian legislation via MCP — full-text search across statutes and provisions
Valid MCP server (2 strong, 2 medium validity signals). 5 known CVEs in dependencies (0 critical, 3 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (113/113 approved).
5 files analyzed · 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"eu-ansvar-norwegian-law-mcp": {
"args": [
"-y",
"@ansvar/norwegian-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
▶ Try this MCP instantly via Ansvar Gateway
50 free queries/day · no card required · OAuth signup at ansvar.eu/gateway
One endpoint, one OAuth signup, access from any MCP-compatible client.
Claude Code (one line):
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp
Claude Desktop / Cursor — add to claude_desktop_config.json (or mcp.json):
{
"mcpServers": {
"ansvar": {
"type": "url",
"url": "https://gateway.ansvar.eu/mcp"
}
}
}
Claude.ai — Settings → Connectors → Add custom connector → paste https://gateway.ansvar.eu/mcp
First request opens an OAuth flow at ansvar.eu/gateway. After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.
You can also clone this repo and build the corpus yourself. The schema, fetcher, and tool implementations all live here. What is not in the repo is the pre-built database — TDM and standards-licensing constraints on the upstream sources mean we host the corpus on Ansvar infrastructure rather than redistribute it as a public artifact.
Build your own: run this repo's ingestion script (entry-point varies per
repo — typically scripts/ingest.sh, npm run ingest, or make ingest;
check the repo root).
Norwegian statutes and central regulations via api.lovdata.no — NLOD 2.0 licensed.
Query current Norwegian statutes (gjeldende lover) directly from Claude, Cursor, or any MCP-compatible client. Data sourced from Lovdata's sanctioned bulk API under NLOD 2.0.
Built by Ansvar Systems
Data source: Lovdata Open Data API (api.lovdata.no/v1/publicData). This MCP uses only the publicly-licensed bulk download endpoint. It does not scrape lovdata.no/dokument/ HTML.
Norwegian legal research is scattered across Lovdata, Norsk Lovtidend publications, and EUR-Lex. Whether you're:
...you shouldn't need browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes Norwegian law searchable, cross-referenceable, and AI-readable.
Connect to the hosted version through the Ansvar Gateway — zero dependencies, nothing to install.
Endpoint: https://gateway.ansvar.eu (OAuth 2.1 — requires an Ansvar account)
Claude Desktop — add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Cursor / VS Code:
Once connected, ask naturally:
| Category | Details |
|---|---|
| Statutes | All current consolidated Norwegian laws (gjeldende lover) from api.lovdata.no |
| Regulations | All current central regulations (gjeldende sentrale forskrifter) from api.lovdata.no |
| Full-text search | FTS5 on all provision text, both Bokmål and Nynorsk |
| Case law | Not included — Norwegian case law is provided by a separate MCP (norwegian-court-decisions-mcp) |
| Preparatory works | Not included in this MCP — covered by Lovdata Pro (paid, out of scope) |
| Daily Updates | Automated freshness checks against api.lovdata.no |
Verified data only — every citation is validated against api.lovdata.no. Zero LLM-generated content.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
api.lovdata.no → Parse → SQLite → FTS5 snippet() → MCP response
↑ ↑
Provision parser Verbatim database query
| Traditional Approach | This MCP Server |
|---|---|
| Search lovdata.no by LOV number | Search by plain Norwegian: "personopplysninger samtykke" |
| Navigate multi-chapter statutes manually | Get the exact provision with context |
| "Is this statute still in force?" → check manually | check_currency tool → answer in seconds |
| Find EU basis → dig through EUR-Lex | get_eu_basis → linked EU directives instantly |
| Check updates manually | Daily automated freshness checks |
| No API, no integration | MCP protocol → AI-native |
Traditional: Open lovdata.no → Find LOV number → Navigate chapters → Check for amendments → Cross-reference with Norsk Lovtidend → Repeat
This MCP: "What are the consent requirements under Personopplysningsloven?" → Done.
| Tool | Description |
|---|---|
search_legislation | FTS5 search on provisions with BM25 ranking |
get_provision | Retrieve specific provision by LOV identifier + chapter/section |
validate_citation | Validate citation against database |
format_citation | Format citations per Norwegian conventions |
check_currency | Check if statute is in force, amended, or repealed |
get_eu_basis | Get EU directives/regulations underlying a Norwegian statute |
See TOOLS.md for full tool documentation.
Norway is a member of the EEA (European Economic Area) and has implemented a large body of EU legislation through the EEA Agreement. Many Norwegian statutes transpose EU directives — for example, Personopplysningsloven (LOV-2018-06-15-38) implements the GDPR as adopted through the EEA Agreement (EØS-avtalen).
The get_eu_basis tool maps Norwegian statutes to the EU acts they implement.
All content is sourced from Stiftelsen Lovdata via the Open Data API:
A GitHub Actions workflow monitors data sources for updates. The MCP includes staleness warnings when data exceeds the configured threshold.
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---|---|---|
| CodeQL | Static analysis for security vulnerabilities | Weekly + PRs |
| Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| Gitleaks | Secret detection across git history | Every push |
| Trivy | CVE scanning on filesystem and npm dependencies | Daily |
| Docker Security | Container image scanning + SBOM generation | Daily |
| Socket.dev | Supply chain attack detection | PRs |
| OSSF Scorecard | OpenSSF best practices scoring | Weekly |
| Dependabot | Automated dependency updates | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from Stiftelsen Lovdata via api.lovdata.no. However:
- This is a research tool, not a substitute for professional legal counsel
- Case law is not included — use
norwegian-court-decisions-mcpfor Høyesterett, Lagmannsrett, and tingretten decisions- Verify critical citations against primary sources (lovdata.no) for court filings
- EU cross-references are derived from Norwegian statute text, not EUR-Lex full text
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for Advokatforeningen compliance guidance.
This repository uses a dev integration branch. Do not push directly to main.
feature-branch → PR to dev → verify on dev → PR to main → deploy
main is production-ready. Only receives merges from dev via PR.dev is the integration branch. All changes land here first.dev.git clone https://github.com/Ansvar-Systems/norwegian-law-mcp
cd norwegian-law-mcp
npm install
npm run build
npm test
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
npm run ingest # Ingest from api.lovdata.no
npm run build:db # Rebuild SQLite database
npm run check-updates # Check for amendments
npm run drift:detect # Detect corpus drift
Full fleet at ansvar.eu/gateway.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools for the European market.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.