# Repo Cartographer

> Repo Cartographer is an open-source MCP server. Maps any repo into an architecture diagram (Mermaid/Graphviz) and enforces architecture rules in CI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://huggingface.co/spaces/builditwithgk/repo-cartographer
- **Repository:** https://github.com/builditwithgk/repo-cartographer
- **MCP Registry name:** io.github.builditwithgk/repo-cartographer
- **Listing updated:** 2026-11-13

## About

Maps any repo into an architecture diagram (Mermaid/Graphviz) and enforces architecture rules in CI

## Install

### Claude Code (Terminal)

```sh
claude mcp add repo-cartographer -- npx -y repo-cartographer
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "repo-cartographer": {
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "repo-cartographer": {
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "repo-cartographer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "repo-cartographer": {
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "repo-cartographer": {
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

## FAQ

### Is Repo Cartographer free?

Yes. Repo Cartographer is open source, so you can use and self-host it for free.

### How do I add Repo Cartographer to Claude Code?

Run this command in your terminal: claude mcp add repo-cartographer -- npx -y repo-cartographer

---
Source: https://ai-powered.com/mcp/repo-cartographer
