memora

by @agentic-mcp-tools

Memora MCP Server

Give AI coding agents persistent graph memory with LLM-classified fact absorption, supersession lineage, semantic/hybrid search, and an interactive graph UI. Built in Python under MIT (`pip install memora-mcp`), Memora runs over stdio, SSE, or multi-database Streamable HTTP.

Memory & Knowledge751pythonMIT

Server facts

memora MCP Server

GitHub stars

751

Last commit

Nov 18, 2026

Runtime

python

License

MIT

Tech

Runtime
python
Transports
stdiostreamable-httpsse
Remote access
No
Authentication
Optional OpenAI/Embedding/Cloudflare/AWS Keys; optional HTTP Bearer Tokens

Activity

GitHub stars
751
Last commit
Data as of

Overview

Long-running agent workflows quickly drown in duplicate notes and contradicted facts when stored in flat Markdown files. Memora (`pip install memora-mcp`, MIT-licensed Python—distinct from the unrelated bare `memora` PyPI package) provides a persistent collective memory layer for Claude Code, Codex CLI, and Neovim/Telescope backed by local SQLite, encrypted S3/R2 cloud sync, or Cloudflare D1. Its `memory_absorb` workflow classifies incoming facts as duplicate, update, contradiction, related, or new, preserving supersession lineage (`active`, `latest`, `full_history`) so edits supersede stale claims without silent deletion while `memory_digest(topic)` gathers matching memories, source IDs, linked graph edges, and open issues or TODOs in a single call. Markdown documents can also be stored as typed fragment trees (`claim`, `plan_item`, `reference`, `risk`) guarded against accidental merges.

Run `memora-server` over local `stdio` by default—with an automatic interactive graph server on port `8765` (disable via `--no-graph` when using the Cloudflare Pages D1 Cloud Graph)—or launch `--transport streamable-http` with `MEMORA_DATABASES` multi-store routing at `/mcp/<name>`, session limits, and optional token-authenticated `/api/v1` and `/admin/` routes. To shrink the 12,700-token schema footprint of all 44 tools, set `MEMORA_TOOL_PROFILE` to `leader` (19 tools) or `agent` (12 tools). Embeddings support OpenAI-compatible endpoints, offline `sentence-transformers` (`memora-mcp[local]`), or TF-IDF—set `MEMORA_EMBEDDING_STRICT=1` to fail fast rather than silently falling back to TF-IDF.

Install & configure

Requirements

  • Python environment (`pip install memora-mcp`, or `pip install "memora-mcp[local]"` for offline ~2 GB `sentence-transformers` embeddings)
  • Storage backend: local SQLite path (`MEMORA_DB_PATH`), S3/R2 bucket (`MEMORA_STORAGE_URI=s3://...`), or Cloudflare D1 (`d1://...` + `CLOUDFLARE_API_TOKEN`)
  • Optional OpenAI-compatible API keys for dense embeddings (`MEMORA_EMBEDDING_API_KEY`) and LLM dedup/chat (`OPENAI_API_KEY`)
Documented launch / install command
pip install memora-mcp

