Open-source MCP memory server for multi-org teams.
memtwig ships a zero-dependency Model Context Protocol server over stdio and Streamable HTTP. Every tool call enforces workspace vault isolation, owner-lock rules, and role-based access control.
| MCP Tool | Behavior |
|---|---|
| memory_search | Hybrid SQLite FTS5 BM25 + vector RRF search scoped to active vaults in cwd. |
| memory_read | Read a specific Markdown note with path-traversal and scope enforcement. |
| memory_write | Direct write allowed only on direct vaults and non-owner-locked notes. |
| memory_propose | Queue deterministic create/update/append proposals into .curator/proposals.json. |
| memory_decide | Log a dated decision in decisions/YYYY-MM.md and link/propose it on the project note. |
| memory_status | Inspect resolved vaults, write modes, match reasons, and open proposal counts. |
Local stdio (Cursor / Claude / Codex)
{
"mcpServers": {
"memtwig": {
"command": "memtwig",
"args": ["mcp"]
}
}
} Team HTTP MCP + RBAC
memtwig serve --addr 127.0.0.1:8787
# Endpoints:
# POST /mcp
# GET /api/v1/search?q=deploy
# POST /api/v1/proposals
# GET /api/v1/audit FAQ
Does memtwig support both local stdio and remote HTTP MCP?
Yes. Run 'memtwig mcp' for local stdio clients (Claude Code, Cursor, Codex, Antigravity) or 'memtwig serve --addr 127.0.0.1:8787' for Streamable HTTP MCP (/mcp) plus REST API endpoints protected by Bearer token RBAC and append-only audit.jsonl.
How does RBAC work on the HTTP MCP server?
Each token policy in config.toml defines a role (reader, proposer, writer, admin), allowed vaults, and optional path globs. A proposer token for client A cannot read client B or overwrite owner-locked files.