Skip to main content
Glama
regitra-mcp

regitra-mcp

by lietuva-mcp

regitra-mcp

ci

Statistics on Lithuania's registered vehicles and vehicle transactions for Claude and any MCP client. Ask "how many Toyota RAV4s are registered in Lithuania?" or "how were October's vehicle sale contracts paid?", and it asks AB „Regitra“'s open data on get.data.gov.lt to count them.

It answers counts only, which the API computes itself: never a vehicle, a document or a person.

Zero dependencies: Node's own fetch, and nothing else.


What it can do

Tool

What it answers

regitra_vehicle_count

How many vehicles the register holds with a plate, of a make, a model or both, the name matched anywhere in Regitra's (by default) or exactly.

regitra_transaction_count

How many transaction documents (sale contracts, invoices, gifts, inheritances and the rest) were issued, by kind, days of issue, country, currency, payment method and amount; with by: "payment_method", the count for each payment method too.

The answer is Markdown: a heading naming what was counted, the count and each filter given as **Label:** value lines, the breakdown by payment method as a table, and the source, the dataset and its licence, on the last line. Values are in Lithuanian, as Regitra writes them.

What it does not do, because the API cannot without reading a whole table: add amounts up (it has no sum), list the models of a make or group by any field (it has no grouping or distinct), or tie a transaction to the vehicle's make or model (the dataset holds neither). It never reads a row.


Related MCP server: DETRAN GO: Gravame

Install it

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

Claude Code

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

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

{
  "mcpServers": {
    "regitra": { "command": "npx", "args": ["-y", "@lietuva-mcp/regitra"] }
  }
}

Any other MCP client: run npx -y @lietuva-mcp/regitra as a stdio server.


