Lucairn Mcp Server

io.github.Declade由 GitHub 帳號 Declade 發布v1.2.9更新於 Oct 24, 2026

Pseudonymizes PII before your LLM and returns a cryptographically signed receipt per response.

已驗證STDIO僅桌面安全與監控AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,將助理對話經 Lucairn 隱私閘道轉送,在送達上游大型模型前去除個人資料,並回傳附簽章的合規憑證。

可以做什麼
透過 Lucairn 閘道將對話請求送往所選上游模型(Claude 或 OpenAI 系列),個人資料在模型看到之前已由佔位符取代。取得某次回應的簽章合規憑證:任何方案可得 HTML 摘要,付費方案可得 JSON 並在本機進行 Ed25519 驗證。以固定的各服務金鑰驗證憑證中的各項聲明,包括已簽章的上游請求雜湊與憑證等級。透過設定指向自架的 Lucairn 部署或切換傳輸模式。
適用情境
當助理需要在可能含個人資料的提示上呼叫大型模型,且你希望有去識別化處理與可稽核的簽章紀錄時使用。適合面向歐盟的隱私與合規流程,而非一般用途工具。
執行需求
透過 npx 從 npm 套件在本機執行,需要 Node.js。必須在 LUCAIRN_API_KEY 提供 Lucairn 閘道 API 金鑰;免費方案還需依模型提供自己的上游金鑰 ANTHROPIC_API_KEY 或 OPENAI_API_KEY。需要連線至 Lucairn 閘道的網路;LUCAIRN_BASE_URL 與 LUCAIRN_TRANSPORT 為選用覆寫項。
安裝前請注意
提示會送往第三方閘道,再由其將去識別化文字轉給上游供應商;只有企業版自架部署能讓資料完全留在自有環境。免費方案原樣回傳佔位符而不還原,回應可能無法直接使用。上游金鑰會隨請求轉送,費用直接計入你的供應商帳戶。外部時間戳與透明日誌錨定驗證尚未完成。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Lucairn SDKs

Official client libraries for Lucairn — an EU-based privacy-preserving AI gateway. Lucairn sits between your application (or AI agent) and the upstream LLM provider you choose, removes personal data from prompts before the model ever sees them, and returns a signed Lucairn Certificate proving what was redacted, when, and by which sanitizer layer.

This monorepo hosts four packages at parity:

  • @lucairn/mcp-server — Model Context Protocol server (one-line npx install for Claude Desktop, Cursor, Cline, Continue, …)
  • @lucairn/sdk — TypeScript / Node SDK
  • lucairn — Python SDK
  • github.com/declade/lucairn-sdks/go — Go SDK

Quick start (MCP)

For most agent use cases, the fastest path is the MCP server. No build step, no install — npx runs it on demand:

bash
npx -y @lucairn/mcp-server

Add it to your MCP client config (Claude Desktop's claude_desktop_config.json, Cursor's mcp.json, Cline's cline_mcp_settings.json, Continue, etc.):

json
{  "mcpServers": {    "lucairn": {      "command": "npx",      "args": ["-y", "@lucairn/mcp-server"],      "env": {        "LUCAIRN_API_KEY": "<your_lucairn_api_key>",        "ANTHROPIC_API_KEY": "<optional_byok_anthropic_key>",        "OPENAI_API_KEY": "<optional_byok_openai_key>"      }    }  }}

Restart your client. The chat_via_lucairn tool becomes available immediately. See mcp-server/README.md for full details.

What it does

Each request through any Lucairn SDK follows the same pipeline:

  1. PII detection runs on every user message in three layers:
    • Layer 1 — Known-entity matching (your tenant's named entities)
    • Layer 2 — Presidio NER (names, emails, IBANs, addresses, phone numbers, customer IDs, …)
    • Layer 3 — GPU-hosted custom-trained PII shield (Enterprise tier only, optionally trained on your domain corpus)
  2. Detected PII is replaced with placeholders ([PERSON_1], [EMAIL_2], [IBAN_3], …) before the request reaches the upstream LLM.
  3. The selected upstream model sees only the sanitized text. It never receives raw personal data.
  4. The response is returned with a signed compliance certificate (Ed25519 witness signature + RFC 3161 timestamp + Sigstore Rekor inclusion proof).
  5. Response handling depends on tier:
    • Developer (free) — placeholders are returned verbatim. Useful for testing the redaction surface.
    • Pro / Enterprise — placeholders are re-linked back to the originals on the gateway before the response reaches your application.

For Lucairn-hosted Developer-tier callers, on-gateway pseudonymization happens before your LLM sees the request. Enterprise self-host deployments can run the entire stack inside the customer environment, in which case no raw identity data leaves that environment at all.

Provider routing

The gateway picks the upstream provider from the model parameter you send:

Model prefixUpstream providerBYOK env var
claude-*, anthropic-*AnthropicANTHROPIC_API_KEY
gpt-*, openai-*, o1-*, o3-*, o4-*OpenAIOPENAI_API_KEY

Cross-provider BYOK shipped in @lucairn/[email protected] — set one or both keys in the same MCP config and the server forwards the matching one as X-Upstream-Key per request, so your provider account is billed directly.

Per-language SDKs

LanguagePackageVersionREADME
MCP server@lucairn/mcp-server1.2.7mcp-server/README.md
TypeScript@lucairn/sdk1.1.1ts/README.md
Pythonlucairn1.4.1python/README.md
Gogithub.com/declade/lucairn-sdks/gov1.3.1go/README.md

All SDKs are at parity at the observable level. Cross-language byte-equivalence is locked via shared Go-assembler-generated fixtures, so a certificate signed via one SDK verifies identically via the other two.

Get an API key

Sign up at https://lucairn.eu/account/signup. Free Developer tier: 500 requests/month, no credit card required.

Pro adds response re-linking, programmatic certificate JSON access, audit-event export, and higher quota. Enterprise adds self-host, BYOK with provider-side billing isolation, and the optional custom-trained PII shield (priced per scope).

See https://lucairn.eu/pricing for the full tier comparison.

Verify a response

Every response through any SDK gets a signed Lucairn certificate. Two surfaces:

  • HTML summary — DPO-friendly, available on every tier including Developer (free). Use getCertificateSummary (TS) / get_certificate_summary (Python) / GetCertificateSummary (Go), or paste the certificate URL into https://lucairn.eu/verify.

  • JSON certificate + local Ed25519 verify — Pro tier and above. Use getCertificate + verifyCertificate (and language equivalents). The verifier is in-tree — see ts/src/verify-certificate/, python/src/lucairn/verify_certificate/, and the internal/verify package under go/.

  • Every claim, not only the witness signature — verifyCertificateChain / verify_certificate_chain / VerifyCertificateChain check each claim's own signature against per-service keys you pin, the claim bytes, the typed copies, the signed upstream-request hashes and the unsigned cert_tier. All three return identical results on the shared 98-case corpus in testdata/parity-corpus/. Render and decide only from the returned verified values; pass the expected request id so another turn's certificate is refused.

External RFC 3161 + Sigstore Rekor anchor verification is currently surfaced as pass-through metadata; full external anchor verification lands in a follow-up release.

Status

Production packages are versioned independently and tagged per the table above. Cross-language byte-equivalence is locked via shared fixtures. Follow CHANGELOG.md for release notes.

Links

Contributing

See CONTRIBUTING.md. Security reports: SECURITY.md.

License

MIT — see LICENSE.

來源:README.md,提交 00e80b5

工具

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

版本歷史

1
  1. v1.2.9最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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