edgemem
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@edgememwrite memory/stack.md with our tech stack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
edgemem
Team memory for Claude Code — store your conventions, decisions, and context in the cloud so every agent session starts with full project knowledge. No more repeating yourself.
The problem
Claude Code forgets everything when a session ends. Every day, every developer re-explains the same things:
Which ORM the project uses
Which patterns are required
Which architectural decisions were made and why
What a new dev needs to know on day one
CLAUDE.md helps — but it requires a commit to update, the agent can't write to it, and it grows until it fills the context window.
edgemem fixes this. Memory lives in Supermemory cloud. Every developer shares it. The agent can read and write it. No commits required.
Related MCP server: Cairntir
How it works
You write a convention once
↓
Stored in Supermemory cloud
↓
Every Claude Code session → edgemem loads what's relevant automatically
↓
Agent learns something new → writes it back to the cloud
↓
Next session, next developer → Claude already knows3 ways Claude receives memory:
Mode | How | Best for |
Mode 1 — File sync |
| Getting started, simplest setup |
Mode 2 — MCP server | Claude has 5 live tools to read/write memory during the session | Active development |
Mode 3 — Hook | Memory is injected automatically at session start, no commands needed | Zero-effort, always-on |
All three modes share the same Supermemory container — one source of truth.
Quick start
1. Install and initialize
npm install -g edgemem
export SUPERMEMORY_API_KEY=sm-...
export EDGEMEM_CONTAINER=myproject-team
npx edgemem init2. Write your first memory
npx edgemem write "memory/stack.md" "
Database: PostgreSQL 16
ORM: Drizzle (not Prisma)
Package manager: pnpm
Framework: Next.js App Router
"3. Load memory into Claude
npx edgemem sync # pull memory → .claude/memory/
claude # Claude reads it automatically via CLAUDE.mdEvery teammate with the same SUPERMEMORY_API_KEY gets the same context immediately.
Setup modes
Mode 1 — File sync
Pull memory down as local files and reference them from CLAUDE.md:
npx edgemem sync --output .claude/memoryAdd to CLAUDE.md:
@.claude/memory/stack.md
@.claude/memory/conventions.mdLimitation: requires running sync to pick up new memory. Agent cannot write back.
Mode 2 — MCP server (recommended)
Claude gets 5 tools for reading and writing memory in real time during every session.
Add .mcp.json to your project root:
{
"mcpServers": {
"edgemem": {
"command": "npx",
"args": ["@edgemem/mcp"],
"env": {
"SUPERMEMORY_API_KEY": "${SUPERMEMORY_API_KEY}",
"EDGEMEM_CONTAINER": "myproject-team"
}
}
}
}Claude now has mem_read, mem_write, mem_append, mem_grep, and mem_list available every session.
Mode 3 — Hook (zero effort)
Memory is injected automatically at session start. No commands, no prompting.
cp -r examples/mode3-hook/.claude .claude
export EDGEMEM_CONTAINER=myproject-teamBuilt for teams
All developers share the same container. One person writes a convention — everyone's agent knows immediately:
# Developer A — Monday
npx edgemem append "memory/conventions.md" "Use server actions for all mutations" --force
# Developer B — Tuesday, different machine
claude
# → Claude already knows about server actions. No sync. No commit.Onboarding a new developer:
git clone your-repo
export SUPERMEMORY_API_KEY=sm-... # from team 1Password
claude
# → Claude knows the entire project context from day oneSecurity
Protected core files
These files are read-only for the agent. Only a human can write to them with --force:
File | Purpose |
| Tech stack and versions |
| Coding conventions |
| Architecture decisions |
| New developer guide |
# Human override
npx edgemem write "memory/stack.md" "updated stack" --force
# Agent attempt → error before any API call is madePII scanner
Every write and append scans for credentials and redacts them before reaching the cloud:
Pattern | Redacted as |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write signatures
Every write is stamped with author and timestamp:
<!-- edgemem-entry-start | author: alice | timestamp: 2026-06-08T10:33:10Z -->
Use Drizzle ORM. Run migrations with pnpm db:migrate.
<!-- edgemem-entry-end -->Author is resolved from EDGEMEM_AUTHOR env var, falling back to $USER.
Offline resilience
If Supermemory is unreachable, edgemem falls back to local cache — Claude Code never crashes:
Operation | Behavior |
| Returns latest cached version + warns to stderr |
| Writes to local cache + warns to stderr |
| Returns empty string + warns to stderr |
| Returns empty array |
Cache lives at ~/.edgemem/cache/<container>/.
Smart context chunking
mem_grep runs a semantic search then returns only the relevant sections — so a large memory file never floods the context window:
Splits document into sections by heading or paragraph
Scores each section by query relevance (heading match = 3×)
Returns top sections within a 4,000-token budget
Prepends a warning when sections are dropped
Audit log
Every operation is appended to .claude/memory/edgemem.log in JSON Lines format:
{"timestamp":"2026-06-08T10:33:10Z","action":"read","file_path":"memory/stack.md","status":"ok","author":"alice"}
{"timestamp":"2026-06-08T10:33:11Z","action":"write","file_path":"memory/auto-saved.md","status":"pii-redacted","detail":"redacted: stripe-live-key","author":"ci-bot"}
{"timestamp":"2026-06-08T10:33:12Z","action":"read","file_path":"memory/stack.md","status":"cache-hit","author":"bob"}CLI reference
# Setup
npx edgemem init [--container <name>] [--api-key-env <name>]
# Mode 1 — pull memory to local files
npx edgemem sync [--output <dir>] [--container <name>]
# Read / write
npx edgemem read <path> [--container <name>]
npx edgemem write <path> <content> [--container <name>] [--force]
npx edgemem append <path> <content> [--container <name>] [--force]
# Search
npx edgemem grep <query> [--path <path>] [--container <name>]
npx edgemem list [--path <path>] [--container <name>]
# Mode 3 — output memory context for hook injection
npx edgemem inject [--container <name>] [--format context|json]--force bypasses write protection on core files. Intended for human use only.
MCP tools
Tool | Description | Core-file safe? |
| Read a file from team memory | Read-only |
| Write or overwrite a memory file | Requires |
| Append to a memory file | Requires |
| Semantic search with chunked results | Read-only |
| List all memory files | Read-only |
Memory file conventions
memory/stack.md — tech stack, versions, tools [protected]
memory/conventions.md — coding conventions and patterns [protected]
memory/decisions.md — architecture decisions and rationale [protected]
memory/onboarding.md — guide for new developers [protected]
memory/auto-saved.md — conventions captured automatically [writable]
memory/<anything>.md — your own custom files [writable]Configuration
Config is resolved in this order (first match wins):
Environment variables
.claudercin the project root~/.edgemem/config.json(global default)
Variable | Purpose |
| API key for Supermemory |
| Container name shared by the team |
| Identity stamped on every write (falls back to |
| Set to |
.clauderc:
{
"container": "myproject-team",
"apiKeyEnv": "SUPERMEMORY_API_KEY"
}Development
pnpm install
pnpm build # compile all packages
pnpm test # run all 167 testsPackage structure
packages/
core/ @edgemem/core — MemClient, guard, cache, audit, chunker
mcp/ @edgemem/mcp — MCP server (5 tools)
cli/ edgemem — CLI (init, sync, read, write, append, grep, list, inject)
examples/
mode1-claudemd/ file sync example
mode2-mcp/ .mcp.json + CLAUDE.md instructions
mode3-hook/ .claude/settings.json + auto-save hookTest coverage
Package | Tests |
| 107 |
| 30 |
| 30 |
Total | 167 |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnuwatThisuka/edgemem'
If you have feedback or need assistance with the MCP directory API, please join our Discord server