# memtwig

> memtwig is an open-source MCP server for agent tooling. Git-native Markdown memory for coding agents, with separate vaults per client. It is available on CLI, macOS, Linux, Self-hosted and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Self-hosted, API
- **Website:** https://memtwig.com
- **Repository:** https://github.com/memtwig/memtwig
- **MCP Registry name:** io.github.memtwig/memtwig
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-27

## About

Memtwig stores what your AI agents learn as plain Markdown files inside a Git repository, so the notes stay readable, diffable and yours. Each working folder is matched to its own vault by path or Git remote, which keeps one client's notes out of another client's sessions while personal preferences are shared across all of them.

The tool ships as a single static Go binary with no external vector database. Search runs locally over a SQLite FTS5 index, and optional embeddings can be added later. A linter, a secret scanner and a merge-conflict guard keep the notes tidy, and superseded lines are archived instead of silently rewritten.

Teams can route agent edits through a proposal queue, where changes appear as reviewable diffs to accept or reject before they land in a shared vault. It suits developers who use several coding agents and want their shared context under version control rather than in a hosted memory service.

## Features

- **Plain Markdown in Git:** Notes are ordinary .md files in a Git repository that can be opened in any editor and diffed over time.
- **Isolated client vaults:** Vaults are selected by working directory or Git remote so each client's notes stay separate.
- **Local hybrid search:** Search runs against a local SQLite FTS5 index with no network connection or API key required.
- **Diff approval queue:** Agent edits to protected vaults are queued as proposals that a person approves or rejects.
- **Hygiene linting and archiving:** A linter and secret scanner flag problems, and outdated lines are archived with dates kept on decisions.
- **Embedded Studio UI and TUI:** A local web interface and terminal UI cover browsing, editing, proposals and audit logs.
- **One-command harness setup:** A single command connects supported coding agents and exposes a standard MCP server for others.

## Good for

- Keep shared project context consistent across Claude Code, Cursor and Codex
- Separate notes for each client so agents never mix confidential information
- Let an agent propose note changes that a team reviews before they are merged
- Record dated architectural decisions that agents can recall in later sessions
- Search project notes offline from a terminal without a cloud account

## FAQ

### How does per-client isolation work?

Each folder maps to a vault by path or Git remote, so an agent in one client's repository does not see another client's notes.

### Do I need a cloud database or API key?

No. Local search and the embedded Studio UI run offline; optional embeddings and LLM curation can be added later.

### Can agents overwrite team notes?

Protected vaults queue reviewable diffs that you approve or reject from the CLI, TUI or Studio UI.

### Which coding agents are supported?

Claude Code, Cursor, Codex, Antigravity, Hermes, Grok Bot, OpenBot, T3 Code, and any client that supports standard MCP.

### Is memtwig free?

Yes. memtwig is open source, so you can use and self-host it for free.

### What are the best alternatives to memtwig?

The closest alternatives to memtwig are Agent Memory, Agent Memory MCP, Elefante, Gitmem and agentmem.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [Agent Memory](https://ai-powered.com/mcp/agent-memory-5): Agent Memory is an open-source MCP server for knowledge and memory.
- [Agent Memory MCP](https://ai-powered.com/mcp/agent-memory-mcp-3): Agent Memory MCP is an open-source MCP server for knowledge and memory.
- [Elefante](https://ai-powered.com/mcp/elefante): Elefante is an open-source MCP server for agent tooling.
- [Gitmem](https://ai-powered.com/mcp/gitmem): Gitmem is an open-source MCP server for developer tools.
- [agentmem](https://ai-powered.com/mcp/agentmem-2): agentmem is an open-source MCP server for agent tooling.
- [MCP Light Memory](https://ai-powered.com/mcp/mcp-light-memory): MCP Light Memory is an open-source MCP server for knowledge and memory.
- [Seamless](https://ai-powered.com/mcp/seamless): Seamless is an open-source MCP server for agent tooling.
- [remem-mcp — Local-first MCP Memory + CodeGraph + Wiki](https://ai-powered.com/mcp/remem-mcp-local-first-mcp-memory-codegraph-wiki): remem-mcp — Local-first MCP Memory + CodeGraph + Wiki is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/memtwig
