# Conarium

> Conarium is an open-source MCP server for security. Self-hosted gateway that masks PII and signs receipts for AI access to your databases. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI
- **Website:** https://conarium.dev
- **Repository:** https://github.com/dogrucanemek-alt/conarium
- **MCP Registry name:** io.github.dogrucanemek-alt/conarium
- **Categories:** security, databases
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/conarium
