# Nacre

> Nacre is an open-source MCP server for knowledge and memory. Self-hosted knowledge index where each search returns only what the caller may read. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, API, CLI
- **Website:** https://nacre.work
- **Repository:** https://github.com/nacre-work/nacre
- **MCP Registry name:** work.nacre/nacre
- **Categories:** knowledge and memory, security
- **Listing updated:** 2026-11-14

## About

Nacre's central claim is that its access filter runs inside the index during HNSW traversal, not after ranking. A request for ten results therefore returns ten permitted ones rather than ten minus whatever was stripped. The query builder takes a resolved access plan and has no parameter for a raw filter, and a document you cannot see returns the same response as one that does not exist.

Permissions inherit from workspaces to layers with read, write and admin levels. Revocation takes effect on the next request: a database trigger bumps the organization's permission version and the resolver's cache is keyed on it. Per the README, document-level grants and deny rules are commercial, and the open build refuses them rather than accept a rule it cannot enforce. The core is Apache 2.0, with commercial modules for multi-tenancy, SSO and SCIM, deny rules and SIEM forwarding.

The npm package @nacre.work/mcp runs over stdio and needs a service-account key plus the deployment's database and backend configuration. Retrieval is hybrid, fusing dense vectors and BM25 with an optional cross-encoder rerank, and embeddings can come from any OpenAI-compatible endpoint. It runs under Docker Compose or a Helm chart with no phone-home. Reference connectors cover git, S3, SQL databases, Google Drive, MongoDB and IMAP.

## Features

- **Filter inside the index:** Access rules apply during traversal so top_k returns k permitted results.
- **Immediate revocation:** A permission version bump makes the very next request see the change.
- **Inherited permissions:** Workspaces and layers pass read, write and admin levels down.
- **Hybrid retrieval:** Dense vectors and BM25 are fused, with optional reranking.
- **Bring your own embeddings:** Any OpenAI-compatible endpoint, bound per layer.
- **Reference connectors:** Six connectors sync git, S3, SQL, Drive, Mongo and IMAP sources.
- **MCP and REST:** Agents use MCP and applications use REST through the same authorization service.

## Good for

- Give agents company search that respects each user's access
- Prove to an auditor which documents a query could reach
- Keep a private knowledge index inside your own network
- Search exact identifiers such as error codes and invoice numbers
- Sync repositories or buckets into a permissioned index

## Install

### Claude Code (Terminal)

```sh
claude mcp add nacre --env NACRE_SERVICE_KEY='<NACRE_SERVICE_KEY>' -- npx -y @nacre.work/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nacre": {
      "command": "npx",
      "args": [
        "-y",
        "@nacre.work/mcp"
      ],
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nacre": {
      "command": "npx",
      "args": [
        "-y",
        "@nacre.work/mcp"
      ],
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "nacre": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nacre.work/mcp"
      ],
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nacre": {
      "command": "npx",
      "args": [
        "-y",
        "@nacre.work/mcp"
      ],
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nacre": {
      "command": "npx",
      "args": [
        "-y",
        "@nacre.work/mcp"
      ],
      "env": {
        "NACRE_SERVICE_KEY": "<NACRE_SERVICE_KEY>"
      }
    }
  }
}
```

## FAQ

### How do I install it?

Clone the repository, copy .env.example to .env and run docker compose with the minimal profile; a Helm chart is also provided.

### Is it open source?

The core is Apache 2.0; multi-tenancy, SSO and SCIM, deny rules and SIEM forwarding are commercial modules.

### Does it phone home?

No. The README says it stays inside your network with no phone-home.

### Does the stdio MCP server work alone?

No. The service key alone is not enough; it needs the deployment's full environment.

### Which sources have connectors?

git, S3-compatible stores, Postgres/MySQL/MariaDB, Google Drive, MongoDB and IMAP; there is none for Confluence, SharePoint, Slack, Notion or Jira.

### Is Nacre free?

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

### How do I add Nacre to Claude Code?

Run this command in your terminal: claude mcp add nacre --env NACRE_SERVICE_KEY='<NACRE_SERVICE_KEY>' -- npx -y @nacre.work/mcp

### What are the best alternatives to Nacre?

The closest alternatives to Nacre are REA, Codebase Memory, XERJ, Claude Code Ultimate Guide and Nautilus Compass Memory.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [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.

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