jar-mcp
# jar-mcp
[](https://github.com/lietuva-mcp/jar/actions/workflows/ci.yml)
Lithuania's Register of Legal Entities (Juridinių asmenų registras) for Claude and any MCP client. Ask "what is the
company with code 121215434?" or "is this company late filing its accounts?", and it reads Registrų centras' open data
on get.data.gov.lt.
Zero dependencies: Node's own `fetch`, and nothing else.
---
## What it can do
| Tool | What it answers |
| --- | --- |
| `jar_search` | Legal entities (companies, partnerships, associations, public bodies) by a part of their name, in any case, or by their code: up to 20, each with its code, name, legal form, legal status and registration date. Entities that left the register only when asked for. |
| `jar_company` | One entity by its code: name, legal form, legal status and since when, registration and deregistration dates, registered office address, authorised capital, whether it is late filing its financial statements, and its last 3 years' balance sheet and profit and loss statement as last filed. |
Forms, statuses and statement lines are in Lithuanian, as the register writes them; amounts are in euros.
What it does not do: name managers, owners or employees (they are not in the open data), or log in to anything.
---
## 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 jar -- npx -y @lietuva-mcp/jar
```
**Claude Desktop**: Settings → Developer → Edit Config, and add:
```json
{
"mcpServers": {
"jar": { "command": "npx", "args": ["-y", "@lietuva-mcp/jar"] }
}
}
```
Any other MCP client: run `npx -y @lietuva-mcp/jar` as a stdio server.
---
## How it treats the API
- **It says who it is.** Every request carries `lietuva-mcp-jar/<version> (+https://github.com/lietuva-mcp/jar)` as
its user agent.
- **It is paced.** At most one request every 250 ms, the first at once; at 100 ms the API answered 429. A call whose
turn is more than five seconds off is refused, not queued. One `jar_company` is about ten requests, some 2.5 s.
- **It takes no for an answer.** The API fails a request with 500, 502 or 504 now and then by itself, so that one
request is sent once more, in its turn, and no more. A refusal (429, 503, anything else) is reported and never
retried. A redirect is not followed.
- **It sorts for itself.** Statements are ordered here, not by the API, whose sorting failed more often.
- **It keeps almost nothing.** The register's names for legal forms and statuses are read once per process; every
other answer is asked for afresh.
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`, so the API knows whose many requests come from your address.
---
## The data
The register is Registrų centras' open data, published on [get.data.gov.lt](https://get.data.gov.lt) under
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Every answer carries its attribution in a `source` field:
`Registrų centras, Juridinių asmenų registras (open data, get.data.gov.lt, CC BY 4.0)`. Pass it on with what you use.
---
## Develop
```sh
pnpm install
pnpm test # node --test, against a fake of the 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.
Not affiliated with Registrų centras.
## License
The code is MIT. The data it reads is CC BY 4.0, Registrų centras'.
TDQS
Scored across 2 tools
The two tools form the classic find-vs-fetch pair: jar_search locates entities by name fragment or code, while jar_company returns the full record for exactly one known code. Descriptions explicitly cross-reference each other ('One entity's card is jar_company'), leaving no realistic chance of misselection.
Both names share a clear 'jar_' namespace prefix and are snake_case, which is predictable. However the suffixes mix conventions: 'search' is an action verb while 'company' is a resource noun, so the pattern is prefix-consistent but not verb_noun-consistent.
Two tools is thin in absolute terms, but this is a narrowly scoped read-only registry lookup where search + detail genuinely exhausts the capability surface. Nothing appears padded or missing at the tool level.
For a read-only open-data source, search-by-name/code plus full record fetch covers the core lifecycle (no create/update/delete is even possible against Registrų centras open data). Minor gaps: search caps at 20 results with no pagination and offers no filtering by legal form, status, or registration date.