MCP.Market

Repo Cartographer MCP server

by builditwithgk·io.github.builditwithgk/repo-cartographer·v1.0.1·1 stars

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

A85/100grade A
What users say
No reviews yet
Be the first
Safety scan
A85/100

full report

Adoption
Growing

1 stars36 downloads/wk

Reviews

Write one

Nobody has reviewed Repo Cartographer yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Repo Cartographer tools (5, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • build_import_graph

    Extract intra-repo import/require relationships for JavaScript/TypeScript and Python.

  • generate_diagram

    Combine scan + import facts into a DRAFT diagram string — Mermaid flowchart (default)

  • map_repo

    Point at a folder and get a downloadable architecture diagram in one call: runs

  • render_diagramwrite action

    Write a self-contained, shareable HTML page (renders via CDN: Mermaid, or Viz for

  • scan_repo

    Deterministically extract facts from a local repo: programming languages,

Public scan report

scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it

no findings
  • Code scan26 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 50 days ago12/15
  • Maintainer identityregistry namespace matches repository owner6/10
Overall 85/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Repo Cartographer compares

Against every graded Developer tools MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
85/100
higher than 70% of 1,119 Developer tools servers
Tools
5
the typical Developer tools server has 7
Tools that change things
20%
typical: 5%. Fewer write tools means less an agent can break
GitHub stars
1
more than 50% of 855 Developer tools servers
Downloads a week
36
more than 22% of 436 Developer tools servers with a package

What its tools let an agent do: 3 read · 1 create · 1 change

Install Repo Cartographer in Claude Code, Cursor or VS Code

Runs npx -y repo-cartographer on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add repo-cartographer -- npx -y repo-cartographer
Add to Cursor

What the publisher says

From the Repo Cartographer repository's README, as published. We do not edit it. Read it on GitHub

repo-cartographer

Understand any codebase in 60 seconds. An MCP server that turns any repository into an architecture diagram.

Point your LLM at a folder and get back an architecture map: languages, frameworks, entry points, modules, and an import graph — rendered as a Mermaid diagram you can drop into a PR, a doc, or an onboarding guide.

It is model-agnostic. It speaks the Model Context Protocol over stdio, so it works with Claude Code, Claude Desktop, Cursor, Cline, Copilot, or the OpenAI Agents SDK — no Claude-specific dependency.

Why it's different

The server extracts hard facts. The model does the reasoning.

repo-cartographer never tries to "understand" your code semantically. It parses deterministic facts — file tree, import edges, manifests, framework detection, entry points — and hands your LLM structured JSON plus a draft diagram. Your model turns those facts into the final narrative and a refined diagram.

That split keeps the server small, fast, testable, and portable — and it means the diagram is grounded in what's actually in the repo, not hallucinated.

Example output

Running generatediagram against this repo** produces (a draft the model then refines):

flowchart TD
    n0["src · 2 files"]
    n1["src/lib · library code · 9 files"]
    n2["src/resources · resource handlers · 1 file"]
    n3["src/tools · tool implementations · 4 files"]
    n0 --> n1
    n0 --> n2
    n0 --> n3
    n1 --> n0
    n3 --> n0
    n3 --> n1

A self-contained, shareable HTML render is committed under examples/ (both a high-level and a file-level detail view).

Install & run

Requires Node.js 18+.

# Run directly (no install)
npx -y repo-cartographer

# …or from source
git clone https://github.com/builditwithgk/repo-cartographer
cd repo-cartographer
npm install
npm run build
node dist/index.js

The server communicates over stdio; AI clients launch it that way. You can also use it directly from a terminal — see below.

Command line (no AI needed)

The same binary is dual-mode: with no arguments it's the MCP server; with a subcommand it's a plain CLI for humans and CI.

# Draw a diagram — path in, architecture.html out
npx -y repo-cartographer map ./my-project
npx -y repo-cartographer map ./my-project --level detail -o docs/architecture
npx -y repo-cartographer map ./my-project --format dot   # Graphviz DOT instead of Mermaid

# Enforce architecture rules (exits 1 on an error-level violation — use it in CI)
npx -y repo-cartographer check ./my-project --config .cartographer.yml

Zip-friendly: if you point it at an extracted "Download ZIP" folder (repo-main/ wrapper and all), it detects the wrapper and maps the real repo root — noted in the output, never silent.

Two output notations, one strategy: Mermaid because that's where people read it (GitHub renders it natively in PR comments and READMEs), DOT because that's what their tools eat (pipe it into Graphviz, Backstage, or anything else: dot -Tsvg architecture.dot). Both come with the same shareable HTML page and role-colored modules. When the repo has a .cartographer.yml, its diagram: section supplies the defaults for --level, --format and -o; explicit flags always win.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Repo Cartographer: common questions

Is Repo Cartographer MCP server safe?
Yes, by our scan: it is graded A (85/100). Read the Repo Cartographer safety report
How do I install Repo Cartographer?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Repo Cartographer need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Repo Cartographer maintained?
The last commit was 91 days ago (2026-08-05). The latest release is v1.0.1.
What can I use instead of Repo Cartographer?
Servers from other publishers that do the same job: GitDiagram MCP server, TerraVision MCP server and Orrery MCP server.
How does Repo Cartographer compare with other Developer tools MCP servers?
safety score 85/100 (higher than 70% of 1,119 Developer tools servers); tools 5 (the typical Developer tools server has 7); tools that change things 20% (typical: 5%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Repo Cartographer

Same job from other publishers: the closest match first, then the best rated.

  • GitDiagram
    Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
    A
  • TerraVision
    Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.
    A
  • Orrery
    Architecture diagrams with official AWS, Azure, GCP and Kubernetes icons, to SVG, PNG and draw.io
    A
  • GitHub
    Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
    A
  • Gk CLI
    The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
    B