# Cartograph [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/benteigland11/cartograph-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cartograph-2

## Description
Local-first reusable implementation registry for AI agents and versioned widgets.

## Tools
Capabilities this server exposes over MCP:

- **cg_registry** — Registry-facing daily workflow for Cartograph widgets and blueprints. Use search before writing reusable logic, inspect before installing or editing, install to add a widget to the current project, and rate to leave registry feedback. When installing or inspecting, use the exact value from the 'id' field returned by search.
- **cg_installed** — Mutate widgets already installed in the current project. Use this for installed copies only; use cg_registry install for adding a new widget. Actions: upgrade requires widget_dir and optionally version; uninstall requires widget_dir. Pass the widget directory path (e.g. cg/backend-retry-python).
- **cg_status** — Check health/status for installed widgets in the current project. Use this to see if widgets are out of sync with the library, have local modifications, or have updates available. Omit widget_dir to scan all installed widgets; provide a specific directory (e.g. cg/backend-retry-python) to inspect one.
- **cg_create** — Scaffold a new Cartograph widget or blueprint. Use name for the slug only, not the full widget_id; Cartograph combines domain + name + language for widgets. For blueprints, just use the name.
- **cg_validate** — Run the full preflight / smoke pipeline without checking the module into the library. Use this as the dry run for checkin before recording reusable changes.
- **cg_checkin** — Run the full validation / smoke pipeline and then check the module into the library. Use this only for changes that should become reusable logic. Requires reason. Supports either path or widget_dir for compatibility.
- **cg_blueprint** — Blueprint-specific composition management. Blueprints are higher-order widgets that compose other widgets as dependencies. Use this to add or remove dependencies.
- **cg_config** — Read or update Cartograph workflow defaults. Provide key to read the current value; provide both key and value to update it.
- **cg_rules** — List or manage custom validation rules that run during Cartograph validate and checkin.
- **cg_help** — Recovery guidance for common Cartograph trouble states (e.g. local out of sync with cloud, checkin blocked, validation contamination, publish rejected). Use action=list to browse topics with one-line summaries, then action=get with a topic to read the full resolution. Reach for this before guessing when an agent is stuck on a Cartograph error state.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "cartograph": {
    "command": "uvx",
    "args": ["cartograph-mcp"]
  }
}
```

## Documentation

## What the Cartograph MCP server does

The Cartograph MCP server gives AI agents an agent-facing interface to the daily workflow around reusable Cartograph widgets. It connects to the Cartograph CLI and local widget registry rather than implementing a separate registry or administrative system. The CLI remains authoritative, while MCP groups common actions into a smaller set of tools.

The workflow covers finding reusable implementations, inspecting registry entries, installing widgets into a project, managing installed copies, creating new widgets, validating changes, and checking completed work back in. Configuration and custom validation rules are also available through MCP. This makes the server suitable when an agent needs a repeatable path for reusing or improving implementation patterns instead of generating the same logic from scratch.

## How it works

After installation, the MCP process receives tool requests from an MCP client and builds corresponding Cartograph CLI commands. Responses use the MCP tool-list contract, and configuration reads and writes use the CLI’s JSON path so the server can consume structured results.

The tools are organized by intent rather than being a one-to-one copy of the CLI. `registry_widget` handles registry search, inspection, installation, and rating. `installed_widget` manages upgrade and uninstall operations for existing copies. `widget_status` reports project status, while `create_widget`, `validate_widget`, and `checkin_widget` cover authoring and the validation-to-check-in path.

A typical flow is to search first, inspect a candidate, install it, create a widget only when reuse is insufficient, run validation, and check it in with a reason. Validation acts as the dry run for check-in. `cartograph_config` changes workflow defaults, and `cartograph_rules` manages custom rules used during validation and check-in.

## Setup and configuration

Install the package with:

```bash
pip install cartograph-mcp
```

The package depends on `cartograph-cli`; installing the MCP also installs the CLI dependency. For a stdio client, configure the server with the `cartograph-mcp` command. A Claude Desktop entry uses the command directly:

```json
{
  "mcpServers": {
    "cartograph": {
      "command": "cartograph-mcp"
    }
  }
}
```

Claude Code requires an explicit scope flag, such as `--scope user`.

`cartograph_config` exposes the defaults most relevant to routine work: auto-publishing, visibility, governance, cloud behavior, unavailable-item display, and registry publishing. Other environment isolation details shown in the project’s tests are not documented as required runtime settings.

## Tools and capabilities

The Cartograph MCP server exposes these tools:

- `registry_widget`: search, inspect, install, or rate registry widgets.
- `installed_widget`: upgrade or uninstall installed widgets.
- `widget_status`: inspect project or widget status.
- `create_widget`: create a new widget.
- `validate_widget`: run the validation dry-run pipeline.
- `checkin_widget`: check a completed widget in with a reason.
- `cartograph_config`: read or write workflow defaults.
- `cartograph_rules`: manage custom validation rules.

The interface intentionally omits the full Cartograph command surface. Use the CLI for rollback and deletion, cloud operations, authentication, setup, doctor, export and import, and other administrative or recovery tasks.

## Limitations and notes

This server is not a replacement for the Cartograph CLI. It focuses on the common agent workflow and leaves less frequent operations to the command line. The README recommends Cartograph plugins for related agent skills and configuration guidance, but those plugins are separate from this MCP package. Testing covers mocked command construction and isolated integration runs using temporary configuration, data, cache, widget-library, and project locations.

_Full upstream README: https://allmcps.com/mcp/cartograph-2/readme_

