memory-extension
Use this skill to store the chat history to MongoDB
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill to store the chat history to MongoDB
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Memory Extension |
| description | Use this skill to store the chat history to MongoDB |
This extension provides a persistent memory layer for the Gemini CLI using MongoDB Atlas. It enables the AI to "remember" previous interactions, user preferences, and project-specific context across different terminal sessions.
store_memorySaves a specific fact or interaction to the long-term database.
fact (string), category (string: 'preference', 'project', 'snippet')recall_contextSearches the database for information relevant to the current prompt.
query (string)$vectorSearch against the memory collection.clear_sessionWipes the short-term memory for the current session ID.
Add your MongoDB connection string to your environment variables:
The MONGODB_URI value will be read from the mongo.config.json file.
EXPORT MONGODB_URI="mongodb+srv://<user>:<password>@cluster.mongodb.net/gemini_memory"
EXPORT VECTOR_INDEX_NAME="vector_index"
This skill helps to navigate tools available on MongoDB MCP Server.
This skill integrates the Gemini CLI with MongoDB Atlas and Google Cloud Application Design Center (ADC) to automate performance tuning, schema validation, and infrastructure scaling directly from your terminal.