Klaracase for developers: API, MCP server and SDKs
One API token, three ways to the same data: REST API, MCP server and SDKs. Here you find the documentation, the OpenAPI file, the packages and the limits.
First call in three steps
Create an API token
Sign in and create a token. It works for the REST API and the MCP server. You choose a life of 30, 90, 180 or 365 days, the default is 365.
Create a tokenSend a call
You find an example on the case law API page.
Case law APIInstall an SDK
The packages are listed below.
A token carries up to five abilities: search, read, graph, datapackage and citation-check. Grant only the abilities your code needs.
REST API and OpenAPI file
The REST API under /api/v1 offers the same functions as the MCP server. The OpenAPI file is public and needs no token. Errors come as problem+json with a stable value in the field code.
MCP server
The MCP server runs at the address below (streamable HTTP). Sign in with OAuth 2.1 and PKCE, or with the same bearer token as the REST API. Clients that cannot use a remote server can use the bridge npx mcp-remote.
Address of the MCP server
https://klaracase.de/mcpSingle areas of law have their own addresses, for example /mcp/steuerrecht.
SDKs
There are packages for five languages. Each package has its own repository.
| Language | Package | Install | Source |
|---|---|---|---|
| JavaScript and TypeScript | @klaracase/sdk | Not published yet | Repository |
| Python | klaracase | Not published yet | Repository |
| PHP | klaracase/klaracase | Not published yet | Repository |
| Go | github.com/klaracase/klaracase-go | Not published yet | Repository |
| Rust | klaracase | Not published yet | Repository |
Agent skills
For Claude Code there are skills for research in German case law and for checking citations. You install them from the marketplace:
Not published yet
Limits and prices
Each token may send 60 requests per minute. Citation checks, datapackages and file uploads are limited to 10 requests per minute.
Every function has a fixed price in credits. The corpus overview, the filter lists and uploads are free.
| Call | Credits |
|---|---|
| Search | 1 |
| Read a decision | 1 |
| Look up a norm | 1 |
| Citation network of a decision | 2 |
| Datapackage | 5 |
| Citation check, by length | from 2 |
Anyone who signs up with a confirmed e-mail address gets 30 credits once, valid for 30 days. After that the plans on the pricing page apply.
Daily caps on rows and documents apply per plan. They are listed in the API reference. To the pricing page
Klaracase is not affiliated with any court or the federal government.