Ask your assistant who runs a Romanian company, whether it is still active, what it does, and how its turnover, profit and headcount moved over the last fifteen years, and get the answer from the state's own records: the trade register (ONRC), every financial statement filed with the Ministry of Finance since 2008, and ANAF's VAT registry and balance sheets, read live. Look a company up by its fiscal code (CUI) or register number, search by name, activity, county or town, or start from a person's name and find every company they administer. Every tool only reads; nothing here files, pays or changes anything.
You need nothing: no account, no key, no subscription. Every source is free official open data. The register and the statements are downloaded from data.gov.ro and kept on your disk (about 4 GB once built, a first build of about half an hour), so searches answer in milliseconds and work without asking anyone's permission.
What you can ask
- "Who are the administrators of the company with CUI 14399840, and is it still active?"
- "Show me the turnover, net result and employees of J40/372/2002 for every year since 2008, with the change from year to year."
- "Which companies does Ana Popescu administer, and are any of them struck off?"
- "Find active bakeries in Cluj-Napoca whose main activity is CAEN 1071."
- "Is RO12345674 registered for VAT today, and does it use VAT on collection? Check these ten suppliers too."
- "What is the CAEN code for software development, in the old and the new classification?"
Names can be typed without diacritics: "brutaria" finds BRUTĂRIA, "Brasov" finds Brașov.
Install
Install in VS Code Install in Cursor Download for Claude Desktop
With Claude Code:
claude mcp add romania-companies -- npx -y @foreverworks/mcp-romania-companies
Claude Desktop (Settings, Developer, Edit Config) and most other clients read the same command as JSON:
{
"mcpServers": {
"romania-companies": {
"command": "npx",
"args": ["-y", "@foreverworks/mcp-romania-companies"]
}
}
}
Each runs the published package on Node 22.19 or newer. It needs no settings.
From a clone
git clone https://github.com/foreverworks/mcps.git && cd mcps
npm ci && npm run build
claude mcp add romania-companies -- node "$PWD/servers/romania-companies/dist/index.js"
In a JSON configuration, the command is node and its one argument the full path of servers/romania-companies/dist/index.js. To share one running copy between several clients over HTTP, see docs/deploying.md.
Configuration
| Variable | Required | Meaning |
|---|---|---|
ROMANIA_COMPANIES_STATE_DIR |
no | Where the built register and statements are kept (onrc.sqlite, mf.sqlite, and a work/ directory during a rebuild). Give it about 10 GB of room. Default: the server's state directory, see docs/configuration.md. |
Dates are Romania's (Europe/Bucharest), whatever the zone of the machine. The shared variables every server here reads (HTTP transport, limits) are in docs/configuration.md.
First run
- Call
health. The first call starts the download: about 1.5 GB of register files and 1.5 GB of statements, built into two files on disk.healthshows each stage and how many rows it has read. - While it builds,
companyandvat_statusalready answer from ANAF for a fiscal code: name, address, CAEN, VAT status and the newest balance sheets. Searches, people and the full history wait for the build: on a recent machine about 8 minutes for the register and 20 for the statements. - After that the server looks at data.gov.ro every six hours and rebuilds a source only when its publisher put out something new. The old files keep answering until the new ones are complete.
Tools
Every tool reads. Money is whole lei (RON) as exact text, never rounded and never a floating-point number.
| Tool | Access | What it does |
|---|---|---|
health |
read | What is loaded: the register snapshot's date and size, the years of statements, each source's licence, and a rebuild under way with its progress. |
company |
read | One company by CUI or register number: identity, address, statuses, main and authorised CAEN activities, the people who run it, branches abroad, today's VAT and e-Factura status, and every balance sheet's headline figures. |
search_companies |
read | Companies by name, main or authorised CAEN class, county, locality or legal form, alone or combined; active ones only unless asked. |
find_person |
read | The companies where a person is administrator, legal representative, liquidator or family business member, with their role. |
financials |
read | A company's statements year by year since 2008, with the exact difference and percentage change against the year before; every indicator with detail. |
vat_status |
read | ANAF's VAT registry for up to 100 fiscal codes at once: VAT, VAT on collection, split VAT, inactive, e-Factura, on any day. |
find_caen |
read | CAEN classes by words of their name or by code, in Rev. 2 (2008) and Rev. 3 (2025). |
A company argument takes the fiscal code with or without RO, or the
register number in either form ONRC writes it: the old J40/372/2002 or the
new J2002000372404.
Troubleshooting
not_ready: "the trade register snapshot is still being downloaded and
indexed". The first build is under way; the error carries its stage.
Lookups by fiscal code answer from ANAF meanwhile. Call health to follow it.
A company has no balance sheet for a year. Not every company files one:
sole traders (PFA, II, IF) do not, a company that was dormant may not, and a
year's statements reach data.gov.ro the following autumn. For a year newer
than the bulk files, company and financials ask ANAF's balance-sheet
service, which has the statements filed since then.
A search by main CAEN misses companies. The main activity is the code of
the company's newest statement, and the 2025 statements use codes of both
revisions: software, for one, is 6201 in Rev. 2 and 6210 in Rev. 3. Search
both (find_caen gives each), or search the register's list of authorised
activities with activity: "authorised".
A person search returns namesakes. The register publishes a name, a role and, for some people, the locality they live in. It publishes no unique identifier we load, so two people with one name are told apart by their locality where it is given, and by the companies.
anaf_unavailable in an answer. ANAF's web services were down or slow
for that call. The answer still holds everything from the files; ask again
later for the live part.
How it works
The register is ONRC's snapshot on data.gov.ro, published about once a
month as a dataset of its own (firme-04-11-2026), with a companion
nomenclatoare-... dataset that names the status and CAEN codes. The server
reads data.gov.ro's catalogue (its CKAN API) and takes the newest one: no
address is written into the code. Six files are read: OD_FIRME (companies),
OD_STARE_FIRMA (statuses), OD_CAEN_AUTORIZAT (authorised activities),
OD_REPREZENTANTI_LEGALI (administrators and representatives),
OD_REPREZENTANTI_IF (family business members) and
OD_SUCURSALE_ALTE_STATE_MEMBRE (branches abroad). The files write a register
number in both its forms, so every table is keyed by one normal form. The
2026-11-04 snapshot has 4.23 million companies and 3.81 million people.
The statements are the Ministry of Finance's, one dataset a year since
2008, a file per kind of filer (abridged and full balance sheets, IFRS,
non-profits, banks, insurers and others) and a list naming each column. The
files are messy in the ways a decade of publishing makes them: corrected
files appear later in the same dataset, in an _actualizat one, or in a
later year's; column lists are Windows-1250 and named nothing like their
data; codes move between years (turnover is I12 in 2015 and I13 in 2025).
So the year comes from the file's name, each file is told apart by what it
holds, the newest one for a year and kind wins, and each indicator is
matched to an English key by its Romanian label, not by its code. 15.7
million statements over 18 years.
Each source becomes one SQLite file, built in a separate process into a work directory and swapped in whole when it is complete, so a failed or interrupted build changes nothing. Measured on 2026-12-05: the register builds in about 8 minutes into a 2.1 GB file, the statements in about 17 minutes (plus 3 of download) into a 1.9 GB file, each build using about 400 MB of memory. A rebuild needs about 5 GB of room beside the files it replaces. Name searches use SQLite's full-text index, so a search over 4 million names takes milliseconds.
Live calls go to ANAF only when a tool needs them: the VAT registry
(PlatitorTvaRest v9, batched by 100 and paced at one request a second, as
ANAF asks) and the balance-sheet service (bilant), for years the bulk files
do not have yet. Their numbers are read as text, so a value is never rounded
on the way through.
Use it as a library
The same code runs inside your own program, with no MCP server in between. It
is for a service that wants company data in its own code, or for one process
that serves several tenants. Import it from the library entry point:
import { lookupVat, makeCompaniesClient } from "@foreverworks/mcp-romania-companies/library";
const companies = makeCompaniesClient({ stateDir: "/var/lib/companies" });
companies.start(); // looks at data.gov.ro now and every six hours
const company = await companies.company("RO14399840");
const found = companies.searchCompanies({ name: "dante international", county: "Bucuresti" });
const vat = await companies.vatStatus(["14399840"], { date: "2026-12-01" });
A client takes everything as options and reads nothing from the environment.
Only stateDir is required. now is the clock, fetch is used for
data.gov.ro and ANAF alike (give it a proxy, or a stub in your tests), refresh: false looks at data.gov.ro once instead of every six hours, and buildEnv is
the environment of the process that builds the SQLite files (empty by
default). Nothing is global, so two clients with different state directories
live side by side in one process, each with its own database and its own
pacing of ANAF.
The client answers what the tools answer, with the same fields, and fails the
way the server does: a thrown object whose kind you read with asAppError
(input, not_found, not_ready, api), and whose advice remedyFor gives.
Nothing starts by itself: start begins the schedule, refreshNow looks
once and waits for a rebuild to finish, and stop ends the schedule and
closes the database. Until the first build is done, searches fail with
not_ready, and company and vatStatus still answer from ANAF.
searchCompanies, findPerson, findCaen and health answer at once;
company, financials and vatStatus return a promise, since they may call
ANAF.
ANAF's VAT registry also stands alone. lookupVat(cuis, day) needs no state
directory and no open data, and returns the records, the codes ANAF does not
know, the day asked and fetchedAt, the time ANAF's answer arrived in
milliseconds, from your now. That is the time to store beside the records if
you cache them. To keep ANAF's pace of one request a second across many
lookups, build one with makeVatLookup(options) and call it again.
A program that bundles its code cannot start the build process from this
package's files: pass its own runBuild instead.
Limitations
- No shareholders and no beneficial owners. ONRC sells those as paid extracts and the beneficial owners register is not open data. This server shows the people who run a company, not who owns it.
- No court cases, insolvency filings or Official Gazette notices. Those live on portal.just.ro and in the Monitorul Oficial, which publish no open data. A company's register status does say when it is in insolvency, dissolution or liquidation.
- People are shown with their name, role and, where the register gives it, locality. ONRC also publishes birth dates and places of birth; this server deliberately does not load them.
- The register is a monthly snapshot. A company registered or struck off since then appears in ANAF's live answer but not in searches until the next snapshot. Statements reach data.gov.ro once a year, the next autumn.
- Indicators are the published summary, about 20 lines of a statement
(assets, debts, equity, turnover, revenue, expenses, profit or loss,
employees), not the full balance sheet and profit and loss account. Banks,
insurers and non-profits have their own lines, shown with
detail; only the lines they share with companies get English keys. - Three old files lose a column. The 2008 to 2010 non-profit files have unquoted activity names; where a name holds commas in a way that cannot be undone, one indicator of that row (about 1,000 cells in all) is left blank.
- Attribution. Register data © Oficiul Național al Registrului
Comerțului, under Creative Commons Attribution 4.0. Financial statements ©
Ministerul Finanțelor, under the Open Government Licence Romania 1.0 for the
older years and Creative Commons Attribution 4.0 for the newer ones
(
healthlists each). This server is not affiliated with ONRC, the Ministry of Finance or ANAF.
Other servers for Romanian companies
Searched 2026-12-05. Neither ONRC, the Ministry of Finance nor ANAF publishes an MCP server. Hosted ones exist, each a third party's service with its own account, limits or pricing, and closed source:
- Companero (companero.ro/mcp): company data as a hosted MCP endpoint.
- INCORPO MCP Romania (incorpo.ro): a hosted MCP for Romanian company checks.
- Firme Romanesti (firmeromanesti.com) and apifirme.dev: hosted company data services with MCP access.
- RO business data MCP, listed on Apify and Glama: a hosted server.
This one exists for what none of them does: it runs on your own machine, from the state's own open files and ANAF's public services, with no account and no limit but ANAF's own pacing, and keeps every balance sheet since 2008 on your disk with exact year-over-year change.