Skip to main content
Glama

etar-mcp

ci

Lithuania's Register of Legal Acts (Teisės aktų registras, 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.


Related MCP server: Legal MCP Server

Install it

You need Node.js 22 or newer (node --version; get it from nodejs.org).

Claude Code

claude mcp add etar -- npx -y @lietuva-mcp/etar

Claude Desktop: Settings → Developer → Edit Config, and add:

{
  "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, is published by the Office of the Seimas under CC BY 4.0, and every answer names it as its source.


Develop

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Searches Lithuanian legislation by title and fetches full text from the Register of Legal Acts (TAR) via the data.gov.lt open-data API, with verifiable citations.
      4
      48 PyPI
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants and agents to search a legal document collection via hybrid BM25+dense retrieval, read articles with context, and generate full or short citations. It also exposes whole acts as Markdown resources, provides a citation-answering prompt, and supports stdio and streamable HTTP transports.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI clients to search and retrieve official legal documents from the Ministry of Government Legislation's Open API — current and historical statutes, administrative rules, local ordinances, court precedents, constitutional decisions, and legal interpretations — including article-level text lookup. Runs locally over stdio with paginated retrieval of long responses and no external database or web UI required.
      3
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Enables searching Lithuanian legislation in the Register of Legal Acts (TAR) via data.gov.lt, resolving citations, and retrieving consolidated texts, provisions, editions, amendments, attachments, and Constitutional Court rulings with verifiable citations. It supports checking document references against legislation and serves cached data when the source is unavailable.
      20
      -