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 分