# Declade/lucairn-sdks [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/Declade/lucairn-sdks  
**GitHub Stars:** 2  
**npm Downloads (last month):** 353  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/declade-lucairn-sdks

## Description
Privacy-preserving AI gateway. Sanitises PII (German + English; Microsoft Presidio + custom recognisers) before prompts reach Anthropic / OpenAI / your LLM, then emits a signed cryptographic certificate per call (Ed25519 + RFC 3161 timestamp + Sigstore Rekor anchoring). EU GDPR + AI Act ready. Free tier 500 calls/month, BYOK. Install: npx -y @lucairn/mcp-server. Docs: https://lucairn.eu/developer/mcp.

## Tools
Capabilities this server exposes over MCP:

- **chat_via_lucairn** — Send a chat request through the Lucairn privacy gateway with cross-provider BYOK (Anthropic + OpenAI). PII is detected and replaced with placeholders before reaching the upstream LLM. The gateway picks the upstream provider based on the `model` parameter: `claude-*` / `anthropic-*` use ANTHROPIC_API_KEY; `gpt-*` / `openai-*` / `o1-*` / `o3-*` / `o4-*` use OPENAI_API_KEY. Wire format follows the Anthropic Messages API. Developer-tier responses contain raw placeholders; Pro and Enterprise tiers can enable automatic re-linking back to the original values.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "lucairn-sdks": {
    "command": "npx",
    "args": ["-y","@lucairn/mcp-server"],
    "env": {
      "LUCAIRN_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `LUCAIRN_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Declade/lucairn-sdks MCP server does

Declade/lucairn-sdks provides an MCP entry point for the Lucairn privacy-preserving AI gateway. Its primary tool, `chat_via_lucairn`, accepts chat requests using the Anthropic Messages API wire format and sends them through Lucairn before they reach an upstream model.

Lucairn scans each user message for personal data and substitutes typed placeholders such as `[PERSON_1]`, `[EMAIL_2]`, or `[IBAN_3]`. Detection combines tenant-configured named entities, Microsoft Presidio recognition, and an optional custom PII layer available to Enterprise deployments. The selected LLM receives the sanitized text rather than the original values.

Each request also produces a signed Lucairn Certificate. The certificate includes an Ed25519 witness signature, an RFC 3161 timestamp, and Sigstore Rekor inclusion information. HTML certificate summaries are available on every tier; JSON certificate access and local verification are available on Pro and above through the broader Lucairn SDKs.

## How it works

The MCP client invokes `chat_via_lucairn` with a model identifier and chat content. Lucairn chooses the upstream provider from that identifier:

- `claude-*` and `anthropic-*` route to Anthropic.
- `gpt-*`, `openai-*`, `o1-*`, `o3-*`, and `o4-*` route to OpenAI.

The matching provider key can be forwarded as BYOK credentials, so the provider account associated with that key is billed directly. The response behavior depends on the Lucairn tier. Developer accounts receive the model response with placeholders unchanged. Pro and Enterprise accounts can enable gateway-side re-linking of placeholders to the original values before the response returns to the application.

## Setup and configuration

The package can be run on demand without a build step:

```bash
npx -y @lucairn/mcp-server
```

Register that command in the MCP client configuration. The environment must include `LUCAIRN_API_KEY`. Add `ANTHROPIC_API_KEY` and/or `OPENAI_API_KEY` when using BYOK routing for the corresponding provider. After restarting the MCP client, `chat_via_lucairn` becomes available.

A Lucairn account is required. The Developer tier provides 500 requests per month without a credit card. Higher tiers add capabilities such as response re-linking, certificate JSON access, audit-event export, and Enterprise self-hosting.

## Tools and capabilities

- Send chat requests through Lucairn with `chat_via_lucairn`.
- Redact names, email addresses, IBANs, addresses, phone numbers, customer IDs, and other recognized PII before upstream delivery.
- Route requests to Anthropic or OpenAI based on model prefixes.
- Use Anthropic and OpenAI credentials through cross-provider BYOK.
- Return a signed certificate describing the redaction and request timing.
- Use Lucairn’s HTML verification surface for certificate summaries.

## Limitations and notes

Developer-tier responses contain placeholders rather than restored personal data. Automatic re-linking is available on Pro and Enterprise tiers. The Enterprise custom-trained PII shield is optional and requires an Enterprise deployment.

External RFC 3161 and Sigstore Rekor anchor verification is exposed as pass-through metadata; complete external anchor verification is not part of the available verifier behavior. Certificate verification should use witness and per-service public keys obtained independently from the gateway, because keys retrieved from the same gateway do not provide an independent trust source.

Enterprise self-hosted deployments can keep the complete stack inside the customer environment. For Lucairn-hosted Developer callers, pseudonymization occurs on the gateway before the upstream model receives the request.

_Full upstream README: https://allmcps.com/mcp/declade-lucairn-sdks/readme_

