mongodb-memory-mcp: Instructions file for Claude Code

CLAUDE.md

mongodb-memory-mcp CLAUDE.md is an instructions file for Claude Code from jtv4k/mongodb-memory-mcp. It costs 7,556 tokens per session, scanned A, original, Apache-2.0.

A set of project instructions for contributing to the mongodb-memory-mcp repository. It documents its TypeScript setup, container-only development workflow, environment rules, and database index conventions.

In plain words
What is it for?
Use it when developing, testing, configuring, or reviewing changes in the mongodb-memory-mcp project.
Why use it?
It prevents contributors or coding agents from running tools in the wrong place, exposing secrets, or changing database indexes outside the project’s source-controlled process.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is jtv4k/mongodb-memory-mcp's own configuration. It tells Claude Code how to work on mongodb-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 mongodb-memory-mcp configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { createKnowledgeService } from '../services/index.js';.

Reuse

Borrowing it

Nothing to install: this file belongs to jtv4k/mongodb-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/jtv4k/mongodb-memory-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jtv4k/mongodb-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 mongodb-memory-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jtv4k/mongodb-memory-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/jtv4k/mongodb-memory-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jtv4k/mongodb-memory-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jtv4k/mongodb-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 mongodb-memory-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jtv4k/mongodb-memory-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jtv4k/mongodb-memory-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,556 This file is loaded in full into every session.
When invoked 7,556 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.07556 $0.07556
Opus 5.5 $0.03022 $0.03022
Sonnet 5.5 $0.01511 $0.01511
Haiku 4.5 $0.00756 $0.00756

Measured 2mo ago against content hash d5b5372aa3ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mongodb-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 2mo 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 · 565 lines

How it starts

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

CLAUDE.md — MongoDB Memory MCP

Operating notes for anyone — an AI coding session or a human contributor — working in this repository. Read this before touching anything: it is the accumulated set of decisions and conventions the code cannot state for itself.


0. Hard rules — violate none of these

  1. All Node tooling runs inside a container, never on the host. No host node, npm, npx, tsc, vitest or eslint. Use ./scripts/ndocker.sh <cmd> from the project root, or docker compose ... run --rm app <cmd>. The wrapper pins HOME, the XDG directories, TMPDIR and the npm cache to paths under the bind-mounted project (.container-home/ and .npm-cache/, both gitignored), so tooling never writes outside the repository.
  2. .env is never committed and never read directly. .env.example is the checked-in template. Config reaches the process through the environment (env_file in compose, --env-file, or exported vars); src/config/env.ts reads process.env and nothing else.
  3. Index definitions are code. They live in src/db/index-definitions/*.json and are applied by npm run db:indexes. Never create or edit a search index in the Atlas UI — the UI is not the source of truth and cloud Atlas would immediately drift from Atlas Local.
  4. Chunks never live in an array on the parent document. They are their own collection (unbounded-array anti-pattern; also the 16MB document limit and the fact that a vector index cannot index an array of subdocuments usefully).
  5. Every /api/* route requires the bearer token, reads included. This is a product decision, not an oversight: the process is network-reachable and an unauthenticated read surface hands the whole knowledge base to anyone who can reach the port. The direct consequence is that the server-rendered web pages call KnowledgeService in-process rather than fetching /api/*, so no token ever reaches a browser. /healthz, /readyz and static assets are the only open routes.

Read the full file on GitHub · 565 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. 2mo ago First seen · 565 lines · 7,556 tokens per session scan A d5b5372aa3ab

Subscribe to this mod's changes

mongodb-memory-mcp CLAUDE.md is an instructions file published in the GitHub repository jtv4k/mongodb-memory-mcp (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 7,556 tokens to every session, about $0.0302 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

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

mongodb-memory-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mongodb-memory-mcp CLAUDE.mdjtv4k/mongodb-memory-mcpInstructions file02mo agoApache-2.0A7,556Claude 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