# lanternkb

> lanternkb is an open-source MCP server for knowledge and memory. Private local MCP server that searches your own files by meaning and exact words. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, CLI, Self-hosted
- **Repository:** https://github.com/ankitb073/lanternkb
- **MCP Registry name:** io.github.ankitb073/lanternkb
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

lanternkb keeps search entirely on your machine. You choose the folders to index, and each is marked either open or local-only, with new folders defaulting to local-only. The MCP server it registers returns files from open folders and nothing else, so you decide what a cloud-connected assistant may see.

Before anything is split or embedded, a secret scanner redacts what it finds, and a file containing a secret becomes local-only even inside an open folder. Files are read in sandboxed worker processes (sandbox-exec on macOS, Landlock and seccomp on Linux). The README is candid that the scanner kept 71.9% of planted fake secrets out of the index on its hardest test, so it should be a second line of defence.

It reads notes, code, PDFs, Word and OpenDocument files, rich text, saved web pages and subtitles, with OCR and audio optional. It needs macOS 14 on Apple silicon or Linux, about 0.9 GB plus roughly 1.2 GB for the embedding model, and is licensed Apache-2.0.

## Features

- **Hybrid search:** Finds files by meaning and by exact words, with a CLI search and a settings UI.
- **Open or local-only folders:** Each folder's visibility to assistants is set explicitly.
- **Secret redaction:** Detected secrets are redacted before text is stored or embedded.
- **Sandboxed readers:** File parsing runs in deny-by-default worker processes.
- **No telemetry:** No daemon, no open port and no network use beyond agreed model downloads.

## Good for

- Search personal notes and PDFs from Claude Code without uploading them
- Find what a contractor quoted across saved documents
- Keep credential folders out of an assistant's reach while still indexing project docs
- Check recently changed files with a single command

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add lanternkb -- uvx lanternkb
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add lanternkb -- uvx lanternkb
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.lanternkb]
command = "uvx"
args = ["lanternkb"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user lanternkb uvx -- lanternkb

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
```

## FAQ

### Does anything leave my machine?

The README says nothing goes over the network except the model downloads you agree to.

### Which systems are supported?

macOS 14 or later on Apple silicon, or Linux, installed with uv.

### Does lanternkb index email or browser history?

No. Email, browser history, calendars and contact cards are not indexed.

### What licence is lanternkb under?

Apache-2.0.

### Is lanternkb free?

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

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

Run this command in your terminal: claude mcp add lanternkb -- uvx lanternkb

### What are the best alternatives to lanternkb?

The closest alternatives to lanternkb are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [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.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

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