← Back to work
// AI tooling

Shared Memory MCP

Persistent memory that every MCP agent shares. Deploy it once, connect Claude Code, Codex, Cursor or any other MCP client, and what one agent saves the others can find.

View on GitHub Open source
Type
Open source
Category
MCP server · AI agents
Status
Open source, in daily use
The challenge

Coding agents forget everything between sessions, and they don't share what they learn. A decision made with Claude Code on Monday is invisible to Codex on Tuesday, so the same context gets explained again and again.

The solution

Shared Memory MCP is a Model Context Protocol server. Point every MCP client at the same URL, and a memory one agent saves is searchable by all of them.

Search combines full-text keywords, exact substrings and embeddings, because no single method finds a half-remembered note. An agent can find a memory by an exact phrase, a file name or a paraphrase.

Seven tools cover saving, searching, listing, reading, updating, deleting and stats. When an agent saves something, the reply lists similar memories already stored, so it updates or merges instead of adding a duplicate.

Tech stack
Node.js + TypeScript
One small server.
MCP
Works with any client that speaks the Model Context Protocol.
Postgres + pgvector
One table holds the memories, their full-text index and their embeddings.
OpenRouter or OpenAI
Embeddings for search by meaning.
Vercel or Docker
Runs serverless or in a container on your own server.
Results
7
MCP tools
1
Postgres table
MIT
Open source

Shared Memory MCP is open source on GitHub. Every agent we run (Claude Code, Codex, Cursor and others) reads and writes the same store, across machines.

Need something
similar?

MCP servers, agent tooling and AI workflows for your team. Let's talk about what your agents need.

Book a discovery call