An MCP (Model Context Protocol) server that provides access to the Swedish Courts (Sveriges Domstolar) published court decisions API.
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
pip install -r requirements.txt
python server.pyThe server runs on port 8005 using streamable HTTP transport.
docker build -t domstolen-mcp .
docker run -p 8005:8005 domstolen-mcpOr with docker-compose:
docker-compose up| 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 |
All data comes from the public Swedish Courts API at https://rattspraxis.etjanst.domstol.se/api/v1. No authentication required.