lucairn-mcp-server
v1.2.9Pseudonymizes PII before your LLM and returns a cryptographically signed receipt per response.
Values you need
| Variable | What it is | |
|---|---|---|
LUCAIRN_API_KEY | required secret | Lucairn gateway API key (lcr_live_*). Issued at https://lucairn.eu/account/keys. Free tier requires BYOK upstream LLM keys (ANTHROPIC_API_KEY or OPENAI_API_KEY). |
ANTHROPIC_API_KEY | optional secret | Upstream Anthropic API key. Used when the requested model is claude-* / anthropic-*. Required if you call Claude models on the free tier (BYOK). |
OPENAI_API_KEY | optional secret | Upstream OpenAI API key. Used when the requested model routes to OpenAI. Required if you call OpenAI models on the free tier (BYOK). |
LUCAIRN_BASE_URL | optional | Override the gateway URL. Defaults to https://gateway.lucairn.eu (production). Set this to point at a self-hosted Lucairn deployment. |
LUCAIRN_TRANSPORT | optional | Transport mode for the MCP server. One of 'direct-http' (default; v1.1+ behavior) or 'stdio-bridge' (v1.2+ opt-in). |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add lucairn-mcp-server -e 'LUCAIRN_API_KEY=<LUCAIRN_API_KEY>' -- npx -y --package=@lucairn/mcp-server@1.2.9 lucairn-mcp-serverAdd to
claude_desktop_config.json{
"mcpServers": {
"lucairn-mcp-server": {
"args": [
"-y",
"--package=@lucairn/mcp-server@1.2.9",
"lucairn-mcp-server"
],
"command": "npx",
"env": {
"LUCAIRN_API_KEY": "<LUCAIRN_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"lucairn-mcp-server": {
"args": [
"-y",
"--package=@lucairn/mcp-server@1.2.9",
"lucairn-mcp-server"
],
"command": "npx",
"env": {
"LUCAIRN_API_KEY": "<LUCAIRN_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "LUCAIRN_API_KEY",
"id": "lucairn-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"lucairn-mcp-server": {
"args": [
"-y",
"--package=@lucairn/mcp-server@1.2.9",
"lucairn-mcp-server"
],
"command": "npx",
"env": {
"LUCAIRN_API_KEY": "${input:lucairn-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.lucairn-mcp-server]
command = "npx"
args = ["-y", "--package=@lucairn/mcp-server@1.2.9", "lucairn-mcp-server"]
env = { "LUCAIRN_API_KEY" = "<LUCAIRN_API_KEY>" }For AI agents
- Ask the user for: LUCAIRN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: chat_via_lucairn.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json