Mcp Krs

io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v1.2.2更新于 Oct 24, 2026

MCP server for the Polish KRS company registry via the official Ministry of Justice API.

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

让助手通过波兰司法部 API 查询波兰 KRS 公司登记数据,包括董事会构成和代表规则。

可以做什么
通过波兰司法部 API 查询官方的波兰国家法院登记册(KRS)。工具包括 get_entity(当前摘录)、get_entity_full(含登记历史的完整摘录)和 get_board(代表规则、董事会构成及商业代理人)。响应包含结构化引用字段,如 KRS 编号、名称、NIP、REGON、法律形式、状态和登记法院。
适用场景
适用于法律、合同和尽职调查场景,例如助手需要核查波兰公司的登记信息,或判断某人能否代表某公司签署合同。也适合核实交易对手的法律形式、地址、股本和状态等信息。
运行要求
作为本地 Node.js 进程运行(Node 18 或更高版本),通过 npx 从 npm 包 @matematicsolutions/mcp-krs 以 stdio 启动。未声明需要账户、API 密钥或环境变量。需要访问司法部 API 的网络连接。
安装前请注意
该服务器查询实时公共登记册,会将所请求的 KRS 编号发送至司法部 API。董事会成员个人数据由 API 以掩码形式返回,服务器原样传递而不解除掩码。请求被限制为约每秒两次,频繁使用可能较慢。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Krs,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-krs

Installation (one command)

Published on npm + MCP Registry (io.github.matematicsolutions/mcp-krs). Run without cloning:

bash
npx -y @matematicsolutions/mcp-krs

MCP client configuration (stdio):

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

(Building from source - below.)

[MCP] [License: MIT] [Node]

MCP server for the Krajowy Rejestr Sadowy / KRS (National Court Register) via the official, free Ministerstwo Sprawiedliwosci (Ministry of Justice) API (api-krs.ms.gov.pl/api/krs).

Why

A law firm asks about a counterparty -> Patron returns full register data: name, legal form, NIP, REGON, address, share capital, board composition, representation rules, commercial proxies (prokurenci), primary PKD code, status (active / liquidation / bankruptcy). Plus a URL to the Ministry of Justice search tool.

Critical for contract work: the question "can this person sign this contract for company X on their own" reduces to two moves - krs__get_board with the KRS number, then comparing the representation rules against the signing party.

Tools

  • get_entity(krs, rejestr?) - current extract (full entity data).
  • get_entity_full(krs, rejestr?) - full extract (with entry history).
  • get_board(krs, rejestr?) - short form: representation only (rules + composition) + commercial proxies (prokurenci).

Parameters:

  • krs - 1-10 digits, leading zeros padded automatically (28860 -> 0000028860).
  • rejestr - P (entrepreneurs register, default) or S (associations register).

Every response contains structuredContent.citations with fields: title, url (Ministry of Justice search), krs, nazwa, nip, regon, forma_prawna, status, miejscowosc, sad_rejestrowy, rejestr.

Patron reads the field automatically and renders it in the UI panel as a "Krajowy Rejestr Sadowy (KRS - MS)" section.

Stack

  • Node 18+ (built-in fetch)
  • @modelcontextprotocol/sdk
  • Stdio transport
  • Throttle 500 ms (2 req/s) - the Ministry of Justice API is tolerant, but be polite

Build + run

bash
npm installnpm run buildnode dist/index.js

Wiring into Patron

In patron/backend/mcp-servers.json:

json
{  "name": "krs",  "transport": "stdio",  "command": "node",  "args": ["C:/Users/<YOUR-USER>/mcp-krs/dist/index.js"],  "enabled": true}

Smoke test

bash
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"s","version":"0"}}}{"jsonrpc":"2.0","method":"notifications/initialized"}{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_board","arguments":{"krs":"28860"}}}' \  | node dist/index.js

Should return ORLEN SA, representation rules "two board members acting jointly", board composition, commercial proxies (prokurenci) + URL.

GDPR notes

The Ministry of Justice API returns masked personal data of board members in its responses (asterisks in surnames after the 2023 amendment). Patron passes this through raw and does not unmask it. For full surnames, the law-firm user opens the Ministry of Justice link in a browser after logging in.

Lineage

API contract from the official documentation MS api-krs.ms.gov.pl. TypeScript implementation from scratch.

License

MIT.

Part of MateMatic

This connector queries its source live. It is one of the Polish and EU source connectors bundled in PATRON and works with any MCP client.

mcp-saos, mcp-nsa, mcp-isap, mcp-krs and mcp-eu-sparql share one structuredContent.citations contract: each tool returns an array of {title, url, snippet?, ...metadata} that legal agents can render directly in their citation panel.

See matematicsolutions/.github for the full org profile.

来源:README.md,提交 ac5ee51

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.2.2最新Oct 13, 2026
  2. v1.1.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分