mcp-memories
Captures code build sessions and publishes them to a shared team knowledge base, making past work discoverable via semantic search.
README
mcp-memories
An MCP server that captures code build sessions and publishes them to a shared team knowledge base, making past work discoverable via semantic search.
What it does:
- Auto-captures every agent session via IDE hooks (Cursor, Claude Code)
- When you call
complete_session, it summarizes with Grove AI and embeds with Voyagevoyage-code-4 - Team members search with natural language — vector search + Voyage reranking returns the most relevant past builds
Setup
1. Install and build
npm install
npm run build
2. Configure environment
cp .env.example .env
# Fill in MONGODB_URI, MDB_GROVE_API_KEY, GROVE_BASE_URL, VOYAGE_API_KEY, MEMORIES_AUTHOR
3. Register the MCP server
Add to your IDE's MCP config (e.g. ~/.cursor/mcp.json or Claude Desktop config.json):
{
"mcpServers": {
"mcp-memories": {
"command": "node",
"args": ["/path/to/mcp-memories/dist/index.js"],
"env": {
"MONGODB_URI": "mongodb+srv://...",
"MEMORIES_DB": "mcp_memories",
"MDB_GROVE_API_KEY": "...",
"GROVE_BASE_URL": "...",
"GROVE_MODEL": "claude-3-7-sonnet",
"VOYAGE_API_KEY": "...",
"MEMORIES_AUTHOR": "your.name"
}
}
}
}
4. Set up auto-capture hooks
Cursor — hooks.json is already in .cursor/hooks.json. It fires the capture script on every stop event automatically.
Claude Code — merge the snippet in hooks/claude/settings-snippet.json into your ~/.claude/settings.json, updating the path to point to this repo.
Tools
| Tool | When to use |
|---|---|
capture_activity |
Called automatically by hooks, or manually to record what you're working on |
complete_session |
Call when done — triggers summarization + embedding and publishes to the team |
search_memories |
Find past builds relevant to what you're about to start |
get_overview |
See what the team has built, by language / tag / repo |
list_recent |
Browse the most recently published sessions |
Typical workflow
# During a session — automatic (hook fires) or manual:
capture_activity(session_id="abc123", conversation_context="Built JWT auth middleware...")
# When done:
complete_session(session_id="abc123", final_notes="Ended up using RS256 instead of HS256 because...")
# Later, someone else starting similar work:
search_memories(query="JWT authentication middleware Node.js")
MongoDB Atlas setup
The server creates its own indexes on startup, including the Atlas Vector Search index (memories_vector_index, 1024 dimensions, cosine similarity, voyage-code-4). You need an Atlas cluster with Vector Search enabled.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.