Memnos logo

Memnos

Shared, namespace-scoped memory for coding agents with Git-aware recall, PostgreSQL storage, and token authentication.

Install Memnos

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "memnos": {
      "command": "uvx",
      "args": [
        "memnos-sdk"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio memnos -- uvx memnos-sdk

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx memnos-sdk

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

memnos gives coding agents shared, namespace-scoped memory backed by PostgreSQL and pgvector, with token-based access control. It exposes MCP tools alongside a REST API and Python SDK, and can run with embedded PostgreSQL or an existing database. Git anchors, bi-temporal supersession, hybrid search, and local reranking help agents avoid relying on outdated code or contradictory facts. Reach for it when multiple agents or developers need auditable memory across Claude Code, Cursor, Codex, or Windsurf.

Use cases

  • Share architectural decisions across developers and agents
  • Recall debugging fixes against matching stack traces
  • Detect when remembered advice refers to changed code
  • Hydrate a repository from rules and recent Git history
  • Coordinate agents with sessions, channels, and work leases

Key features

  • Namespace-scoped, token-authenticated memory
  • Git anchors with blob and symbol provenance
  • Bi-temporal fact supersession
  • Hybrid retrieval with local ONNX reranking
  • MCP, REST API, and Python SDK access
  • Embedded PostgreSQL with pgvector

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 21d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · memnos-sdk (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Memnos works

What memnos does

memnos provides shared memory for AI coding agents, organized into namespaces and protected with scoped tokens. Stored information can include decisions, preferences, rules, plans, debugging solutions, and concrete outcomes. The system records conversations verbatim for search while extracting structured facts according to whether the message came from the user or assistant.

Its Git-aware memory links decisions and fixes to file paths, blob SHAs, and identifiers. During recall, changed or deleted code can be flagged so an agent is less likely to apply advice tied to an earlier version. Bi-temporal supersession closes out older facts when newer information replaces them, rather than presenting contradictory facts as equally current.

How it works

The server uses PostgreSQL with pgvector. A default setup downloads an embedded PostgreSQL 16 and pgvector build, while external PostgreSQL and Docker-backed arrangements are also supported. Memory retrieval combines vector and BM25 search with a local ONNX cross-encoder reranker; the recall path does not require an LLM.

An optional OpenAI key enables 1536-dimensional embeddings and bi-temporal fact extraction. Without that key, memnos uses local 384-dimensional embeddings. Fact extraction can instead use an OpenAI-compatible endpoint such as Ollama, vLLM, or LM Studio by setting MEMNOS_EXTRACT_BASE_URL; embeddings remain local in that mode.

Agent coordination includes sessions, pub/sub channels, inboxes, work-item leases, and peer-memory envelopes. Server-side authorship attribution identifies which developer stored a fact. The explain capability exposes pinned constraints, relevance scores, and retrieval latency stages included in a prompt.

Setup and configuration

Install the package with uv tool install memnos, then run memnos setup and memnos start. The embedded mode avoids Docker and other external dependencies on supported macOS arm64, Linux x86_64, and Windows x86_64 builds. memnos setup --external connects to an existing PostgreSQL instance, while memnos setup --docker uses a pgvector container.

Use memnos init to import CLAUDE.md, AGENTS.md, and .cursorrules as pinned constraints and load up to 90 days of Git history. Run memnos agent-setup all to configure hooks and MCP for Claude Code, Cursor, Codex, and Windsurf. The service also provides status, stop, restart, foreground serving, upgrade, and autostart commands.

Tools and capabilities

  • Namespace-scoped memory with token authentication
  • Git-anchored provenance and code-drift warnings
  • Bi-temporal fact replacement and stale-fact demotion
  • Structured debugging records through memnos fix or record_fix
  • MCP access plus REST API and Python SDK
  • Shared sessions, channels, inboxes, leases, and auditable recall

Limitations and notes

Automatic capture differs by client. Claude Code supports deterministic lifecycle-hook capture, and clients with configurable base URLs can use memnos proxy. MCP remains the capture route for clients without those options, including Claude Desktop. Assistant-derived facts are capped per reply by MEMNOS_ASSISTANT_FACT_CAP, whose default is six. Data extraction is optional, but using a remote extraction endpoint sends extraction requests to that endpoint; local-only operation is available with the local embedding mode.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memnos

memnos is an MCP server that connects AI coding agents to shared, namespace-scoped memory stored in PostgreSQL with pgvector. Its main capabilities include recalling and recording facts, structured debugging fixes, Git-aware provenance, bi-temporal supersession, agent sessions, coordination channels, and auditable retrieval explanations.

Install memnos with `uv tool install memnos`, then run `memnos setup` followed by `memnos start`. The default setup downloads embedded PostgreSQL and pgvector on supported platforms. Use `memnos setup --external` for an existing PostgreSQL database or `--docker` for a pgvector container.

Yes, memnos supports Cursor through MCP and its agent setup command. Run `memnos agent-setup all` to wire MCP and hooks for Cursor, then use the shared namespace to recall and store memory across configured agents.

No, an OpenAI key is optional. Without one, memnos uses local 384-dimensional embeddings and keeps operation local. You can also configure `MEMNOS_EXTRACT_BASE_URL` with an OpenAI-compatible endpoint such as Ollama, vLLM, or LM Studio for fact extraction.

memnos links recorded decisions and fixes to file paths, blob SHAs, and identifiers, then warns when referenced code has changed or been deleted. Bi-temporal supersession also closes older facts when newer information replaces them, and retrieval demotes stale turns.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemnos AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memnos?style=directory)](https://allmcps.com/mcp/memnos)
HTML Embed
<a href="https://allmcps.com/mcp/memnos"><img src="https://allmcps.com/api/badge/memnos?style=directory" alt="Memnos on AllMCPs" /></a>