Skip to content
MCP server

Cartograph

Ranks the files that matter in a repo and builds task-scoped context for coding agents

Runs locally

Cartograph is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
1.3.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add cartograph -- npx -y @anthony-maio/cartograph

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "cartograph": {
      "command": "npx",
      "args": [
        "-y",
        "@anthony-maio/cartograph"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "cartograph": {
      "command": "npx",
      "args": [
        "-y",
        "@anthony-maio/cartograph"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "cartograph": {
      "command": "npx",
      "args": [
        "-y",
        "@anthony-maio/cartograph"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "cartograph": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@anthony-maio/cartograph"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add cartograph -- npx -y @anthony-maio/cartograph

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.cartograph]
command = "npx"
args = ["-y", "@anthony-maio/cartograph"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "cartograph": {
      "command": "npx",
      "args": [
        "-y",
        "@anthony-maio/cartograph"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user cartograph npx -- -y @anthony-maio/cartograph

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "cartograph": {
          "command": "npx",
          "args": [
            "-y",
            "@anthony-maio/cartograph"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Cartograph

Cartograph is built on the idea that an agent should not be handed a whole repository. It ranks important files, maps dependencies, and caches structured artifacts so the next tool can pick up where the last stopped. The main path has three steps: analyze maps the repo, packet prepares a concrete job such as a bug fix, and context --static loads task-matched files plus nearby dependencies and tests using local heuristics, with no model call or API key.

A bundled example fixes a refresh-token expiry bug, where the packet points at the auth file and its test and leaves billing and catalog code out. The README warns that static matching can miss relevant code and that neither mode proves a file contains the bug.

Beyond the MCP server it ships a CLI, a Claude Code plugin with slash commands and documentation agents, and adapters for OpenClaw and Hermes. An optional model-backed workflow supports Gemini, OpenAI, OpenRouter and Ollama.

What it does

File ranking
Identifies the files that matter in a repo instead of dumping everything.
Dependency maps
Surfaces dependency hubs and relationships between files.
Task packets
Turns a concrete job into a reusable working artifact.
Static context
Loads task-matched files, dependencies and tests without a model call.
Run cache
Stores each run with a manifest and artifacts for later export.
Host installers
Installs for Claude Code, OpenClaw, Hermes or an MCP config snippet.

Good for

  • Orienting an agent in an unfamiliar codebase
  • Preparing context for a bug-fix task
  • Handing repo findings from one agent to another
  • Generating a repository wiki with a chosen model provider

Pricing

Open source

Open-source npm package; model providers are optional and billed by the provider

Cartograph FAQ

Does Cartograph need an API key?

Not for static mode. Model-backed runs need a provider configured, except Ollama, which needs no key.

Where does Cartograph keep its cache?

In ~/.cartograph/cache on POSIX or the user profile .cartograph\cache folder on Windows.

Which hosts does Cartograph support?

Claude Code, OpenClaw, Hermes, or any MCP client via the stdio server.

How do I install Cartograph?

Install the npm package @anthony-maio/cartograph globally and run cartograph mcp.

Is Cartograph free?

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

How do I add Cartograph to Claude Code?

Run this command in your terminal: claude mcp add cartograph -- npx -y @anthony-maio/cartograph

What are the best alternatives to Cartograph?

The closest alternatives to Cartograph are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers