MCP server for the Lithuanian Register of Legal Acts (TAR) via the data.gov.lt open-data API - search and fetch Lithuanian legislation with verifiable citations.
Project description
lt-eli-mcp
An MCP server for the Lithuanian Register of Legal Acts (TAR) via the data.gov.lt open-data API. It searches Lithuanian legislation by title and fetches full text, with verifiable citations.
Part of the MateMatic eu-legal-mcp production line - after PL, DE, AT, ES, FI, IE, NL, SE, FR,
LU, DK, CZ and HR. Same citation contract, TAR source. This connector reads a REST-JSON open-data
API (the data.gov.lt Spinta endpoint).
Scope. This MVP searches acts by title substring, returns metadata, and fetches the full Lithuanian text. ~CC BY 4.0 open data; acts are addressed by their TAR code (
tar_kodas). Language: Lithuanian. Every response carries adataset_note.ELI is national, not data.europa.eu. Lithuania has no
data.europa.euELI for the TAR dataset.eli_uricarries the canonicale-tar.ltlegalAct URL (the stable national identifier), which is also thesource_url. Every response carries aneli_notesaying so.
The tools
| Tool | What it does |
|---|---|
lt_search |
Find acts whose title contains a substring (optionally by type). |
lt_get_act |
Metadata for an act by its TAR code. |
lt_get_text |
Full Lithuanian text of an act by its TAR code. |
Every response carries the contract: eli_uri (the e-tar.lt URL, e.g.
https://e-tar.lt/portal/lt/legalAct/...), human_readable_citation (title + official number),
and source_url.
Install
Run it with no install step (once published to PyPI):
uvx lt-eli-mcp
Or from source:
cd lt-eli-mcp
pip install -e .
Configure (Claude Code / any MCP client)
{
"mcpServers": {
"lt-eli-mcp": { "command": "lt-eli-mcp" }
}
}
Environment:
LT_ELI_BASE_URL- defaulthttps://get.data.gov.ltLT_ELI_CACHE_DIR- default~/.matematic/cache/lt-eliLT_ELI_AUDIT_DIR- default~/.matematic/audit
No API key. The data.gov.lt open-data API is keyless.
Governance
- Public data only - read-only against data.gov.lt; no client data leaves the machine.
- Audit log - every tool call appends one JSON line to
~/.matematic/audit/lt-eli-mcp.jsonl. - Vendor-neutral - talks only to
get.data.gov.lt; no LLM provider, no telemetry. - Verifiable citations - every response is independently checkable via
source_url.
See CONSTITUTION.md and DISCOVERY.md.
Tests
pip install -e ".[dev]"
pytest tests/test_instructions_drift.py tests/test_parse.py -v # offline
pytest tests/test_smoke.py -v # hits live data.gov.lt
Licence
Apache-2.0. © Matematic Solutions / Wieslaw Mazur. TAR data is CC BY 4.0; relayed with attribution
and a source_url.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lt_eli_mcp-0.1.1.tar.gz.
File metadata
- Download URL: lt_eli_mcp-0.1.1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f589c32bc2b13eacae8a38acfec6b3ed2724bfce6a3879262565f378347108
|
|
| MD5 |
a73de2e59b349cef4f041993cfeab471
|
|
| BLAKE2b-256 |
d87d0dd2df13a1294057e3bee490569934ad74e0a25b7c1b2e691af78d5c6137
|
File details
Details for the file lt_eli_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lt_eli_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98dd2cd4f5f6d16240f528d4f219e8b14a70f06b7b0cb21400d5bf7ca7af5c03
|
|
| MD5 |
272f329d71c4d6de9689f200c90aecfd
|
|
| BLAKE2b-256 |
c308331be9f8b67fbfe3619590ecd4720845daeafa2da41653f1ca663f1eefeb
|