Nacre

v0.41.0
work.nacre/nacre Checked 19 hours ago Published 1 month ago

Self-hosted permission-aware context layer.

Values you need

VariableWhat it is
NACRE_SERVICE_KEYrequired secret Service-account key for STDIO mode. The server also needs the deployment's full environment (database and backend configuration) - see docs/mcp.md; the key alone is not enough to start it.

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add nacre -e 'NACRE_SERVICE_KEY=<NACRE_SERVICE_KEY>' -- npx -y --package=@nacre.work/mcp@0.41.0 nacre-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nacre": {
      "args": [
        "-y",
        "--package=@nacre.work/mcp@0.41.0",
        "nacre-mcp"
      ],
      "command": "npx",
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nacre": {
      "args": [
        "-y",
        "--package=@nacre.work/mcp@0.41.0",
        "nacre-mcp"
      ],
      "command": "npx",
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NACRE_SERVICE_KEY",
      "id": "nacre-service-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "nacre": {
      "args": [
        "-y",
        "--package=@nacre.work/mcp@0.41.0",
        "nacre-mcp"
      ],
      "command": "npx",
      "env": {
        "NACRE_SERVICE_KEY": "${input:nacre-service-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nacre]
command = "npx"
args = ["-y", "--package=@nacre.work/mcp@0.41.0", "nacre-mcp"]
env = { "NACRE_SERVICE_KEY" = "<NACRE_SERVICE_KEY>" }

For AI agents

  1. Ask the user for: NACRE_SERVICE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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