home / mcp / swedish law mcp server

Swedish Law MCP Server

Queries Swedish statutes and EU cross-references directly from Claude and compatible MCP clients.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-finnish-law-mcp": {
      "url": "https://swedish-law-mcp.vercel.app/mcp"
    }
  }
}

You can query 717 Swedish statutes directly from Claude or compatible MCP clients, with full provision text, cross-references to EU law, and up-to-date legal data. This MCP server makes Swedish law searchable, AI-friendly, and easy to integrate into your legal tech or research workflows.

How to use

Connect to the Swedish law MCP server via an MCP client of your choice. You have two primary options: use the remote hosted endpoint or run the server locally. Once connected, you can search for specific statutes, retrieve exact provisions, check if a statute is in force, and explore EU cross-references and preparatory works. Use natural language queries like “What does Dataskyddslagen say about consent?” or “Which Swedish laws implement the GDPR?” to get precise provisions with context.

How to install

Prerequisites you need before starting include having Node.js and npm installed on your machine. You will also need internet access to download the MCP package or reach the remote endpoint.

# Run the MCP server locally using the recommended shortcut
npx @ansvar/swedish-law-mcp

# Alternatively, start the server in development mode if you prefer a local build workflow
npm run dev

Additional sections

Configure how you connect from clients that support the MCP protocol. You can use the remote endpoint directly from Claude, Claude Code, Claude Desktop, or GitHub Copilot services. For local development, you can start a local MCP server using npm or npx, and then point your clients to the local instance if needed.

Available tools

search_legislation

Perform a fast BM25-ranked full-text search over 31,198 provisions using FTS5 to locate statutes, sections, and related text.

get_provision

Retrieve a specific provision by its SFS number, chapter, and section to show exact text with context.

search_case_law

Search case law with full-text search and filters by court and date to locate relevant decisions.

get_preparatory_works

Fetch linked propositions and SOUs for a chosen statute to trace legislative history.

validate_citation

Validate a citation against the database to check accuracy and consistency.

build_legal_stance

Aggregate citations from statutes, case law, and preparatory works to form a legal position.

format_citation

Format legal citations according to Swedish conventions, including full, short, and pinpoint formats.

check_currency

Verify whether a statute is in force, amended, or repealed and obtain current status.

get_eu_basis

Retrieve EU directives and regulations applicable to a Swedish statute.

get_swedish_implementations

Identify Swedish laws that implement a given EU act.

search_eu_implementations

Search EU implementation documents and count Swedish implementations.

get_provision_eu_basis

Obtain EU law references for a specific provision.

validate_eu_compliance

Check whether EU implementations are current and compliant with the directive or regulation.