CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, 38 languages, a VS Code extension, and a persistent memory layer. AI agents get structured code understanding instead of grepping through files.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add codegraph-codegraph-ai -- npx -y @astudioplus/codegraph-mcp~/.codex/config.toml
[mcp_servers.codegraph-codegraph-ai]
command = "npx"
args = ["-y", "@astudioplus/codegraph-mcp"]
# codex mcp add codegraph-codegraph-ai -- npx -y @astudioplus/codegraph-mcp~/.cursor/mcp.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"codegraph-codegraph-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}