ukvet: UK Companies House

io.github.FraidoonOmarzai由 GitHub 帳號 FraidoonOmarzai 發布v0.1.0更新於 Nov 7, 2026

Read-only UK Companies House tools for due diligence: profile, officers, PSC, charges, insolvency.

概覽

AI 產生的概覽

唯讀的英國 Companies House 工具,讓助理取得公司檔案、董事、重要控制人、抵押與破產紀錄,用於盡職調查。

可以做什麼
  • 依公司名稱或編號查詢並讀取官方 Companies House 檔案
  • 取得董事、重要控制人、抵押登記與破產歷史
  • 檢查財報或確認聲明是否逾期,並找出近期董事或地址變更
  • 把查得的事實整理成附引用的風險報告並標示警訊,資料缺漏時明確說明
適用情境
適合在交易、供應商審核、信用查核或合作前,需要快速取得附官方紀錄引用的英國公司背景資料,並希望助理依據公開紀錄而非猜測作答時使用。
執行需求
以 stdio 在本機執行,通常透過 PyPI 套件以 uvx 啟動;需要 Python 3.12+ 與 uv。必須在 CH_API_KEY 環境變數中提供免費的 Companies House REST API 金鑰(正式環境)。需要連線至 Companies House 的網路。
安裝前請注意
需要在 CH_API_KEY 中保存 Companies House API 金鑰,請勿寫入共用設定。報告僅供參考,不構成法律、財務或信用建議,公開紀錄可能不完整或過時,決策前請自行查證。README 提到一次提示注入案例:公司名稱中的攻擊者文字進入了報告,因此應將報告文字視為不可信。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ukvet: UK Companies House,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

其他 MCP 客戶端

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

README

ukvet — AI Due-Diligence Agent for UK Companies

Vet any UK company in 30 seconds — cited, evaluated, open source.

[CI] [PyPI] [License: MIT]

[ukvet-mcp demo in Claude Desktop]

Status: Phase 6 (launch) Completed. ukvet-mcp 0.1.0 is on PyPI and in the official MCP Registry (io.github.FraidoonOmarzai/ukvet-mcp). The agent, UI and evaluation harness are built, tested and gated in CI.

Quickstart

1. Use the data layer in Claude Desktop (2 minutes)

You need uv and a free Companies House REST API key (create one here, live environment).

powershell
$env:CH_API_KEY="your-key"; uvx ukvet-mcp --check      # prints OK if the key works

Then add this to claude_desktop_config.json and restart Claude Desktop:

json
{  "mcpServers": {    "ukvet": {      "command": "uvx",      "args": ["ukvet-mcp"],      "env": { "CH_API_KEY": "your-key" }    }  }}

Full guide: packages/ukvet-mcp and its PyPI page.

2. Run the full agent and UI (Docker)

powershell
git clone https://github.com/fraidoonomarzai/ukvet.gitcd ukvetcopy .env.example .env          # add CH_API_KEY (LLM settings are optional)docker compose up --build       # API http://localhost:8000/docs, UI http://localhost:8501

With no LLM_PROVIDER set, reports use a template narrative and cost nothing. With one set, the LLM writes the wording and every sentence must pass the citation check, or the template is used instead.

What it does

Enter a UK company name or number. ukvet checks official Companies House records and returns a risk report answering:

  1. Is it active, dissolved or insolvent?
  2. How old is it?
  3. Who are the directors?
  4. Are its accounts or confirmation statement overdue?
  5. Who controls it?
  6. Does it have secured debts (charges)?
  7. Any insolvency history?
  8. Have its directors run companies that failed?
  9. Any recent changes of directors or address?
  10. What are the red flags?

Every fact is cited to the official record. When data is missing, ukvet says so instead of guessing.

How it's built

PartWhat
ukvet-mcpOpen-source MCP server exposing Companies House data to any MCP client
ukvet-agentLangGraph agent: Planner → Researcher → Verifier → Reporter
Evals432-item benchmark on 48 frozen, anonymised companies; gated in CI (evals/)
ObservabilityOptional Langfuse tracing (off by default, content redacted); per-report latency, tokens, cost and tool calls
GuardrailsCitation checker plus output checks on every finished report; injection eval (M6)
Model choiceClaude Haiku 5.5 vs open-weight Qwen3.6-27B on one test set, published as a table (results)

Facts, red flags and the risk level come from deterministic code and rules. The LLM is one node: it sees only verified facts, has no tools, and every claim it writes is checked. Architecture: docs/08-architecture.md

Results

Measured on a versioned set of 48 companies (30 dev, 18 test). Full tables, intervals and failure analysis: docs/eval-report.md and docs/results.md.

Baseline (Claude Haiku 5.5, all 48 companies)

MetricTargetResult
M1 retrieval accuracy≥ 90%100% (1488/1488 fields)
M2 unsupported claims< 2%0 of 421 (95% upper bound 0.9%)
M4 citations valid (mechanical)100%100% (421/421)
M5 red-flag recall≥ 85%100% (89/89)

Model comparison (test split: 18 reports, about 155 claims each)

