Skip to content
MCP server

Cortex

Local-first memory server that lets Claude Code and Cursor search your own notes and code

Runs locally

Cortex is a freemium MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
macOS, Windows, Linux
Runs
Locally
What it can do
Can delete data (2 tools)
Version
4.0.2

Similar MCP servers

Install

In Claude Desktop → Settings → Extensions

https://github.com/lh123aa/cortex/releases/download/v4.0.2/cortex-local-memory-4.0.2.mcpb

Download the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.

Claude Desktop setup guide

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

About Cortex

The README says Cortex indexes folders of notes, documents and source code, then exposes them to Claude Code, Cursor, OpenCode and Trae through MCP tools so the assistant can look up past decisions instead of being re-briefed each session. Indexing uses SQLite full-text search (BM25) by default, so no GPU, vector database or Docker is needed; optional embedding providers such as Ollama can be turned on.

The project ships as a single Go binary of roughly 33 to 36 MB. Its startup command writes the MCP entry into supported editors after making a backup, and the README states that existing MCP servers are left in place. Data stays on the local machine unless an embedding API the user configures is called.

It suits developers and small teams who keep Markdown, PDF or code notes locally and want an assistant to cite the matching passage, especially where cloud memory services are ruled out by policy. The README notes limits such as a comfortable ceiling of about 30,000 documents and fewer supported formats than some alternatives.

Tools this server provides (14)

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

From the tool list in its README, going by the names, 2 of 14 tools delete data and 1 changes data; 8 names don't say.

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

cortex_searchName suggests: reads
Hybrid search over the knowledge base, returning results with paths and titles.
cortex_context
Builds RAG context suitable for inserting directly into a prompt.
cortex_suggest
Query completion suggestions.
cortex_memory_writeName suggests: changes
Writes a single memory entry.
cortex_memory_batch
Writes memory entries in batch.
cortex_memory_searchName suggests: reads
Searches stored memory entries.
cortex_memory_deleteName suggests: deletes
Deletes a specified memory entry.
cortex_memory_delete_batchName suggests: deletes
Deletes memory entries in batch.
cortex_code_searchName suggests: reads
Searches code symbols such as functions and classes by name.
cortex_stats
Knowledge base statistics.
cortex_health
Health check.
cortex_map
Topic map of the knowledge base.
cortex_plan
Generates an execution plan based on knowledge base content.
cortex_project_context
Aggregates project-level context.

What it does

Local hybrid search
Full-text BM25 retrieval runs on SQLite by default, with optional vector search fused through reciprocal rank fusion.
Editor auto-registration
The start command registers the server with Claude Code, Cursor, OpenCode and Trae, keeping a backup of existing configuration.
Agent memory API
Endpoints allow writing, batch writing, searching and deleting memory entries that agents can recall later.
Chinese text tokenization
CJK-aware tokenization handles titles and bodies separately, aimed at Chinese notes that plain tokenizers match poorly.
Code symbol search
A dedicated tool searches functions and classes by name, using the official Go AST parser for Go and lexical extraction for other languages.
Single binary deployment
Runs as one self-contained executable with embedded SQLite, with no separate database or container stack required.

Good for

  • Recall earlier design decisions and constraints when starting a new coding session
  • Search a folder of local Markdown, PDF and code notes from inside Claude Code or Cursor
  • Keep documents on a private machine where cloud memory services are not permitted
  • Give an AI assistant a searchable store of project notes that it can cite by source file

Pricing

Freemium

Free core with a 5,000-document limit; Pro is a one-time $29 license per the website, with the README listing Pro features and capacity.

Prices change. Check cortex.qataroasis.cc before you buy.

Cortex FAQ

Does Cortex send data to the cloud?

The README says data stays local by default and only an embedding API the user configures is contacted; Ollama can run fully offline.

Does Cortex need a GPU, Docker or a vector database?

The README says the default retrieval is pure BM25 with no GPU, vector database or Docker required, and vector search is optional and off by default.

Which AI tools does Cortex connect to?

The README lists Claude Code, Cursor, OpenCode and Trae for automatic registration, and gives manual JSON configuration for other MCP clients.

How is Cortex installed?

The README describes a one-line install script for Linux, macOS and Windows, a Claude Desktop .mcpb extension, building from source with Go, and a Docker option.

Is Cortex free?

Cortex has a free plan, with paid plans for more usage or features.

What are the best alternatives to Cortex?

The closest alternatives to Cortex are Cortex, Cross-Agent Memory, MCP Memory Graph, Crbro Memory and NeuroStack.

Where this comes from

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

How AIPoweredBot checks servers