How it treats the API

  • It says who it is. Every request carries lietuva-mcp-regitra/<version> (+https://github.com/lietuva-mcp/regitra) as its user agent.

  • It asks for counts only. Every request is a count() with filters, answered by the API as one number; no row, and so no identifier, ever reaches this server. A count is one request; a breakdown by payment method is five, one after another.

  • It is paced. At most one request every 250 ms, the first at once. A call whose turn is more than five seconds off is refused, not queued. get.data.gov.lt's robots.txt allows every path and asks crawlers for 5 seconds between requests; this server crawls nothing, and asks only for the counts a question needs.

  • 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 (403, 429, 503, a bot check, anything else) is reported and never retried. A redirect is followed only on get.data.gov.lt itself, at most 3 times.

  • It keeps nothing. No login, no cookies, no cache: every count 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

Tool

Dataset

Licence

regitra_vehicle_count

Transporto priemonių valstybiniai numeriai pagal markę ir modelį (datasets/gov/regitra/ktpr, model ValstybinisNumeris), updated daily

CC BY 4.0

regitra_transaction_count

Transporto priemonių sandorių duomenys (datasets/gov/regitra/tpsais, model Sandoris), updated daily

CC BY 4.0

Both are AB „Regitra“'s data, published by Valstybės duomenų agentūra. The licences were read on 2026-11-28 on each dataset's data.gov.lt page and on the EU's data portal, which lists the same licence for each (2749, 2812). Pass each answer's source line on with what you use.

data.gov.lt links no terms of use of its own beyond each dataset's licence.

Regitra's third dataset on the API, valid driving licences (datasets/gov/regitra/ktpvr), is pseudonymised data about people; this server does not read it at all.

What to know about it:

  • The vehicle dataset is a plate, a make and a model, nothing more. One row per plate, the plate itself masked (XXX000); no year, fuel, colour, owner or place. Regitra does not say whether vehicles struck off the register stay in it; the count is what the dataset holds (2,309,907 on 2026-11-28).

  • Names are not written alike. A Toyota RAV4 is RAV4, TOYOTA RAV4 or RAV4 HYBRID; Škoda is SKODA. So a make or model is matched anywhere in Regitra's name by default (24,590 RAV4s), and match: "exact" takes only the name written just so (9,160 RAV4). Names are compared in upper case, as Regitra writes nearly all of them.

  • Transactions are documents, not vehicles. One row per document recorded since 2021-05-01, of any of 19 kinds, sale contracts (Pirkimo-pardavimo sutartis) and invoices (Sąskaita (mokėjimą patvirtinantis dokumentas)) among them. Amounts are in each document's own currency, so an amount filter needs currency.

  • The API is slow at times. A count took from 0.2 to 17 seconds on 2026-11-28, the same one at different moments. A request unanswered after twenty seconds is given up on and said to be.


Develop

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 AB „Regitra“ or Valstybės duomenų agentūra.

License

The code is MIT. The data it reads is CC BY 4.0, AB „Regitra“'s, published by Valstybės duomenų agentūra.

Available Tools

2 tools
regitra_transaction_countA
Read-onlyIdempotent

How many vehicle transaction documents Regitra's register of vehicle owners records (sale contracts, invoices, gifts, inheritances and the other kinds listed under document_type; one per document, kept since 2021-05-01 and updated daily), counted by the open-data API itself, with any of these filters: the kind of document, the days it was issued (both counted in), the country of the transaction, its currency, how it was paid, and its amount. With by "payment_method", also a table of the count for each method in Regitra's words, and a last row with the method — for documents with none or one this server does not know, only when there are any; that is five requests, and can take a minute when the API is slow. The API counts but cannot add amounts up (it has no sum), so no tool totals what documents are worth; amount_min and amount_max count the documents within an amount instead. The data has no make, model or year of the vehicle, and never names a document, a vehicle or a person. The answer is Markdown: a heading, the count and each filter given as Label: value lines, the table where it was asked, and the source on the last line.

Inputs: by, country, currency, issued_to, +5 more.

regitra_vehicle_countA
Read-onlyIdempotent

How many vehicles Lithuania's Road Vehicle Register (Regitra) holds with a registration plate, of a make, a model, or both, counted by the open-data API itself: one row per plate in Regitra's dataset of plates by make and model (motor vehicles and their trailers, updated daily). Leave both out for every vehicle. Regitra writes names in upper case and not always alike (a Toyota RAV4 is "RAV4", "TOYOTA RAV4" or "RAV4 HYBRID"; Škoda is "SKODA"), so by default a make or model is counted wherever it appears in the name; match "exact" counts only names written just so. A name Regitra never writes is a count of 0. Answers the count only: the dataset has no year, fuel, colour, owner or place, and the API cannot list the models of a make or group by model, so ask for each model by name. Never names a vehicle or its plate. The answer is Markdown: a heading naming what was counted, the count and the make, model and match as Label: value lines (— for one left out), and the source on the last line.

Inputs: make, match, model.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools target separate datasets and query types: vehicle population counts by make/model versus transaction document counts by filters. Both are counts, but the resource and parameters are clearly differentiated, so an agent can readily choose between them.

    Naming Consistency5/5

    Both tools use the same regitra_ prefix and a noun + count suffix, giving a predictable pattern. There is no inconsistent casing or verb style.

    Tool Count3/5

    Only two tools are exposed; while each is substantial, the surface is thin and provides no complementary operations. The narrow count-only scope makes two plausible, but it sits at the borderline of the 1–2 tool range.

    Completeness3/5

    The server covers only count queries for two Regitra datasets, with no way to list valid document types, makes/models, or retrieve records. Some gaps are API limitations, but agents lack discovery operations and must guess filter values, leaving the surface notably incomplete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that enables querying Latvian official statistics from data.stat.gov.lv via PxWeb tables, allowing retrieval of table definitions and data through natural language or direct tool calls.
      64 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to official Brazilian vehicle lien (gravame) information, enabling AI agents to query it through a hosted MCP endpoint.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides read-only access to open, verified vehicle brand, model, and specification data (Italy first, later EU) through MCP tools, enabling AI agents and apps to query the dataset programmatically.
      1
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables answering questions about Ukrainian open data from the data.gov.ua CKAN portal by searching datasets, inspecting resource schemas, and running read-only SQL aggregates over a single tabular resource. Every data-backed answer is computed from retrieved data and returned with machine-readable provenance, and unsupported or unanswerable requests are refused rather than guessed.
      4
      MIT