memory-mcp: Instructions file for Claude Code

CLAUDE.md

memory-mcp CLAUDE.md is an instructions file for Claude Code from danielsimonjr/memory-mcp. It costs 5,380 tokens per session, scanned A, original, MIT.

A project instruction file for an MCP server that exposes tools from the MemoryJS knowledge-graph library. A knowledge graph stores connected facts and entities so they can be searched and related.

In plain words
What is it for?
Use it when developing the memory server, running individual tests, skipping benchmark tests, or building its extra tools.
Why use it?
It collects the commands needed to install, build, test, type-check, and run the server and its standalone tools.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is danielsimonjr/memory-mcp's own configuration. It tells Claude Code how to work on memory-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything memory-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to danielsimonjr/memory-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/danielsimonjr/memory-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/danielsimonjr/memory-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/danielsimonjr/memory-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/danielsimonjr/memory-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/danielsimonjr/memory-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/danielsimonjr/memory-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/danielsimonjr/memory-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/danielsimonjr/memory-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,380 This file is loaded in full into every session.
When invoked 5,380 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05380 $0.05380
Opus 5.5 $0.02152 $0.02152
Sonnet 5.5 $0.01076 $0.01076
Haiku 4.5 $0.00538 $0.00538

Measured 12d ago against content hash 36bc630b298e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 236 lines

How it starts

The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Build & Development Commands

bun install           # Install all dependencies (bun.lock is authoritative)
bun run build         # Remove dist/, then build TypeScript → JavaScript (tsc)
bun run test          # Run tests with coverage (vitest)
bun run typecheck     # Strict type checking (includes --noUnusedLocals --noUnusedParameters)
bun run typecheck:tests  # The same checks for src and tests/ (tsconfig.test.json; typecheck skips tests/)
bun run watch         # Watch mode for development
bun run clean         # Remove dist/ directory
bun run check:pack    # Fail when the npm tarball holds a build file that has no source
bun run check:bundle  # Fail when the committed bundle reports a version that differs from package.json
bun run check:bundle-content  # Fail when the committed bundle differs from a fresh build (run bun install first)

# Run a single test file
bunx vitest run tests/e2e/tools/entity-tools.test.ts

# Run tests matching a pattern
bunx vitest run -t "should create entities"

# Run server locally (after building) — Node is the shipped runtime
node dist/index.js

# Skip benchmark tests
# PowerShell:
$env:SKIP_BENCHMARKS=1; bun run test
# Bash/Unix:
SKIP_BENCHMARKS=1 bun run test

# Standalone tools (in tools/ directory — still npm + package-lock.json)
bun run tools:install # Install dependencies for all standalone tools
bun run tools:build   # Build all standalone tools

Architecture Overview

This is an MCP protocol wrapper around the @danielsimonjr/memoryjs library, exposing 241 knowledge graph tools via the Model Context Protocol. After the Phase 13 extraction, this repo contains only 5 TypeScript source files — all core graph logic lives in memoryjs (currently ^4.2.0). Phase 15 (v12.2.0) added 23 tools surfacing memoryjs v1.14+ features (bitemporal validity, OCC, RBAC, procedural memory, active retrieval, causal reasoning, world model). Phase 16 (v12.3.0) added 53 tools surfacing memoryjs v2.1.0 — do_not_remember exclusions (5), decision rationale + ADR markdown dual-write (10), structured project context (12), heuristic guidelines (10), tool affordance + ToolCallObserver pipeline (11), observation dedup (2), spell correction (3). Releases after Phase 16 added 12 more tools — a small "active project scope" pair (v12.3.2 backport) and a v12.5.0 engineering/diagnostics category. v12.7.0 upgraded to memoryjs 3.0.0 and added 16 tools — event memory (5), reconstructive memory (3 + 2 snapshot persistence), relation consolidation (2), agent reflection (4) — plus v3 graph-channel/explain options on hybrid_search, bringing the total to 241. Latest: v12.10.1 (plugin) — memoryjs ^4.2.0. loadGraph() now returns a read-only borrowed view (deep-frozen outside production), REST 4xx bodies use fixed messages, API keys are project-scoped, and RateLimiter gained TTL/LRU bounds. None of those surfaces are reachable from this wrapper except loadGraph(), whose contract is pinned by tests/unit/storage-readonly-contract.test.ts.

Read the full file on GitHub · 236 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +1 lines · +114 tokens per session 36bc630b298e
  2. 13d ago Changed · -2 tokens per session 4ee022dbfac0
  3. 14d ago Changed · +1 lines · +46 tokens per session a51bb9b47231
  4. 16d ago Changed · +15 lines · +448 tokens per session 50c69d380aa6
  5. 17d ago Changed fc93ade386f8
  6. 18d ago Changed bfb5fb4428cc
  7. 21d ago Changed c37d7c1dad8c
  8. 1mo ago Changed · +52 tokens per session 132a5c748056
  9. 2mo ago Changed · +25 tokens per session 553d93981980
  10. 2mo ago First seen · 219 lines · 4,697 tokens per session scan A aa6e71872fe5

Subscribe to this mod's changes

memory-mcp CLAUDE.md is an instructions file published in the GitHub repository danielsimonjr/memory-mcp (3 stars, last pushed 4d ago), licensed MIT. It adds 5,380 tokens to every session, about $0.0215 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

memory-mcp CLAUDE.md compared with instructions from other repositories

memory-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-mcp CLAUDE.mddanielsimonjr/memory-mcpInstructions file34d agoMITA5,380Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode