ONRC trade register

com.foreverworks由 foreverworks.com 發布v0.1.2更新於 Nov 7, 2026

跟蹤您在羅馬尼亞貿易登記處的申報,包括相關檔案、費用通知和發票。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Follow your filings at Romania's trade register, with their documents, fee notes and invoices.

發布方自己的服務:Register.gy

已驗證STDIO僅桌面商業與電商

概覽

ONRC trade register 的本機 MCP 服務,由 foreverworks.com 發布;無需登入;STDIO;9 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

發布者
foreverworks.com

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ONRC trade register,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[ONRC trade register icon] ONRC trade register MCP server

Follow your filings at Romania's trade register from your AI assistant, on myportal.onrc.ro: their status in the office's own words, the documents in a filing's file, the fee notes, and the invoices with what is still outstanding. It only reads: it files, pays and changes nothing at ONRC, and has no money tools. The one thing it writes is the session it holds for you.

You need a myportal.onrc.ro account you can sign in to in a browser. There is no API key, because the portal has no public API: you hand the server your own session once, from the browser where you are signed in, and again whenever the portal ends it. You type nothing into the assistant but an address.

What you can ask

  • "Which of my ONRC filings are still being worked on?"
  • "What is the status of the mențiune I filed for Client SRL in September, and when will its documents be released?"
  • "Which documents are in the file of my latest filing?"
  • "Do I have any ONRC fee notes I have not paid yet?"
  • "How much is outstanding on my ONRC invoices this year?"

Install

[Install in VS Code] [Install in Cursor] [Download for Claude Desktop]

With Claude Code:

bash
claude mcp add onrc -- npx -y @foreverworks/mcp-onrc

Claude Desktop (Settings, Developer, Edit Config) and most other clients read the same command as JSON:

json
{  "mcpServers": {    "onrc": {      "command": "npx",      "args": ["-y", "@foreverworks/mcp-onrc"]    }  }}

Each runs the published package on Node 22.19 or newer. It needs no settings.

From a clone

bash
git clone https://github.com/foreverworks/mcps.git && cd mcpsnpm ci && npm run buildclaude mcp add onrc -- node "$PWD/servers/onrc/dist/index.js"

In a JSON configuration, the command is node and its one argument the full path of servers/onrc/dist/index.js. To share one running copy between several clients over HTTP, see docs/deploying.md.

Over HTTP, one running copy holds one session for every client, and ONRC_KEEPALIVE_MIN keeps it from lapsing between tasks.

Configuration

Every variable is optional. Only a test realm or a mirror needs the last five; their defaults are the public portal's.

VariableRequiredMeaning
ONRC_STATE_DIRnoWhere session.json and a begun login (login.json) live, both 0600; the default is in docs/configuration.md. It holds a live session: keep it readable by the server's user only.
ONRC_KEEPALIVE_MINnoRefresh the session every N minutes while one is stored, so an idle portal session does not lapse between tasks. 0, the default, is off.
ONRC_LOGIN_SCRIPTnoA command your deployment provides that runs a whole login (begins it, brings the user the link, completes it). When set, every needs_login remedy names it first, and health reports it.
ONRC_ISSUERnoThe Keycloak realm. Default https://sso.onrc.ro/realms/onrc.
ONRC_CLIENT_IDnoThe portal's public client. Default frontoffice-app.
ONRC_PORTALnoThe portal. Default https://myportal.onrc.ro.
ONRC_REDIRECT_URInoWhere the sign-in server sends the browser back; it must be one the client registers. Default <ONRC_PORTAL>/static-pages/silent-check-sso.html.
ONRC_SCOPESnoSpace-separated. Default openid.

There is no credential to configure: the server never sees the account's password or second factor. The variables every server shares are in docs/configuration.md.

First run

  1. Sign in to myportal.onrc.ro in your browser, as you always do.
  2. Ask your assistant for your filings. With no session stored, the tool answers needs_login, and the assistant calls begin_login.
  3. Open its link in that same browser. A client that shows links itself (MCP URL elicitation: over stdio, or over HTTP with a client of protocol 2026-07-28, as Claude Code is) offers you the page. You type nothing: the portal's sign-in server recognises your browser and sends it on to a blank page. The link stays open 15 minutes; beginning again replaces it.
  4. Copy that blank page's whole address (it holds code= and state=) and paste it into the conversation at once: its code dies within a minute. complete_login stores the session and answers who is signed in and when the session expires.

Every tool then works until the portal ends the session (idle too long, or signed out elsewhere); the next tool answers needs_login, and you repeat these steps. session_status says where things stand, and with probe it proves the session works.

Tools

read changes nothing; write changes only what this server holds (a begun login or the session), never anything at ONRC.

ToolAccessWhat it does
healthreadWhether a session is stored (none, present or expired), and the redirect address. No network.
session_statusreadWho is signed in, when the access and refresh tokens expire, and what to do if nobody is; probe refreshes once to prove the session works. Never shows a token.
begin_loginwriteThe link you open in the browser where you are signed in, and its 15-minute deadline.
complete_loginwriteTakes the address the browser landed on, exchanges its code and stores the session.
logoutwriteForgets the session here and ends it at the sign-in server; your browser's own sign-in stays.
list_requestsread"Cererile mele": the filings, newest first, with the portal and trade register numbers, the status, the company, and whether a fee note or invoice exists.
get_requestreadOne filing by its id (a UUID from list_requests): its status in the office's words, the date the registrar decides by and the date the documents are released, and the documents in its file.
list_calculation_notesread"Notele mele de calcul": the fee notes, with amount, status and the date to pay by.
list_invoicesread"Facturile mele": the invoices, with total, paid and outstanding.

The three lists take a window, from and to (calendar dates in Bucharest, YYYY-MM-DD; by default the last 365 days up to today), and a page: page from 0, size from 1 to 100 (default 20).

Troubleshooting

needs_login. The server holds no session, or the portal no longer honours it (reason: never_connected, expired, revoked or refused). Sign in again as in First run; if your browser is not signed in to the portal, sign in there first.

needs_login from complete_login, with the sign-in server's own words. The code in the address was spent or had died (it lives about a minute). Call begin_login again and paste the new address at once.

input: "the state in that address is not the one begin_login issued". The address comes from an older link; open the newest one begin_login gave. "that login was begun more than 15 minutes ago" and "no login is in progress" both mean: call begin_login again.

input: "a filing's id is a UUID", or not_found. get_request takes the id that list_requests gives, not the filing's number.

forbidden. A filing is visible only to the account that made it.

config: the session file cannot be read. Delete the file the message names, then sign in again.

rate_limited. The portal is throttling this session; wait a minute and try again.

api. Status 0: the portal or its sign-in server was unreachable. Another status: the portal failed. Try again later, and if it persists, read the banner on the portal's home page.

drift. The portal's API changed under this server: an answer lacks a field the server depends on. It needs updating; please report the message.

How it works

The session is yours, held by the server. The portal signs in through Keycloak, whose refresh token lasts as long as the SSO session, so a server can hold the session and refresh it. It cannot sign in: that takes the user's password, second factor and a captcha, none of which belong in a server. So the one manual step is the standard authorization-code flow with PKCE, through the user's browser. begin_login keeps the PKCE pair and a state in login.json; complete_login checks the state before the code is spent, exchanges the code, and writes session.json. The caller sees who signed in and two expiry dates, never a token.

The blank page. The redirect must be an address the portal's client registers. By default it is the portal's own static-pages/silent-check-sso.html, keycloak-js's page for silent SSO checks, which does nothing when opened as a tab, so the code stays unspent in the address bar (response_mode=query) until the server exchanges it. A deployment that can watch the browser for that address can run the three steps as one command, named in ONRC_LOGIN_SCRIPT; the server never sees the browser, and the command never sees a token.

Refresh and expiry. A read refreshes the token when it is about to expire (once for every caller waiting, under a lock), and a 401 earns one refresh and one retry. When Keycloak ends the session, a refresh answers invalid_grant, the file is marked expired, and every tool answers needs_login. refreshTokenExpiresAt in session_status shows how long Keycloak keeps an idle session, which is how to choose ONRC_KEEPALIVE_MIN.

The API is the portal's own: every call is a read under https://myportal.onrc.ro/api/v1/portal-core/interf that the portal's screens make too. Each entry in a filing's file repeats the signed-in person, identity document and personal numeric code included; no answer here carries any of it, and a test checks that. The fee notes' and invoices' envelopes were read live, but their items were modelled from the portal's code, so their fields are all optional and the first live answer is the check (scripts/smoke.ts).

Dates are Bucharest's, whatever the host's zone: the server sends the first moment of from and the last of to there as UTC instants, as the portal's date pickers do; a DST Sunday is a 23- or 25-hour day.

What comes back is checked. Every answer is parsed against src/domain/schema.ts; a field the server depends on that goes missing fails as drift, not as an empty value. Amounts arrive as bare JSON numbers and leave as exact decimal text ("100.50"), outstanding computed in decimal arithmetic; a number that may already have lost digits is drift, not an approximation. A filing's id must be a UUID, so a filing's number pasted in its place fails before anything is sent.

scripts/smoke.ts drives the built server read-only. Without a session it checks that every read answers needs_login with a usable remedy; it never begins or completes a login itself.

Limitations

  • Nothing files anything. A filing (a mențiune, a capital increase) is a legal act with a fee; when it comes, it will be a money tool your client confirms with you, and the application PDF is signed with your qualified certificate, which stays with you.
  • Some of the portal is not reached yet: the capital increase wizard (social-capital), mentions, name-reservation, the certificat constatator, a document's bytes (portal-core-service-download-server), and an invoice's PDF (a Jasper report by invoice id).
  • get_request lists the first 50 documents in a filing's file.
  • One account per state directory. A second account is a second server with its own ONRC_STATE_DIR.

Other servers for ONRC

Searched 2026-10-15. ONRC publishes none, and the portal has no public API (the register's company data is offered programmatically only under contract). No community server reaches an account on the portal; searches of npm, PyPI, GitHub, the MCP Registry and the web found only tools over public company data (company search by name or CUI, directors, financials):

  • paianjenul.ro's hosted connector.
  • com.adrianhomelab/leadgen-onrc in the MCP Registry.
  • Libraries such as onrc-open-data, for the register's open-data export.

This one covers what none of them touch: an account's own filings and their status, a filing's documents, the fee notes and the outstanding invoices. It never handles your password or second factor, the caller never sees a token, and over HTTP one session serves every client. It does not search public company data; the servers above do.

來源:servers/onrc/README.md,提交 7b93f2f

工具

9

begin_login

Begin login

Start signing in: answers with a URL the USER opens in the browser where they are already signed in to myportal.onrc.ro (Keycloak answers from that sign-in; no password or code is typed), and the redirect it ends on. Pass that address to complete_login. Open for 15 minutes; beginning again replaces it. Call this whenever a tool answers needs_login.

無需輸入參數。

complete_login

Complete login

Finish a begun login from the address the browser landed on (it carries code=... and state=...). Exchanges the code and stores the session in the service's own state; answers with who signed in and when the session expires. The code dies within a minute of being issued, so pass it at once.

輸入參數redirect_url必填

get_request

Get filing

One filing: its status in the office's words, the two terms (resolutionDue: by when the registrar decides; releaseDue: when the documents are released), whether files are ready to download, and the documents in its file (the signed application, resolutions, certificates once issued).

輸入參數id必填

health

Health

Whether this server is configured and holds a portal session (none, present, expired). No network. Run it before concluding the server is broken.

無需輸入參數。

list_calculation_notes

List calculation notes

"Notele mele de calcul": the fee notes the office issued for the filings, with amount, status and the date to pay by. A filing with no fee has none.

輸入參數tofrompagesize

list_invoices

List invoices

"Facturile mele": the invoices the office issued for paid fees, with total, what was paid and what is outstanding.

輸入參數tofrompagesize

list_requests

List filings

"Cererile mele": the filings made from this portal account (a mențiune, an înmatriculare, a certificat constatator), newest first, with the portal number, the trade register number, the status (WORKING: still at the office), the company and whether a calculation note or an invoice exists. The id is what get_request takes.

輸入參數tofrompagesize

logout

Logout

Forget the stored session and tell Keycloak it is over. The user's own browser sign-in is not touched. Reads will answer needs_login until the next login.

無需輸入參數。

session_status

Session status

Is a portal account signed in through this server: who, when the access and refresh tokens expire, and what to do if not. With probe, refreshes once to prove the session is still honoured by Keycloak. Never shows a token.

輸入參數probe

版本歷史

1
  1. v0.1.2最新Nov 3, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Register 整合