rto-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rto-mcp Decode MH01AB1234 and tell me which RTO office it's registered to"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rto-mcp
A Model Context Protocol (MCP) server for Indian vehicle registration (RTO) lookups. It lets Claude Code, Claude Desktop, Cline, and any other MCP client decode a vehicle registration number to its RTO office, state, series and vehicle class — or list RTO offices in a state.
A vehicle registration number in India (the number on your RC / registration certificate) follows the format:
<STATE><RTO-DISTRICT-CODE><SERIES><SERIAL>
e.g. MH01AB1234STATE — 2-letter state/UT code (MH, DL, KA, TN, …)
RTO-DISTRICT-CODE — 2-digit district code within the state (01–47)
SERIES — 1–2 letters identifying the registration series
SERIAL — up to 4 digits, the unique vehicle number
What it does
Three tools:
rto_lookup— decodes a vehicle registration number into its RTO office (area), state, RTO district code, series, serial and vehicle class.rto_by_state— lists all RTO offices in a state (by state code or name) with their district codes and areas.vehicle_info— returns estimated vehicle details (first registration year, fuel type, category, make/model) for a registration number.
Related MCP server: CarsXE
Quick start
Requires Node.js 18+ (uses the built-in global fetch). No API key is needed.
# from the monorepo root
npm install # installs @modelcontextprotocol/sdk
npm run test --workspace rto-mcp # run the testsRun the server directly (stdio transport):
node server.jsMCP client configuration
Add it to your MCP client's configuration as a stdio server:
{
"mcpServers": {
"rto": {
"command": "node",
"args": ["/absolute/path/to/india-mcp/rto-mcp/server.js"]
}
}
}Or, from inside the package folder:
{
"mcpServers": {
"rto": {
"command": "node",
"args": ["server.js"]
}
}
}Tool examples
rto_lookup — arguments:
argument | type | required | description |
| string | yes | Vehicle registration number, e.g. |
Example call:
{ "name": "rto_lookup", "arguments": { "registration": "MH01AB1234" } }Example response (trimmed):
{
"ok": true,
"registration": "MH01AB1234",
"stateCode": "MH",
"state": "Maharashtra",
"rtoCode": "01",
"area": "Mumbai (Central)",
"series": "AB",
"serial": "1234",
"vehicleClass": "Passenger Vehicle"
}An invalid registration (wrong length or pattern) is rejected locally:
{ "name": "rto_lookup", "arguments": { "registration": "MH01AB123" } }{
"ok": false,
"error": "registration must match STATE+RTO+SERIES+SERIAL, e.g. MH01AB1234"
}rto_by_state — arguments:
argument | type | required | description |
| string | yes | State code ( |
Example call:
{ "name": "rto_by_state", "arguments": { "state": "MH" } }Example response (trimmed):
{
"ok": true,
"state": "Maharashtra",
"stateCode": "MH",
"offices": [
{ "code": "01", "area": "Mumbai (Central)" },
{ "code": "02", "area": "Mumbai (Suburban)" },
{ "code": "05", "area": "Pune" }
]
}vehicle_info — arguments:
argument | type | required | description |
| string | yes | Vehicle registration number, e.g. |
Example call:
{ "name": "vehicle_info", "arguments": { "registration": "MH01AB1234" } }Example response (trimmed):
{
"ok": true,
"fuel": "Petrol",
"category": "Passenger Vehicle",
"makeModel": "Maruti Suzuki Swift",
"engineCC": 1197,
"seatingCapacity": 5,
"firstRegistrationYear": 2019,
"chassis": "MA3ERLE1S00123456",
"registrationDate": "2019-05-14"
}How validation works
The registration number is normalized (trimmed, upper-cased, separators removed) and validated against the format ^[A-Z]{2}[0-9]{2}[A-Z]{1,2}[0-9]{1,4}$. The first two characters are the state code, the next two are the RTO district code, the following 1–2 characters are the series, and the remaining digits are the serial. The state and district codes are matched against the bundled RTO data to return the office area and vehicle class.
Data source
There is no external API and no network call. All data is static and bundled with the package (lib/rto.js):
RTO district codes — derived from the state transport department's jurisdiction conventions (the 2-digit district codes published under the Motor Vehicle Act for Maharashtra
MH, DelhiDL, KarnatakaKAand Tamil NaduTN).Vehicle records — synthetic sample data intended for demonstration and testing only. When a registration has no sample record,
vehicle_inforeturns an estimate derived from the registration prefix.
Scripts
script | description |
| run the server ( |
| run the server ( |
| run the tests ( |
License
Available Tools
3 toolsrto_by_stateA
List all RTO offices in an Indian state (by state code like MH/DL/KA/TN or by state name) with their district codes and areas.
Inputs: state (required).
rto_lookupB
Decode an Indian vehicle registration number (e.g. MH01AB1234) into its RTO office, state, RTO district code, series, serial and vehicle class.
Inputs: registration (required).
vehicle_infoA
Return estimated vehicle details (first registration year, fuel type, category, make/model) for a registration number. Uses bundled sample data; returns an estimate when no sample exists.
Inputs: registration (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
rto_lookup and vehicle_info both take a registration number and return information, but their outputs are clearly differentiated (RTO office/state/class vs. estimated year/fuel/make-model). rto_by_state is clearly a separate listing operation. There is minor risk of an agent picking vehicle_info when it only needs the RTO office or vice versa, especially since rto_lookup also returns vehicle class.
All names use snake_case with noun-based phrasing, which is readable and predictable. Two tools share an rto_ prefix while vehicle_info breaks that prefix pattern, a minor inconsistency but not confusing.
Three tools is a tight, well-scoped surface for a narrow domain (Indian RTO/vehicle lookup). Each tool earns its place; the only concern is that the surface is thin, but it matches the focused purpose.
Core coverage exists: decode a plate, list RTOs by state, and get vehicle details. However, there is no reverse lookup (find RTO by district code or office name), no way to list supported states, and vehicle_info relies on bundled sample data with fallback estimates, leaving notable gaps that could cause agent dead ends.
Maintenance
Related MCP Connectors
Unofficial CarsXE MCP — wraps the CarsXE Vehicle Data API (carsxe.com)
Look up a vehicle by license plate against official sources (make/model, year, status, restrictions)
Vehicle data for AI: VIN decoder, automotive specs, stolen checks, valuation and way more.
Identity-first automotive intelligence for vehicle resolution, specs, safety and efficiency.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceScrapes and serves India's national vehicle registration database (VAHAN Dashboard), providing detailed insights into registrations, manufacturers, fuel types, and RTO-level metrics.1-
- AlicenseAqualityBmaintenanceDecode VINs, look up specs, history, recalls, market value, and OBD codes. Recognize license plates and VINs from images. Access comprehensive vehicle data by year, make, and model to power automotive workflows.121MIT
- AlicenseNot gradedqualityDmaintenanceProvides official vehicle plate options consultation (read-only) via prepaid credits, using MCP over HTTP.MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying vehicle registration information (BIN RENAVAM) from the official ECRVSP source. Read-only, prepaid per use, works with any MCP client.MIT