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 4,722 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.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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,722 This file is loaded in full into every session.
When invoked 4,722 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.04722 $0.04722
Opus 5 $0.02361 $0.02361
Sonnet 5 $0.00944 $0.00944
Haiku 4.5 $0.00472 $0.00472

Measured yesterday against content hash 553d93981980, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 yesterday.

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 · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 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         # Build TypeScript → JavaScript (tsc)
bun run test          # Run tests with coverage (vitest)
bun run typecheck     # Strict type checking (includes --noUnusedLocals --noUnusedParameters)
bun run watch         # Watch mode for development
bun run clean         # Remove dist/ directory

# 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 ^3.1.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.7.2 (npm + plugin) — memoryjs ^3.1.0 (Node 24 better-sqlite3 prebuilds + llamacpp embedding provider).

Read the full file on GitHub · 219 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. yesterday Changed · +25 tokens per session 553d93981980
  2. 7d 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 2d ago), licensed MIT. It adds 4,722 tokens to every session, about $0.0236 per session on Opus 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

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens