etar-mcp
by lietuva-mcp
README.md
# etar-mcp
[](https://github.com/lietuva-mcp/etar/actions/workflows/ci.yml)
Lithuania's Register of Legal Acts (Teisės aktų registras, [e-tar.lt](https://www.e-tar.lt)) for Claude and any MCP
client. Ask "how many acts were published on Friday?", "what does article 52 of the Labour Code say?" or "what did
the Constitution say in 2020?", and it reads the register's official open data.
Zero dependencies: Node's own `fetch`, and nothing else.
---
## What it can do
| Tool | What it answers |
| --- | --- |
| `etar_search` | Acts newest published first, a page of up to 20 at a time, `page` reading the next: each one's TAR code, title, type, the body that adopted it, the day adopted and its number, the day published, whether it is in force, and its page on e-tar.lt, with how many acts the search finds in all. Narrows by words in the title (any case, all of them), type (Įstatymas, Nutarimas, Įsakymas…), the adopting body, status (in force, not yet, no longer, suspended), group (state, municipal, courts, international) and the days published. |
| `etar_act` | One act, by its TAR code, document id or e-tar.lt link: its type, number, the days adopted, published, in force from and to, its status, its consolidated versions, and its text. The text is the consolidated version in force today, or on any day `on` names, or as adopted with `original`; one article with `article` (such as `52` or `6.245`), or a long text in parts of about 40 thousand characters with `part`. |
What it does not do: search inside the texts, read annexes kept as separate files, or read e-tar.lt's own pages. It
is not legal advice.
---
## Install it
You need Node.js 22 or newer (`node --version`; get it from [nodejs.org](https://nodejs.org)).
**Claude Code**
```sh
claude mcp add etar -- npx -y @lietuva-mcp/etar
```
**Claude Desktop**: Settings → Developer → Edit Config, and add:
```json
{
"mcpServers": {
"etar": { "command": "npx", "args": ["-y", "@lietuva-mcp/etar"] }
}
}
```
Any other MCP client: run `npx -y @lietuva-mcp/etar` as a stdio server.
---
## Where the data comes from
e-tar.lt is a JavaServer Faces application: its search is a stateful form, and it has no robots.txt. The Office of
the Seimas publishes the same register as open data on the Lithuanian open data portal, at
`https://get.data.gov.lt/datasets/gov/lrsk/teises_aktai`, with every act's dates, status and full text, and every
consolidated version. This server reads only that API, with its own query language (filters, `select`, `sort`,
`limit`, `offset`, `count`), and never e-tar.lt itself.
The open data trails the register: on Monday 2026-11-30 the newest act it held was published on Friday 2026-11-27.
An act published today may not be found yet. Every answer ends with the day it was read.
- **It says who it is.** Every request carries `lietuva-mcp-etar/<version> (+https://github.com/lietuva-mcp/etar)` as
its user agent.
- **It asks for what it answers.** A search selects the fields of its rows and never the texts; an act's text is
asked for once, for the one version answered.
- **It is paced.** At most one request every half second, the first at once. A search is two (its rows and its
count), an act three (the act, its versions and the text). A call whose turn is more than five seconds off is
refused, not queued.
- **It takes no for an answer.** A refusal (403, 429, 503, a challenge, anything but the data) is reported once and
never retried. A redirect is followed only on the API's own address, at most 3 times.
- **It keeps nothing.** No cookies, no cache: each call is a fresh request.
Hosting it for other people? Set `LIETUVA_MCP_OPERATOR` to your name, such as `example.com`, and the user agent says
`operated by example.com`.
Legal texts reach the model as data: the tools tell it so, and never to follow instructions in a text. Official
legal acts are not protected by copyright in Lithuania (Law on Copyright and Related Rights, article 5).
The dataset, [Teisės aktų registro duomenys](https://data.gov.lt/datasets/2613/), is published by the Office of
the Seimas under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), and every answer names it as its source.
---
## Develop
```sh
pnpm install
pnpm test # node --test, against a fake of the open data API on 127.0.0.1
pnpm typecheck
pnpm lint
pnpm build # dist/main.js, the published bundle
```
Contributing needs Node 24, which runs the TypeScript sources directly. The fake API in `src/test/fake-api.ts`
answers the part of the query language the tools speak, and a query it cannot parse with 400, as the real one does.
Not affiliated with the Office of the Seimas or the open data portal.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues