mongodb-memory-mcp: Skill for Claude Code

.claude/skills/vector-index-management/SKILL.md

vector-index-management is a skill for Claude Code from jtv4k/mongodb-memory-mcp. It costs 88 tokens per session (2,846 once invoked), scanned A, original, Apache-2.0.

A guide for managing MongoDB search indexes as code. MongoDB indexes are structures that make database searches faster, and this covers vector search, text search, and ordinary indexes.

In plain words
What is it for?
Use it to define indexes, add searchable filter fields, check for drift, apply changes, and rebuild indexes when vector size changes.
Why use it?
It keeps local, test, and cloud databases reproducible and helps detect indexes that are missing, outdated, or not ready.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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 runs a file that does not travel with it, so clone the repository first. The line is ./scripts/ndocker.sh npm run db:indexes -- --dry-run.

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/skills/vector-index-management/SKILL.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 vector-index-management

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jtv4k/mongodb-memory-mcp/vector-index-management"><img src="https://agentmods.dev/badge/skills/jtv4k/mongodb-memory-mcp/vector-index-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,846 The whole file, excluding the scripts and references it only reads on demand.
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.00088 $0.02846
Opus 5 $0.00044 $0.01423
Sonnet 5 $0.00018 $0.00569
Haiku 4.5 $0.00009 $0.00285

Measured 9d ago against content hash e030e6613e9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

vector-index-management 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 9d 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/skills/vector-index-management/SKILL.md · 250 lines

How it starts

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

Vector and search index management

Three search indexes and seven standard indexes, all declared as code, all applied by one idempotent command. The Atlas UI is never the source of truth: an index clicked together by hand cannot be reproduced on Atlas Local, in CI, or on the next cluster.

Index Collection Type Definition
MONGODB_VECTOR_INDEX_NAME (default chunks_vector_index) chunks vectorSearch src/db/index-definitions/chunks.vector.json
MONGODB_TEXT_INDEX_NAME (default chunks_text_index) chunks search src/db/index-definitions/chunks.text.json
MONGODB_DOCUMENTS_TEXT_INDEX_NAME (default documents_text_index) documents search src/db/index-definitions/documents.text.json

Standard b-tree indexes live in STANDARD_INDEXES in src/db/indexes.ts, each carrying a why string naming the query it serves. If nothing runs that query, delete the index rather than keeping it "just in case".


The command

# read-only: what would change, and what is queryable right now
./scripts/ndocker.sh npm run db:indexes -- --dry-run

# apply, then wait for the search indexes to become queryable
./scripts/ndocker.sh npm run db:indexes

# apply and return immediately
./scripts/ndocker.sh npm run db:indexes -- --no-wait

# override MONGODB_INDEX_READY_TIMEOUT_MS for this run
./scripts/ndocker.sh npm run db:indexes -- --timeout 600000

It needs MONGODB_URI and MONGODB_DB_NAME in its environment. Inside the dev stack that is already true:

docker compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml -f docker/docker-compose.db.yml \
  run --rm app npm run db:indexes

Read the full file on GitHub · 250 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. 9d ago First seen · 250 lines · 88 tokens per session scan A e030e6613e9d

Subscribe to this mod's changes

vector-index-management is a skill published in the GitHub repository jtv4k/mongodb-memory-mcp (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,846 once invoked, about $0.0004 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 skills, from other repositories

dbx

DBX CLI for database schema exploration and read-only queries. When the user needs to list connections, explore tables, describe schemas, run queries, or generate AI-friendly schema context from DBX-managed databases. Do NOT use for write operations unless the user explicitly confirms with --allow-writes.

t8y2/dbx · 61 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens

nosqli

NoSQL injection — MongoDB operator injection ($ne, $gt, $where, $regex), CouchDB / Firebase / Redis attack patterns, auth bypass, blind extraction.

PurpleAILAB/Decepticon · 38 tokens

prisma-mongodb-upgrade

Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…

nitrocloudofficial/nitrostack · 95 tokens

byted-volcengine-mongodb

An operations tool for Volcengine MongoDB, a document database that stores data in flexible, JSON-like records. It can query managed MongoDB instances and return details for further explanation or diagnosis.

bytedance/agentkit-samples · 82 tokens

dynamic

Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.

ww-w-ai/bkit-claude-code · 38 tokens