Skip to content

inooLabs/domstol-mcp

Repository files navigation

Domstolen MCP Server

An MCP (Model Context Protocol) server that provides access to the Swedish Courts (Sveriges Domstolar) published court decisions API.

What it does

This server exposes tools for querying Swedish court decisions and legal precedents, including:

  • List of Swedish courts (domstolar)
  • Published court decisions (publiceringar)
  • Case law search with advanced filters
  • Legal area and keyword facets
  • Grouped publications by correlation number

Running locally

pip install -r requirements.txt
python server.py

The server runs on port 8005 using streamable HTTP transport.

Docker

docker build -t domstolen-mcp .
docker run -p 8005:8005 domstolen-mcp

Or with docker-compose:

docker-compose up

Available tools

Tool Description
hamta_domstolar List all Swedish courts that publish decisions
hamta_publiceringar Get published court decisions with optional filtering
hamta_publicering_via_id Get a specific publication by ID with full text content
hamta_publiceringsgrupp_via_id Get all publications in a group by correlation number
sok_publiceringar Advanced search with filters (dates, legal areas, keywords, etc.)
hamta_sokforfiningar Get search refinement facets with counts

Data source

All data comes from the public Swedish Courts API at https://rattspraxis.etjanst.domstol.se/api/v1. No authentication required.

About

An MCP server dedicated to fetching data from Sveriges Domstolar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published