Install `memora-mcp` from PyPI (never bare `memora`), then configure `memora-server` over stdio in `.mcp.json` (Claude Code) or `~/.codex/config.toml` (Codex CLI). For shared multi-workspace service deployments, run `memora-server --transport streamable-http` with `MEMORA_DATABASES` or use the macOS 26 Apple `container` instance launcher scripts.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "memora": {
      "type": "stdio",
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "memora": {
      "type": "stdio",
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
memory_absorbClassifies incoming facts against existing memory (duplicate, update, contradiction, related, or new) with dry-run preview and type boundaries.
memory_digestBundles relevant memories, open TODOs and issues, related graph edges, and source IDs for a requested topic.
memory_semantic_searchSearches stored memories and document fragments using configured vector embeddings.
memory_hybrid_searchCombines semantic vector retrieval with lexical, tag, and metadata filtering.
memory_list_compactLists compact memory summaries rapidly for narrow worker-agent read surfaces.
memory_listLists memories with fuller metadata on `leader` and `full` tool profiles.
memory_getRetrieves a specific memory record by ID, reporting retired status if its lineage was deleted.
Finds memories linked via graph edges or cross-reference similarity.
Creates typed graph edges (`references`, `implements`, `supersedes`, `extends`, `contradicts`, `related_to`) between memories.
memory_createStores a new memory entry and automatically computes embeddings and cross-references.
memory_updateUpdates an existing memory record and refreshes its embeddings and graph links.
memory_deleteDeletes a memory and retires its entire supersession lineage so deleted facts do not reappear.
memory_create_todoCreates a structured TODO item tracked by status, priority, and category.
memory_create_issueLogs a structured issue memory with status, severity, and component metadata.
memory_store_documentParses a Markdown document into searchable typed fragment trees (`claim`, `plan_item`, `reference`, `risk`) under a root node.
memory_get_documentRetrieves either an entire structured document or filtered fragment kinds by document key.
memory_find_duplicatesIdentifies candidate duplicate memory pairs using similarity bounds and optional LLM verification.
memory_mergeMerges duplicate memories using `append`, `prepend`, or `replace` strategies.
memory_insightsGenerates activity summaries, stale TODO/issue alerts, consolidation candidates, and optional LLM pattern analysis.
memory_statsReports store statistics alongside the resolved bound database name and source for multi-DB verification.

Use cases

  • Absorb cross-session architecture decisions, bugs, and TODOs in Claude Code or Codex while tracking supersession lineage instead of piling up contradictory notes.
  • Serve isolated memory stores per repository from a single Streamable HTTP process via `MEMORA_DATABASES` (`/mcp/<store>`) with `agent` or `leader` tool profiles.
  • Store research reports and post-mortems as structured Markdown fragment trees (`memory_store_document`) for granular claim-level semantic search.
  • Explore memory clusters, action timelines, and RAG-powered chat visually through the built-in localhost graph server (`:8765/graph`) or Cloudflare Pages Cloud Graph.

Strengths

  • Supports local SQLite, encrypted S3/R2 sync, and Cloudflare D1 storage alongside stdio, SSE, and multi-database Streamable HTTP transports.
  • Role-based `MEMORA_TOOL_PROFILE` (`full` 44, `leader` 19, `agent` 12) genuinely removes unused schemas to cut the default 12,700-token tool payload.
  • Deduplicating `memory_absorb`, lineage retirement on delete, and fragment-integrity guards keep long-lived knowledge graphs clean.
  • Includes a live Mermaid-capable graph UI with streaming RAG chat plus optional Cloudflare Pages deployment and Neovim Telescope browser.

Limitations

  • Default OpenAI embeddings and LLM dedup require API keys, and pointing embeddings at OpenRouter silently degrades to TF-IDF unless `MEMORA_EMBEDDING_STRICT=1` is set.
  • The documented container launcher (`scripts/memora-instance.sh`) defaults to Apple's `container` CLI requiring Apple silicon running macOS 26.
  • Full 44-tool profile injects ~12,700 schema tokens into agent context unless narrowed via `MEMORA_TOOL_PROFILE`.

memora setup notes

  • Check MEMORA_ALLOW_ANY_TAG, MEMORA_DB_PATH, MEMORA_GRAPH_PORT in the memora configuration if startup or authentication fails.
  • memora's example uses stdio, while its catalog transports are stdio / streamable-http / sse; use the example's connection type.

Frequently asked questions

Install the PyPI package `pip install memora-mcp` (not bare `memora`), then add a `memora` stdio server entry launching `memora-server` in `.mcp.json` for Claude Code or `~/.codex/config.toml` for Codex CLI. Point it at local SQLite via `MEMORA_DB_PATH`, or configure `MEMORA_STORAGE_URI` for S3/R2 or Cloudflare D1.

Related MCP servers