Turn code bases into a knowledge graphs for persistent memory
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cgraph -- npx -y cgraph-mcp~/.codex/config.toml
[mcp_servers.cgraph]
command = "npx"
args = ["-y", "cgraph-mcp"]
# codex mcp add cgraph -- npx -y cgraph-mcp~/.cursor/mcp.json
{
"mcpServers": {
"cgraph": {
"command": "npx",
"args": [
"-y",
"cgraph-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cgraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cgraph-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cgraph": {
"command": "npx",
"args": [
"-y",
"cgraph-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cgraph": {
"command": "npx",
"args": [
"-y",
"cgraph-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cgraph": {
"command": "npx",
"args": [
"-y",
"cgraph-mcp"
]
}
}
}