memro
OfficialMemro is a long-term memory and multi-agent coordination server for coding agents, letting them store/search memories and safely share files or tasks.
Save typed memories (
semantic,profile,procedural,episodic), optionally with context metadata, atomic-fact extraction, visibility, and session/event dates.Search memories with
recall, token-budgeted recall, temporal search, and multi-session recall/synthesis.Manage memory lifecycle: update, delete/archive, export, list recent memories, view timelines and memory chains.
Analyze and resolve memory conflicts using contradiction summaries,
mee_reason,mee_resolve, and evolution cycles.Coordinate multiple agents on shared resources: claim, heartbeat, release, hand off files/tasks, log intents, and check conflicts before acting.
Inspect coordination state and server health with active work/context and system status tools.
Connects GitHub Copilot to Memro via MCP, enabling shared long-term memory of project context and preferences across sessions and AI tools.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Memro: long-term memory and coordination for coding agents
Your coding agents remember what earlier sessions learned, follow the rules you set in every tool, and stop overwriting each other's files. Claude Code, Codex, Cursor, Gemini CLI and OpenCode, in a plain terminal or in herdr, T3 Code and Orca.
npx memro-cli connect # memory and coordination: pick your tools, one sign-in
npx memro-cli init # or no account: rules in .memro/rules.md, hooks in every agent toolRemembers across sessions and tools: a decision, fix or preference saved in one tool comes back in the next session, in any tool. On LongMemEval's 496 questions, Memro's search puts every past conversation an answer needs in its top 10 results 90% of the time (retrieval only, method and caveats).
Rules every agent follows: "never…", "always…", "from now on…" in a prompt is saved to
.memro/rules.mdin your words and shown to every agent at every prompt. With the rule buried among 3,000 facts, agents shown it this way avoided the trap 150/150 times; search alone, 58/150 (benchmark).No collisions: agents claim a file before editing it. A second agent in the same checkout waits and is told who holds it;
git stash,reset --hardand anadd -Athat would sweep up another agent's unfinished work are refused; agents in other worktrees get a merge-conflict warning.See and message every agent:
npx memro-cli agentslists them with their status and files;senddelivers a message, and wakes an idle agent in its herdr pane, T3 Code thread or Orca terminal.Your team's context too: Slack, GitHub, Linear, Notion and 40+ more, hosted or self-hosted with Docker.
⭐ If Memro saves you from re-explaining your project, star the repo (top right): it helps other developers find it.
Source-available: free for personal, research and other non-commercial use, including self-hosting; commercial use runs on Memro Cloud or a commercial license.
Memro is licensed under the PolyForm Noncommercial License 1.0.0.
Free for non-commercial use: personal study, experiments, hobby projects, research, and testing without commercial application.
Commercial use: using Memro for commercial products or production services requires a managed subscription on Memro Cloud or an enterprise commercial license.
Getting a commercial license: see memro.co/pricing or contact
subal@memro.co.
github.com/memrohq/memro is the single public repository for Memro: the Go server, official SDKs (Python, JavaScript/TypeScript, Go), the MCP server and the CLI.
Claude Code plugin
/plugin install memro --marketplace memrohq/memroAdds Memro's MCP server and recalls the project's memory at the start of every session. See integrations/claude-code.
Related MCP server: contextforge-mcp
Quickstart
Option A: Memro Cloud with Claude Code, Cursor, or Codex (< 10 lines)
# 1. Connect installed agent tools via device login:
npx memro-cli connect
# 2. Check connection status:
npx memro-cli statusIn your assistant, say: "Remember that our primary database is PostgreSQL 16 with pgvector."
Restart your session and ask: "What database and extensions do we use?"
Option B: Self-Host with Docker Compose (Source Available)
Run the full Memro API server and PostgreSQL with pgvector on your own infrastructure:
Option 1: Clone the repository (works today)
git clone https://github.com/memrohq/memro && cd memro
cp .env.example .env # add OPENAI_API_KEY for hybrid search; set METRICS_TOKEN
docker compose up -d # API on :8081, dashboard on :5173, Postgres on 127.0.0.1:55432
curl http://localhost:8081/healthOption 2: Prebuilt images (no clone required, after v0.1.0 release)
curl -fsSL https://raw.githubusercontent.com/memrohq/memro/v0.1.0/docker-compose.release.yml -o docker-compose.yml && docker compose up -d
curl http://localhost:8081/health(Note: The prebuilt image one-liner downloads docker-compose.release.yml with pinned ghcr.io/memrohq/memro:0.1.0 and ghcr.io/memrohq/memro-dashboard:0.1.0 images, available once v0.1.0 is published.)
Backend API:
http://localhost:8081Dashboard:
http://localhost:5173Postgres Database: Port
55432on localhost (Option 1 clone) to avoid port 5432 collisions with existing local Postgres setups.Metrics Token: Set
METRICS_TOKEN(min 32 characters) in.envto protectGET /metricsandGET /stats/cache; the server logs a warning if unset.Verify Signatures: Verify published container images keylessly using Cosign:
cosign verify ghcr.io/memrohq/memro:0.1.0 \ --certificate-identity-regexp 'https://github.com/memrohq/memro/' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com
For complete deployment options, production topologies, and configuration tables, see docs/self-hosting.md.
See your memory
Architecture
┌──────────────────────────────────────┐
│ Clients & MCP Tools │
│ Claude Code · Cursor · Codex · SDKs│
└──────────────────┬───────────────────┘
│ HTTP REST / Stdio MCP
┌──────────────────▼───────────────────┐
│ Memro API (Go) │
│ Sovereign Ed25519 Identity · RRF │
└──────────────────┬───────────────────┘
│ SQL & Embeddings
┌──────────────────▼───────────────────┐
│ PostgreSQL 16 + pgvector │
│ pgvector Dense Search + tsvector FTS│
└──────────────────────────────────────┘Memro runs a Go HTTP API backed by PostgreSQL and pgvector. Search queries combine vector cosine similarity and full-text keyword search using Reciprocal Rank Fusion (RRF, $k=60$). Agents authenticate using sovereign Ed25519 keypairs solved via local proof-of-work (private keys never leave the host) or standard Bearer API tokens.
Repository Layout
memrohq/memro holds all components in one mono-repository:
Path | Description | Documentation |
Go API server, PostgreSQL + pgvector engine | ||
One-command connector ( | ||
Model Context Protocol server (stdio & SSE HTTP) | ||
Official Python SDK (PyPI: | ||
Official JavaScript / TypeScript SDK (npm: | ||
Official Go SDK ( | ||
Runnable integrations (Claude Code, Cursor, Codex) | ||
Reproducible benchmark harness and test suites | ||
Architecture, concepts, API reference, decisions |
Official SDKs & Runnable Examples
Python (sdk/python)
# PyPI (once published) or install from source: pip install ./sdk/python
pip install memrofrom memro import Agent
agent = Agent.create() # local sovereign Ed25519 identity
mem = agent.remember("The billing service was rewritten in Go", type="semantic")
results = agent.recall("billing service language")
print(results[0].content)See runnable script at examples/python/register_remember_recall.py.
JavaScript / TypeScript (sdk/js)
# npm (once published) or install from local build: npm install ./sdk/js
npm install @memro/sdkimport { Agent } from '@memro/sdk';
const agent = await Agent.create(); // local sovereign Ed25519 identity
const mem = await agent.remember('The billing service was rewritten in Go', { type: 'semantic' });
const results = await agent.recall('billing service language');
console.log(results[0].content);See runnable script at examples/typescript/index.js.
Go (sdk/go)
go get github.com/memrohq/memro/sdk/go@v0.1.0package main
import (
"context"
"fmt"
memro "github.com/memrohq/memro/sdk/go"
)
func main() {
ctx := context.Background()
agent, _ := memro.CreateAgent(nil)
mem, _ := agent.Remember(ctx, "The billing service was rewritten in Go", nil)
results, _ := agent.Recall(ctx, "billing service language", nil)
fmt.Println(results[0].Content)
}See runnable script at examples/go/main.go.
Integration Guides
Step-by-step guides for connecting coding tools with full session-restart memory verification:
Advanced Memory Features
Memro includes structured primitives and cognitive graphs beyond basic vector search:
Typed Memories: Categorize observations as
semantic(facts),episodic(events/conversations),procedural(runbooks/recipes), orprofile(agent guardrails). See Memory Concepts.Temporal Search & Evolution: Query memories with timestamp weighting and trace how beliefs evolve over time. See API Reference.
Conflict Analysis & Resolution: Identify contradictory facts across sessions and mark superseded memories using
resolve_conflict(). See Conflict Resolution.Reasoning Graphs: Trace memory provenance, causal chains, and dependencies between stored observations. See Opinionated Guide.
Measurable Verification & Benchmarks
Memro publishes empirical evaluations and methodology:
LongMemEval Benchmark: Evaluated across 500 questions testing multi-session recall and knowledge updates. See LongMemEval Report.
Empirical Failure & Boundary Evaluations: Runnable test suite for identity boundaries, contradictory facts, stale facts, and distractor rejection. See Measurable Evaluations.
Clean-Machine Verification: Full transcript verifying every quickstart command in a container without local caches. See Verification Transcript.
Contributing & Development
# 1. Start PostgreSQL with pgvector
docker compose up -d db
# 2. Run backend API server
cd server
DATABASE_URL=postgres://memro:memro@localhost:55432/memro go run ./cmd/memro-api
# 3. Run tests
MEMRO_TEST_DATABASE_URL=postgres://memro:memro@localhost:55432/memro go test -race ./...Please review CONTRIBUTING.md and SECURITY.md before submitting pull requests.
Repository: github.com/memrohq/memro · Documentation: https://memro.co · Community: Discord License: Source available under PolyForm Noncommercial 1.0.0. Free for non-commercial use; commercial use requires Memro Cloud or a commercial license.
Available Tools
26 toolsclaim_taskAInspect
Claim a file or task with intent to work on it. Claims are shared with agents in the same account/space and expire after the TTL.
Inputs: intent (required), resource (required), ttl, holder_session.
delete_memoryAInspect
Forget one memory by ID, e.g. when the user asks you to forget it. It is archived (hidden from search, kept in its history) and can be restored.
Inputs: memory_id (required), reason.
export_memoriesBInspect
Export all memories for the agent.
Inputs: no named parameters.
find_contradictionsAInspect
Summarize contradictions the memory engine has found: how many beliefs were updated by newer memories and how many are still unresolved. Use mee_resolve to settle a specific pair.
Inputs: no named parameters.
generate_atomic_factsCInspect
Break a longer narrative into atomic facts for better searchability. Automatically extracts entities and relationships.
Inputs: text (required), context, auto_save.
get_active_contextBInspect
Get coordination context (claims/intents) for a specific resource in the shared account/space.
Inputs: resource (required).
get_active_workBInspect
Get ALL active claims and intents for the shared account/space.
Inputs: no named parameters.
get_memory_chainAInspect
Get the knowledge chain for a memory, showing how it evolved. Returns updates (state changes), extends (refinements), and derives (inferences).
Inputs: memory_id (required).
get_recent_memoriesBInspect
List the most recently saved memories (newest first), e.g. to review what was stored.
Inputs: type, limit.
get_system_statusAInspect
Check the health and status of the Memro MCP server and its connections.
Inputs: no named parameters.
get_temporal_statsAInspect
Get statistics about your memories: totals for today, this week and this month, average days between memories, and the count per memory type.
Inputs: no named parameters.
get_timelineBInspect
Get the full historical timeline of a memory, including all its versions and updates.
Inputs: memory_id (required).
handoff_taskCInspect
Atomically summarizes work and releases a resource claim for the next agent.
Inputs: summary (required), resource (required), next_agent_id, holder_session.
heartbeat_taskBInspect
Extend an active lease on a resource so it does not expire.
Inputs: resource (required), ttl, holder_session.
log_intentBInspect
Declare your non-blocking intention for a resource (shared with agents in the same account/space).
Inputs: intent (required), resource (required), ttl, holder_session.
mee_evolveBInspect
Trigger a full evolution cycle (decay, consolidation, conflict detection) for the current agent.
Inputs: no named parameters.
mee_reasonCInspect
Trigger the Memory Evolution Engine to reason about a specific query using its internal knowledge graph.
Inputs: query (required).
mee_resolveBInspect
Resolve a detected conflict between two memories using evidence-based scoring.
Inputs: memory_a_id (required), memory_b_id (required).
pre_action_checkCInspect
Check for conflicts or overlaps before performing an action against shared leases and intents.
Inputs: intent (required), resource (required), holder_session.
recallBInspect
Search the user's long-term memory. Call it at the start of a task and before answering questions about earlier work, preferences or decisions.
Inputs: query (required), type, limit, token_budget.
recall_multi_sessionAInspect
Recall memories across multiple sessions with synthesis. Connects related facts from different conversations and resolves contradictions.
Inputs: query (required), limit, include_all_sessions.
release_taskCInspect
Release a claimed resource and log outcome. Releases the lease in the shared account/space.
Inputs: resource (required), status, holder_session.
rememberBInspect
Save something worth knowing in future sessions: a preference, decision, correction, or lasting fact about the user or their project. One short, self-contained sentence per memory. Never store secrets.
Inputs: content (required), type, is_atomic, event_date, +2 more.
remember_with_contextCInspect
Store a new memory with rich metadata context (file, git, function).
Inputs: content (required), type, event_date, session_id, +1 more.
search_temporalBInspect
Search memories with temporal reasoning. Finds relevant memories considering both when the conversation happened and when events actually occurred. Perfect for multi-session synthesis and temporal queries.
Inputs: query (required), limit, after_date, atomic_only, +2 more.
update_memoryAInspect
Correct a memory that is out of date or wrong: saves the new content as a new version and archives the old one, keeping both in its history. Prefer this over saving a contradicting memory.
Inputs: reason (required), content (required), memory_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
Most tools are distinct, but the retrieval surface overlaps heavily: recall, recall_multi_session, and search_temporal all read long-term memory with only subtle framing differences, and remember vs remember_with_context differ only by metadata. The MEE cluster (find_contradictions, mee_resolve, mee_reason, mee_evolve) is related enough that an agent may pick the wrong entry point, though descriptions do help.
The dominant pattern is consistent snake_case verb_noun (get_timeline, claim_task, update_memory), which makes the set readable. Deviations are minor: bare verbs remember/recall and the mee_ prefixed namespace break the pattern slightly.
At 26 tools the surface is heavy for a single server and spans two domains (memory lifecycle and multi-agent lease coordination), so agents must reason across a large space. Several MEE trigger tools (mee_reason, mee_evolve, find_contradictions) feel like internal engine knobs rather than necessary top-level operations.
Memory coverage is strong: create (remember, remember_with_context), read/search (recall, search_temporal, get_recent_memories), update, archive, export, history/versioning, and stats. Minor gaps: delete_memory claims memories 'can be restored' but no restore or list-archived tool exists, and there is no bulk/paginated listing or tag/entity filter.
Maintenance
Related MCP Connectors
A personal memory you control, shared across Claude, ChatGPT, Cursor and any MCP client.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Shared AI memory. ChatGPT, Claude, Cursor and any MCP app read and write the same memory.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Related MCP Servers
- AlicenseAqualityCmaintenancePersistent cloud memory for AI coding assistants. 28 MCP tools for semantic search, auto-learning, task tracking, correction patterns, knowledge graphs, and session replay across Claude Code, Cursor, Windsurf, Cline, and any MCP client. Encrypted at rest. Team shared memory with author attribution.35405 npm7MIT
- AlicenseAqualityBmaintenancePersistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.15344 npm2MIT
- FlicenseNot gradedqualityDmaintenancePersistent memory server for AI assistants with semantic search and three-layer context (global, project, personality). Works with MCP-compatible AI tools like Claude Code, Cursor, Continue, Cline, and more.1-
- AlicenseAqualityCmaintenanceShared, versioned memory for your agents across Claude Code, Cursor, Kiro and Grok. One MCP server, sourced answers, full history.3MIT