Install
$ agentstack add mcp-caiowilson-mcp-memento ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
memento-mcp
[](https://github.com/caiowilson/MCP-memento/releases) [](https://github.com/caiowilson/MCP-memento/releases/tag/server%2Flatest) [](https://github.com/caiowilson/MCP-memento/releases) [](https://go.dev/) [](./LICENSE)
[](https://ko-fi.com/caiowilson)
A local-first MCP server that gives AI agents durable, high-signal memory for your repository: indexed code context, semantic relationships, fast search, and explicit notes that persist across sessions.
fun easy tl;dr version of the change logs: Nomit Memento
Languages
- English:
README.md - Brazilian Portuguese: [
README.pt-BR.md](./README.pt-BR.md)
Documentation
- Project docs: [
docs/README.md](./docs/README.md) - Generic MCP clients: [
docs/clients.md](./docs/clients.md) - VS Code usage: [
docs/vscode.md](./docs/vscode.md) - VS Code extension: [
vscode-extension/README.md](./vscode-extension/README.md) - ADR guide: [
docs/adr/README.md](./docs/adr/README.md) - ADR index and decisions: [
docs/adr/ADRs.md](./docs/adr/ADRs.md)
What It Does
- Exposes MCP tools for repo operations:
repo_list_files,repo_read_file,repo_search,repo_related_files,repo_context,repo_switch_workspace - Maintains an on-disk code index per repository for fast, bounded context retrieval
- Stores explicit repo-scoped notes:
memory_upsert,memory_search,memory_clear - Supports a companion VS Code extension that installs and configures the server
How It Works
- The server starts over stdio JSON-RPC and registers MCP tools.
- It builds and updates a local chunk index under
~/.memento-mcp/. - Change detection is incremental:
- Default (
auto): filesystem watcher first, fallback togit statuspolling for git repos if watcher fails - Configurable via
MEMENTO_CHANGE_DETECTOR(auto/fs/git)
- Context tools combine:
- Indexed chunks and scoring
- Language-aware relationships (Go, TS/JS, PHP)
- Hard byte and line limits for LLM context safety
- Explicit notes are stored separately as durable, repo-scoped memory.
Project Structure
cmd/server/- entrypointinternal/mcp/- MCP server and tool handlersinternal/indexing/- chunking, manifest, search, incremental indexinginternal/app/- app lifecycle wiringvscode-extension/- companion extension (installer and MCP config UX)docs/- usage docs and ADRs
Contributing
Prerequisites
- Go
1.25.5 - Node.js (only if working on
vscode-extension/)
Local Development
git clone https://github.com/caiowilson/MCP-memento.git
cd MCP-memento
make build
./bin/memento-mcp
Generic Client Onboarding
./bin/memento-mcp print-config
./bin/memento-mcp print-guidance
Run Tests
go test ./...
VS Code Extension Development
cd vscode-extension
npm install
npm run build
Contribution Flow
- Create a branch from
main. - Make focused changes with tests and docs updates.
- Run
go test ./...(and extension build/tests when applicable). - Open a PR with:
- Problem statement
- Approach
- Validation steps
- Any tool or behavior changes
Roadmap Themes
- Better context quality and ranking
- Broader semantic language support
- Extension UX and install reliability
- Release automation and operational tooling
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caiowilson
- Source: caiowilson/MCP-memento
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.