Skip to content
MCP server

lanternkb

Private local MCP server that searches your own files by meaning and exact words

Runs locally

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

Pricing
Open source
Platforms
macOS, Linux, CLI
Runs
Locally
Version
0.1.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add lanternkb -- uvx lanternkb

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

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add lanternkb -- uvx lanternkb

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

{
  "mcpServers": {
    "lanternkb": {
      "command": "uvx",
      "args": [
        "lanternkb"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About lanternkb

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.

What it does

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

Pricing

Open source

Free, Apache-2.0

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.

How AIPoweredBot checks servers