AgentStack
MCP verified MIT Self-run

MCP Memento

mcp-caiowilson-mcp-memento · by caiowilson

Local-first MCP server that gives AI agents durable repo memory and fast semantic code context.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add mcp-caiowilson-mcp-memento

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

Are you the author of MCP Memento? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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

  1. The server starts over stdio JSON-RPC and registers MCP tools.
  2. It builds and updates a local chunk index under ~/.memento-mcp/.
  3. Change detection is incremental:
  • Default (auto): filesystem watcher first, fallback to git status polling for git repos if watcher fails
  • Configurable via MEMENTO_CHANGE_DETECTOR (auto / fs / git)
  1. Context tools combine:
  • Indexed chunks and scoring
  • Language-aware relationships (Go, TS/JS, PHP)
  • Hard byte and line limits for LLM context safety
  1. Explicit notes are stored separately as durable, repo-scoped memory.

Project Structure

  • cmd/server/ - entrypoint
  • internal/mcp/ - MCP server and tool handlers
  • internal/indexing/ - chunking, manifest, search, incremental indexing
  • internal/app/ - app lifecycle wiring
  • vscode-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

  1. Create a branch from main.
  2. Make focused changes with tests and docs updates.
  3. Run go test ./... (and extension build/tests when applicable).
  4. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.