Skip to content
MCP server

Conarium

Self-hosted gateway that masks PII and signs receipts for AI access to your databases

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
self-hosted, CLI
Runs
Locally
Version
0.3.6
Listing updated
3 days ago

About Conarium

Conarium is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

The design assumes a coding assistant should not see raw production data. Conarium sits as an MCP proxy between the assistant and the database. Policy decides which tables are allowed, sensitive values are replaced with markers such as [MASKED_PII] before the model sees them, queries have hard row caps, and writes (INSERT, UPDATE, DELETE, DROP) are blocked, including when hidden in comments or stacked queries. The public demo returns 25 rows per query.

The distinctive part is evidence. Each governed access can emit an Ed25519-signed receipt with the fields the site ties to EU AI Act Articles 12 and 19, with chain heads anchored to OpenTimestamps, and a separate conarium-verify tool lets an auditor check them offline. A coverage check compares the database's own query counters with receipts to surface access that bypassed the gateway. The site says receipts prove records were not altered after creation, not that they were correct when written.

The README is open about limits: masking hides a value but does not make it unlearnable, and predicates over a protected column can still answer questions about it. Browser demo masking is pattern-based. It runs on your own infrastructure under an MIT licence.

Install

Run in a terminal

claude mcp add conarium -- npx -y @conarium-ai/core

Add to claude_desktop_config.json

{
  "mcpServers": {
    "conarium": {
      "command": "npx",
      "args": [
        "-y",
        "@conarium-ai/core"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "conarium": {
      "command": "npx",
      "args": [
        "-y",
        "@conarium-ai/core"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "conarium": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@conarium-ai/core"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "conarium": {
      "command": "npx",
      "args": [
        "-y",
        "@conarium-ai/core"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "conarium": {
      "command": "npx",
      "args": [
        "-y",
        "@conarium-ai/core"
      ]
    }
  }
}

What it does

PII masking
Redacts emails, IDs, cards and secrets in the response stream.
Allow and deny lists
Only whitelisted tables are visible; others raise a PolicyError.
Row caps
Per-query limits stop bulk extraction.
Write guard
Blocks data-changing statements, even ones disguised in comments.
Signed receipts
Ed25519 receipts verifiable offline with conarium-verify.
Coverage reconciliation
Compares database query counters with receipts to find access that skipped the gateway.
Hash-chained audit log
Every access is recorded in a tamper-evident ledger.

Good for

  • Let Cursor or Copilot query a database without exposing customer data
  • Produce audit evidence of what an AI assistant read
  • Block an assistant from reading a secrets table
  • Check that no access bypassed the gateway

Pricing

Open source

MIT licence, self-hosted

Prices change. Check conarium.dev before you buy.

Conarium FAQ

Where does it run?

On your own infrastructure; the maker says it never sees your data.

What licence is it?

MIT, according to the site.

Can the assistant write to the database?

No. DELETE, DROP, UPDATE and INSERT are blocked.

Does masking guarantee privacy?

The README says no: masking hides a value but does not make it unlearnable, and the limits are documented in LIMITATIONS.md.

How do I verify a receipt?

Use `npx conarium-verify chain.jsonl --pubkey key.pem`; the verifier is a single file that imports nothing from the package.

Is Conarium free?

Yes. Conarium is open source, so you can use and self-host it for free.

How do I add Conarium to Claude Code?

Run this command in your terminal: claude mcp add conarium -- npx -y @conarium-ai/core

What are the best alternatives to Conarium?

The closest alternatives to Conarium are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

Alternatives to Conarium

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security