Understand any codebase in 60 seconds - an MCP server, CLI and GitHub Action that turns any repo into an architecture diagram (Mermaid/Graphviz) and enforces architecture rules in CI. Works with Claude, Cursor, ChatGPT and any MCP client.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add repo-cartographer -- npx -y repo-cartographer~/.codex/config.toml
[mcp_servers.repo-cartographer]
command = "npx"
args = ["-y", "repo-cartographer"]
# codex mcp add repo-cartographer -- npx -y repo-cartographer~/.cursor/mcp.json
{
"mcpServers": {
"repo-cartographer": {
"command": "npx",
"args": [
"-y",
"repo-cartographer"
]
}
}
}.vscode/mcp.json
{
"servers": {
"repo-cartographer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"repo-cartographer"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"repo-cartographer": {
"command": "npx",
"args": [
"-y",
"repo-cartographer"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"repo-cartographer": {
"command": "npx",
"args": [
"-y",
"repo-cartographer"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"repo-cartographer": {
"command": "npx",
"args": [
"-y",
"repo-cartographer"
]
}
}
}