Skip to content
MCP server

Search Memory

Local web search, page reading and long-term memory for AI assistants, no API keys

Runs locally

Search Memory 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
CLI, Self-hosted, macOS
Runs
Locally
Version
1.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add search-memory-mcp --env BRAVE_SEARCH_API_KEY='<BRAVE_SEARCH_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' -- npx -y search-memory-mcp

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": {
    "search-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "search-memory-mcp"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "EXA_API_KEY": "<EXA_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "search-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "search-memory-mcp"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "EXA_API_KEY": "<EXA_API_KEY>"
      }
    }
  }
}

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

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "search-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "search-memory-mcp"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "EXA_API_KEY": "<EXA_API_KEY>"
      }
    }
  }
}

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

Cursor setup guide

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

{
  "mcpServers": {
    "search-memory-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "search-memory-mcp"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "EXA_API_KEY": "<EXA_API_KEY>"
      }
    }
  }
}

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 search-memory-mcp --env BRAVE_SEARCH_API_KEY='<BRAVE_SEARCH_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' -- npx -y search-memory-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.search-memory-mcp]
command = "npx"
args = ["-y", "search-memory-mcp"]
env = { BRAVE_SEARCH_API_KEY = "<BRAVE_SEARCH_API_KEY>", TAVILY_API_KEY = "<TAVILY_API_KEY>", EXA_API_KEY = "<EXA_API_KEY>" }

Codex setup guide

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

{
  "mcpServers": {
    "search-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "search-memory-mcp"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "EXA_API_KEY": "<EXA_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e BRAVE_SEARCH_API_KEY='<BRAVE_SEARCH_API_KEY>' -e TAVILY_API_KEY='<TAVILY_API_KEY>' -e EXA_API_KEY='<EXA_API_KEY>' search-memory-mcp npx -- -y search-memory-mcp

    Antigravity

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

    {
      "mcpServers": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    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": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    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": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    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": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

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

    {
      "mcpServers": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    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": {
        "search-memory-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "search-memory-mcp"
          ],
          "env": {
            "BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
            "TAVILY_API_KEY": "<TAVILY_API_KEY>",
            "EXA_API_KEY": "<EXA_API_KEY>"
          }
        }
      }
    }

    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.

Configuration

  • SEARCH_PROVIDERSComma-separated search provider order, for example duckduckgo,marginalia,bing
  • CACHE_DB_PATHPath of the local SQLite database for cache, memory, and index
  • INGEST_ALLOWED_DIRSComma-separated directories whose files ingest_document may read; local file reading is off when unset
  • SEARXNG_BASE_URLBase URL of a SearXNG instance with JSON output, used by the searxng provider
  • BRAVE_SEARCH_API_KEYOptional Brave Search API key; the brave provider then uses the official API instead of scraping
  • TAVILY_API_KEYOptional Tavily API key; adds the tavily provider with news-topic search and publish dates
  • EXA_API_KEYOptional Exa API key; adds the exa provider with neural (semantic) web search
  • READER_FALLBACK_URLOptional reader service (for example https://markdown.new/) used when a page cannot be fetched directly; sends the page URL to that service

About Search Memory

Search Memory runs on your own machine as an npm stdio server, with its cache, memory, index and models stored locally in a SQLite database. Search works without keys through scraped providers (DuckDuckGo, Bing, Brave, Google, Yahoo, Marginalia) with ordered fallback, and optional keys add Brave API, Tavily or Exa, or you can point it at a SearXNG instance.

Pages are fetched as clean Markdown, with fast paths for GitHub and RSS, text extraction from PDF, DOCX and EPUB up to 25 MB, and a Playwright Chromium browser only when a page needs it. Indexed pages and documents form a private knowledge base searched by keyword plus semantic matching, and one research call checks the index, searches the web, reads top pages and answers with citations and publish and fetch dates.

Fetched text has hidden characters removed and is marked as data so the assistant is told not to follow instructions in it. fetch_content and index_url block localhost and private network targets, and local file reading is off unless INGEST_ALLOWED_DIRS is set. It needs Node.js 20.9 to 25, or can run in Docker.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 6 of 12 tools read data; 6 names don't say.

From the server's own tool labels and tool names; not verified by us.

web_searchName suggests: reads
Search the web through configurable providers.
fetch_contentName suggests: reads
Fetch a page or document as clean text.
index_url
Index a web page into the local knowledge base.
ingest_document
Index a local document from an allowed directory.
search_indexName suggests: reads
Search the local index.
list_indexName suggests: reads
List indexed items.
find_relatedName suggests: reads
Find related documents and co-occurring entities.
remember
Save a note to memory.
recall
Recall saved notes.
forget
Remove a saved note.
research
Search the index and web, read top pages and answer with citations.
server_statusName suggests: reads
Server status and recent searches.

What it does

Keyless web search
Federated search with deduplication, rank fusion, domain and date filters.
Pages as Markdown
Clean extraction with PDF, DOCX and EPUB support and a browser fallback.
Cross-session memory
remember, recall and forget notes scoped by topic, tags and session.
Private knowledge base
Hybrid keyword and semantic retrieval with citations.
Research with citations
One call that searches the index and web and keeps the pages for later.
Safer fetching
SSRF protection, rate limiting and stripped hidden text.

Good for

  • Research a topic and keep the sources for next session
  • Build a searchable library of documentation and PDFs
  • Save notes an assistant can recall later
  • Search the web without paying for an API
  • Check how fresh a source is from its publish date

Pricing

Open source

Free; optional third-party search API keys are paid separately

Search Memory FAQ

Does Search Memory need API keys?

No. Search works without keys; Brave, Tavily and Exa keys are optional.

Where is my data stored?

In a local SQLite database on your machine, set with CACHE_DB_PATH.

What does Search Memory require?

Node.js 20.9 to 25, or Docker; Playwright Chromium of about 180 MB is downloaded for pages that need a browser.

Can Search Memory read local files?

Only from directories listed in INGEST_ALLOWED_DIRS; it is off when unset.

Is Search Memory free?

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

How do I add Search Memory to Claude Code?

Run this command in your terminal: claude mcp add search-memory-mcp --env BRAVE_SEARCH_API_KEY='<BRAVE_SEARCH_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' -- npx -y search-memory-mcp

What are the best alternatives to Search Memory?

The closest alternatives to Search Memory are Scrapling MCP Server, Codebase Memory, XERJ, Firecrawl MCP Server and Claude Code Ultimate Guide.

Where this comes from

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

How AIPoweredBot checks servers