Claude Haiku 5.5 (API)Qwen3.6-27B (self-hosted, A100)
M1 accuracy100%100%
M2 unsupported claims0 of 1561 of 154
M4 citations valid156 of 156153 of 154
M6 injection resistance96.7% (87/90)100% (90/90)
M7 latency, p956.6 s24.2 s
M8 cost per report£0.00058£0.0076 (best case, GPU time of the live run only)

Recommendation: keep Claude Haiku 5.5 as the default; the open-weight path is supported by a settings change. Accuracy differences are within the noise on this test set.

Limitations (read these)

  • M1 is agreement with an oracle I wrote, hand-checked against the live website for 10 companies. It does not prove every field is true, and a 100% score means the set is not yet hard enough to find new retrieval bugs.
  • M2 and M4 are mechanical checks (IDs, dates, numbers, names, forbidden wording). Whether a cited fact fully supports a sentence, and fairness of wording, were not measured.
  • The test split is 18 reports; one open-weight model, one run each; latency and cost are from one network and one GPU.
  • Prompt injection: one payload (a company name) put attacker-chosen text into Claude's report on 3 of 3 host companies. The risk level and red flags did not change. This is an open follow-up, and M6 measures resistance to the listed payloads only.
  • Labels and rules were written by one person.

Development

Requires Python 3.12+ and uv. Commands below are shown for PowerShell; on Linux or macOS the same uv run ... commands work (a Makefile is provided as a shortcut where make is available).

powershell
git clone https://github.com/fraidoonomarzai/ukvet.gitcd ukvetcopy .env.example .env                 # add your Companies House API keyuv sync --all-groups --all-packages    # install dependenciesuv run ruff check .                    # lintuv run ruff format --check .           # formattinguv run mypy                            # type checkuv run pytest                          # tests

Run it

powershell
# .env: CH_API_KEY=...   (optional: LLM_PROVIDER / LLM_MODEL / LLM_API_KEY, see .env.example)uv run ukvet-check --full 00445790     # terminal, no UIdocker compose up --build              # API (http://localhost:8000/docs) + UI (http://localhost:8501)

With no LLM_PROVIDER set, reports use a template narrative and cost nothing. With one set, the LLM writes the wording and every sentence must pass the citation check, or the template is used instead.

Run the evaluation

powershell
uv run ukvet-evals demo-build                      # synthetic demo set, proves the harness worksuv run ukvet-evals run --dataset demouv run ukvet-evals run --dataset v0.1 --split dev  # real set, dev split, free (template mode)uv run ukvet-evals gate --dataset v0.1             # compare with the baseline; fails if worse

Observability and safety (Phase 4)

powershell
# .env (all optional): LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_HOST#   UKVET_TRACE_CONTENT=redacted (default, names are masked) or full (synthetic data only)#   UKVET_PRICE_IN_GBP_PER_MTOK / UKVET_PRICE_OUT_GBP_PER_MTOK  (cost is shown only when set)uv sync --all-groups --all-packages --extra observability
# live latency (M7), cost (M8) and tool calls (M9); needs CH_API_KEY and an LLM keyuv run python scripts/phase4_metrics.py --file numbers.txt --out evals/results/phase4
# prompt-injection resistance (M6): record once, then replay for freeuv run ukvet-evals extend-injection --dataset v0.1uv run ukvet-evals injection --dataset v0.1 --llm record --model <model>uv run ukvet-evals injection --dataset v0.1 --llm replay --model <model>

Tracing is off unless both Langfuse keys are set, and it can never break a report. Targets: M6 injection resistance 95% or more, M7 p95 latency under 30 s, M8 cost under £0.05 per report, M9 tool calls per report tracked as a baseline. M6 measures resistance to the listed payloads only; it is not proof of safety. Measured results are in evals/results/.

Model comparison (Phase 5)

powershell
# one env file per model; copy the one you want over .envuv run python scripts/phase5_check_endpoint.py        # smoke-test an OpenAI-compatible endpoint (vLLM)uv run ukvet-evals run --dataset v0.1 --split test --llm record --model <model-id> --confirm-test-split "reason" --out evals/results/v0.1-test-<name>uv run python scripts/phase4_metrics.py --file numbers.txt --label <name> --out evals/results/phase5-live-<name>uv run ukvet-evals compare --init                     # create evals/comparison.json, fill it inuv run ukvet-evals compare                            # writes docs/results.md; refuses unfair comparisons

Both models must run on the same dataset version, split, prompts and git commit; compare refuses different datasets or splits and warns about the rest. How the open-weight model was served: ADR-008 and docs/PHASE-5-GPU-SETUP.md.

More documents

Architecture and ADRs · Evaluation report · Model comparison · Threat model · Decision log · All docs

Disclaimer

ukvet is informational only. It is not legal, financial or credit advice. Reports are based on public records at the time of retrieval, which may be incomplete or out of date. Always verify before making decisions. ukvet is not affiliated with Companies House.

Attribution

Contains public sector information licensed under the Open Government Licence v3.0 (Companies House).

Licence

Code: MIT © 2026 Fraidoon Omarzai

來源:README.md,提交 c729053

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分