agent-skills GEMINI.md

agent-skills GEMINI.md is an instructions file for Gemini CLI from mongodb/agent-skills. It costs 229 tokens per session, scanned A, original, Apache-2.0.

Instructions for configuring an extension that connects an AI assistant to MongoDB, a database commonly used to store application data. It describes connection strings, Atlas credentials, local setup, and read-only operation.

In plain words
What is it for?
Use it to connect to MongoDB directly, connect through Atlas credentials, use a local database, or enable read-only access.
Why use it?
It explains the configuration choices needed before database tools can connect. It also points to separate setup guidance when configuration help is needed.

Instructions file for Gemini CLI

About the project

MongoDB Agent Skills is an official collection of skills and plugins that help AI coding agents work with MongoDB databases, including Atlas and self-managed deployments. Developers use it for query writing, schema design, query optimization, Atlas Search, and vector search. The catalogue entries are MongoDB’s own agent skills, plugins, and setup instructions.

mongodb/agent-skills · 181 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mongodb/agent-skills/gemini-md
Clone the repo
git clone --depth 1 https://github.com/mongodb/agent-skills

Made for: Gemini CLI.

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 agent-skills GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mongodb/agent-skills/gemini-md.svg)](https://agentmods.dev/instructions/mongodb/agent-skills/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/mongodb/agent-skills/gemini-md"><img src="https://agentmods.dev/badge/instructions/mongodb/agent-skills/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 229 This file is loaded in full into every session.
When invoked 229 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00229 $0.00229
Opus 5 $0.00114 $0.00114
Sonnet 5 $0.00046 $0.00046
Haiku 4.5 $0.00023 $0.00023

Measured 5d ago against content hash 79ea092def60, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-skills GEMINI.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 5d 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.

GEMINI.md · 22 lines

What it actually says

MongoDB Gemini Extension

This extension provides tools for managing and optimizing MongoDB databases using the official MongoDB MCP server.

Configuration

The extension may require authentication to connect to a MongoDB instance. You can configure this using one of the following methods:

  1. Connection String (Direct Connection): Set MDB_MCP_CONNECTION_STRING to the MongoDB connection string (e.g., mongodb+srv://user:[email protected]/).

  2. Atlas Admin API Credentials: Set MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET for MongoDB Atlas Admin API access.

  3. Atlas Local: If Docker is installed, the Atlas Local tools can be used to create and connect to a local MongoDB instance. In this case, no additional configuration is required.

  4. Read-Only Mode: Set MDB_MCP_READ_ONLY=true to enable read-only mode for the MCP server.

If the user needs help configuring the MCP server, use the mongodb-mcp-setup skill to guide them through the process.

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. 5d ago First seen · 22 lines · 229 tokens per session scan A 79ea092def60

Subscribe to this mod's changes

agent-skills GEMINI.md is an instructions file published in the GitHub repository mongodb/agent-skills (181 stars, last pushed 2d ago), licensed Apache-2.0. It adds 229 tokens to every session, about $0.0011 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-30.