vmi-mcp
# vmi-mcp
[](https://github.com/lietuva-mcp/vmi/actions/workflows/ci.yml)
Lithuania's State Tax Inspectorate (Valstybinė mokesčių inspekcija, VMI) for Claude and any MCP client. Ask "does
the company with code 121215434 owe any taxes?" or "how much tax did it pay last year?", and it reads VMI's open data
on get.data.gov.lt.
Zero dependencies: Node's own `fetch`, and nothing else.
---
## What it can do
| Tool | What it answers |
| --- | --- |
| `vmi_company` | One legal entity by its 9-digit code, in three parts: its entry in VMI's taxpayer register (taxpayer types, registration dates, VAT code and its dates, the economic activities it carries on with the main one marked, the taxpayer groups it belongs to); the tax arrears VMI lists it with (total, overdue, deferred, and the deferred part overdue, as of the day VMI last updated it, or none); and the taxes it paid into VMI's accounts each year. |
Each part names the dataset it comes from and its licence. Types, activities and groups are in Lithuanian, as VMI
writes them; amounts are in euros.
What it does not do: find a company by its name (the Register of Legal Entities does, for example with
[@lietuva-mcp/jar](https://github.com/lietuva-mcp/jar)'s `jar_search`), break taxes paid down by tax (VMI publishes one
total a year), 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 vmi -- npx -y @lietuva-mcp/vmi
```
**Claude Desktop**: Settings → Developer → Edit Config, and add:
```json
{
"mcpServers": {
"vmi": { "command": "npx", "args": ["-y", "@lietuva-mcp/vmi"] }
}
}
```
Any other MCP client: run `npx -y @lietuva-mcp/vmi` as a stdio server.
---
## How it treats the API
- **It says who it is.** Every request carries `lietuva-mcp-vmi/<version> (+https://github.com/lietuva-mcp/vmi)` 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 `vmi_company` is three requests, one per dataset.
- **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.** Years and activities are ordered here, not by the API.
- **It keeps nothing.** Every 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
| Part | Dataset | Licence |
| --- | --- | --- |
| `taxpayer_register` | [Mokesčių mokėtojų registre fiksuoti juridinių asmenų duomenys](https://data.gov.lt/datasets/607/) (`datasets/gov/vmi/mm_registras`), updated daily | CC BY 4.0 |
| activity names in it | [Ekonominės veiklos rūšių klasifikatorius (EVRK 2 red.)](https://data.gov.lt/datasets/1927/) (`datasets/gov/lsd/cl/evrk`), Valstybės duomenų agentūra | CC BY 4.0 |
| `tax_arrears` | [Juridinių asmenų mokestinė nepriemoka](https://data.gov.lt/datasets/1202/) (`datasets/gov/vmi/ja_nepriemokos`), updated daily | CC BY 4.0 |
| `taxes_paid` | [Juridinių asmenų sumokėti mokesčiai](https://data.gov.lt/datasets/673/) (`datasets/gov/vmi/ja_mokesciai`), updated monthly | CC BY 4.0 |
Where the licences come from: data.gov.lt answers scripts with 403, and the API itself publishes no licence, so they
were read on 2026-11-28 from the EU's data portal, which harvests data.gov.lt's catalogue and lists each dataset's
licence there:
[607](https://data.europa.eu/data/datasets/https-data-gov-lt-datasets-607-),
[1202](https://data.europa.eu/data/datasets/https-data-gov-lt-datasets-1202-~~1),
[673](https://data.europa.eu/data/datasets/https-data-gov-lt-datasets-673-),
[1927](https://data.europa.eu/data/datasets/https-data-gov-lt-datasets-1927-~~1). Every part of an answer carries its
attribution in a `source` field, such as `Valstybinė mokesčių inspekcija, Juridinių asmenų mokestinė nepriemoka (open
data, data.gov.lt/datasets/1202, CC BY 4.0)`. Pass it on with what you use.
What to know about it:
- **Arrears are VMI's statistics, not a certificate of debt.** VMI says so in the dataset's description; enforcement
orders are left out. `as_of` is the day VMI last updated the entity's entry. An entity VMI does not list owes
nothing by this dataset, and `owed` is `null`.
- **The taxpayer register drops entities long gone.** One deregistered years ago can be missing from it and still be
listed with arrears (3 of 8 sampled debtors, 2026-11-28); its `entry` is then `null`. A code that no dataset holds
is an error.
- **Some activities have no code.** Activities begun since 2025, when EVRK 2.1 came in, are often linked to no EVRK 2
class in the open data (about a third of current ones, 2026-11-28); they are answered with an empty code and name,
not left out.
- **Taxes paid is one total a year.** The current year runs from January to `through_month`.
- **The API is slow at times.** Asked about a company for the first time, each dataset took from a fraction of a
second to some fifteen seconds (2026-11-28), so one `vmi_company` can take half a minute. A request unanswered
after twenty seconds is given up on and said to be.
---
## Develop
```sh
pnpm install
pnpm test # node --test, against a fake of the API on 127.0.0.1 serving answers saved from it
pnpm typecheck
pnpm lint
pnpm build # dist/main.js, the published bundle
```
Contributing needs Node 24, which runs the TypeScript sources directly. The API's answers the tests serve are in
`fixtures/`, saved from get.data.gov.lt on 2026-11-28.
Not affiliated with Valstybinė mokesčių inspekcija.
## License
The code is MIT. The data it reads is CC BY 4.0, Valstybinė mokesčių inspekcija's (and Valstybės duomenų agentūra's
for the activity classifier).
TDQS
Scored across 1 tool
There is only one tool, so an agent can never misselect between competing options. Its purpose — a by-code lookup of one Lithuanian legal entity across three named VMI datasets — is stated unambiguously in the description.
The single name vmi_company is snake_case with a clear source prefix and resource noun, and is internally readable. With only one tool there is no cross-tool pattern to validate, so it falls short of a demonstrated verb_noun convention.
One tool is thin for a data server, and it bundles three distinct datasets (register entry, arrears, taxes paid) into a single all-or-nothing call, so callers cannot request just the slice they need. Still, the underlying source is narrow enough that a single lookup entry point is defensible.
The three main VMI open datasets for one entity are covered, but access is strictly by 9-digit code: there is no name-based search, listing, or discovery path, which will dead-end agents that only know a company name. No write operations are expected for an open-data read surface.