Repo analysis for coding agents with ranked files, dependency maps, and task-scoped context.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Cartograph is task-shaped repo context for coding agents. It ships a CLI, an MCP server, user-scope install adapters for Claude Code and OpenClaw, and packaged agent assets for documentation-heavy workflows.
@anthony-maio/cartographio.github.anthony-maio/cartographcartograph.making-minds.aiInstead of dumping an entire repository into context, Cartograph ranks the files that matter, maps dependencies, caches structured artifacts, and lets the next tool or agent pick up from those artifacts.
The primary workflow is:
analyze to map the repopacket to prepare the workcontext to load the minimum fileswiki, host installs, and benchmarks are secondary surfaces built around that core path.
For global use from npm:
For MCP host discovery via the official registry:
io.github.anthony-maio/cartographFor Claude Code plugin install from this public repo:
For global use from a local checkout:
See CONTRIBUTING.md for the development workflow and SECURITY.md for vulnerability reporting.
This repo also acts as a Claude Code plugin marketplace. The cartograph plugin bundles:
/cartograph:analyze, /cartograph:context, /cartograph:wikiuse-cartograph and repo-surveyor skillsrepo-scout, dependency-tracer, context-picker, api-surface-writer, and wiki-writerInstall it with:
If you only remember one thing, remember this:
analyze maps the repo and tells you what matters.packet turns a concrete job into a reusable working artifact.context gives the next agent the smallest useful file set.Legacy compatibility still works:
For small repos, analyze --static --json now defaults to compact output instead of embedding top-file contents. That keeps tiny repos readable and lets direct file reads stay cheaper than a giant JSON blob. Use --include-contents when you explicitly want embedded snippets.
The default markdown output from analyze --static is human-first: it highlights what matters, surfaces dependency hubs, and recommends the next commands instead of dumping raw file contents immediately.
geminiopenaiopenrouterollamaSet the API key with --key or CARTOGRAPH_API_KEY. Ollama does not require a key.
Cartograph writes successful runs into the user cache by default:
%USERPROFILE%\\.cartograph\\cache~/.cartograph/cacheEach run gets a manifest plus named artifacts, which keeps agent handoffs lightweight and makes cartograph export deterministic.
Cartograph uses an explicit hybrid install model. Installing the package does not modify Claude Code, OpenClaw, or MCP host configs automatically.
Instead, install only the integration you want:
What each target installs:
claude: user-scope skills plus the bundled documentation agents under ~/.claudeopenclaw: user-scope skill pack under ~/.openclawmcp: a Cartograph MCP config snippet under ~/.cartograph/mcpCheck status at any time:
Cartograph's MCP server exposes static repo analysis directly to hosts that prefer MCP over shell commands.
Tools:
analyze_repo: score files, map dependencies, and return compact analysis output or embedded top-file contents for a local repo or GitHub URLget_file_contents: fetch full contents for specific files after analysisbuild_task_packet: return a typed task packet with key files, dependency hubs, validation targets, risks, and task-specific detailsBug-fix packets are tuned to stay focused when you provide --changed or changed_files: they keep explicit change surfaces in view, prefer exact validation targets, and bias toward shared dependencies over peripheral utility scripts.
If you want Cartograph's packaged MCP snippet, run:
That writes a reusable config file that points at:
Cartograph is published in the official MCP Registry with the server name io.github.anthony-maio/cartograph.
Repo-side metadata lives in:
package.json via the mcpName fieldserver.json for registry metadataThe current install artifact published to npm is:
@anthony-maio/cartographFor repeatable registry releases, this repo also includes a GitHub Actions workflow at
publish-mcp.yml. It is set up for npm trusted publishing on
GitHub Actions, then authenticates to the MCP Registry with GitHub OIDC and publishes server.json.
The package currently ships:
use-cartograph and repo-surveyorrepo-scout, dependency-tracer, context-picker, api-surface-writer, and wiki-writeruse-cartograph and repo-surveyorSkill roles:
use-cartograph: tool-first path when the CLI or MCP server is availablerepo-surveyor: manual fallback path when Cartograph is unavailable or needs verificationBoth skills are designed to produce the same downstream contract:
These assets are meant to pass run IDs and artifact paths between steps instead of copying large prose into the main context.
The Claude plugin marketplace in this repo ships the same skills and agents, plus plugin-first slash commands and a bundled Cartograph MCP server.
This repo includes a public benchmark pack for task packets under benchmarks/task-packets.
Use it to compare packet quality across large visible repos with a stable set of task prompts:
The benchmark runner writes packet artifacts to benchmarks/task-packets/output/, which is gitignored.
Curated scorecards and public artifact links are also published on the site:
Tracked examples live under docs/examples:
llama-cpp-task-packet.mdllama-cpp-task-packet.jsonllama-cpp-deepwiki.mdtask-packet-benchmark-scorecards.mdThese are useful when you want to show what a focused bug-fix packet and a curated repo brief look like on a large public codebase.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cartograph)<a href="https://allmcps.com/mcp/cartograph"><img src="https://allmcps.com/api/badge/cartograph?style=directory" alt="Cartograph on AllMCPs" /></a>