Local-first MCP memory governance for coding agents — Codex, Claude Code, Cursor, Grok, and Trae. Shared rules, deduplication, token insights, audit, and rollback.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add memoryguard -- uvx agent-memguard~/.codex/config.toml
[mcp_servers.memoryguard]
command = "uvx"
args = ["agent-memguard"]
# codex mcp add memoryguard -- uvx agent-memguard~/.cursor/mcp.json
{
"mcpServers": {
"memoryguard": {
"command": "uvx",
"args": [
"agent-memguard"
]
}
}
}.vscode/mcp.json
{
"servers": {
"memoryguard": {
"type": "stdio",
"command": "uvx",
"args": [
"agent-memguard"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"memoryguard": {
"command": "uvx",
"args": [
"agent-memguard"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"memoryguard": {
"command": "uvx",
"args": [
"agent-memguard"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"memoryguard": {
"command": "uvx",
"args": [
"agent-memguard"
]
}
}
}