Git for AI memory — version-controlled context persistence across Claude, GPT, Gemini, Cursor, Windsurf, and more
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add memgit -- npx -y memgit-mcp~/.codex/config.toml
[mcp_servers.memgit]
command = "npx"
args = ["-y", "memgit-mcp"]
# codex mcp add memgit -- npx -y memgit-mcp~/.cursor/mcp.json
{
"mcpServers": {
"memgit": {
"command": "npx",
"args": [
"-y",
"memgit-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"memgit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memgit-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"memgit": {
"command": "npx",
"args": [
"-y",
"memgit-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"memgit": {
"command": "npx",
"args": [
"-y",
"memgit-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"memgit": {
"command": "npx",
"args": [
"-y",
"memgit-mcp"
]
}
}
}