# Cartograph

> Cartograph is an open-source MCP server for files and documents. Local index of your PDFs, docs and code that AI agents search with page-level citations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, VS Code, API
- **Repository:** https://github.com/pbathuri/cartograph
- **MCP Registry name:** io.github.pbathuri/cartograph
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-27

## About

Cartograph indexes folders of documents and source code on your own machine and exposes the result over MCP, so AI clients such as Claude Code, Cursor and Codex can query it. Answers come back as ranked passages that name the file, page, slide or line they came from, which makes them easy to check.

Beyond search, it keeps a graph of projects, dependencies, papers and repositories, and a shared memory of decisions and rejected approaches that every connected client can read. Stored memories are flagged when the files they point to change. Search runs on keyword matching by default, with optional local semantic search.

It suits researchers, developers and analysts with large personal libraries of PDFs, Office files and notebooks who want agents grounded in their own material without uploading anything.

## Features

- **Cited passage retrieval:** Returns ranked passages with citations to the page, slide, sheet, cell or line they came from.
- **Wide file format support:** Reads PDF, Word, PowerPoint, Excel, EPUB, notebooks, LaTeX and many code and data formats.
- **Shared agent memory:** Decisions and preferences saved in one AI client are available to others, with staleness flags when source files change.
- **Token-capped results:** Search responses respect a maximum token budget set by the caller.
- **Local-only storage:** The index is a single SQLite file on the user's machine, and no files are uploaded.
- **One-command client setup:** A connect command writes MCP configuration for a range of AI clients and backs up existing files first.

## Good for

- Let an agent answer questions about a folder of research papers and cite the exact page
- Give coding agents project context such as dependencies and past decisions at session start
- Search across spreadsheets and notebooks by sheet or cell without uploading data
- Keep a record of rejected approaches so different AI tools do not repeat them
- Find relevant material in a large mixed document archive faster than grep

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add cartograph -- uvx cartograph__v1
```

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

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "cartograph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cartograph__v1"
      ]
    }
  }
}
```

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

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add cartograph -- uvx cartograph__v1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.cartograph]
command = "uvx"
args = ["cartograph__v1"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user cartograph uvx -- cartograph__v1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

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

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

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "cartograph": {
      "command": "uvx",
      "args": [
        "cartograph__v1"
      ]
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

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

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

## Tools

From the tool list in its README, going by the names, 2 of 13 tools read data; 11 names don't say. From the server's own tool labels and tool names; not verified by us.

- `retrieve_context` (name suggests: reads): Returns cited passages, or memories, facts and passages under a token budget.
- `brief`: Session-start digest for the project at the working directory.
- `recall`: Retrieves memories by query, project or kind.
- `entities`: Lists what a project depends on, imports or cites, with evidence.
- `relevant_projects`: Finds projects related to a task.
- `personalize`: Produces a steering brief from field and feedback.
- `elevate_task`: Surfaces top-of-field reference repositories and playbooks.
- `frontier_status` (name suggests: reads): Reports frontier reference status.
- `frontier_hints`: Returns frontier reference hints.
- `graph_stats`: Reports sizes of the graph, entities and memory.
- `remember`: Saves a decision, preference, fact or todo.
- `supersede`: Replaces an existing memory.
- `record_use`: Reports which results helped so ranking adapts.

## FAQ

### Does Cartograph send my files anywhere?

No. The content states that files stay on the machine, there is no telemetry, and the network is used only for optional downloads and explicit benchmark or search commands that send keywords, not file contents.

### Do I need a GPU or an API key?

No. Keyword search works after ingesting files. Semantic search is optional and runs locally, using a GPU if one is available.

### Which AI clients can connect?

The listing includes Claude Code, Claude Desktop, Cursor, Gemini CLI, OpenAI Codex, Zed, Windsurf, Continue, VS Code, LM Studio, Cline and Goose, plus any MCP client via printed JSON.

### Which operating systems are supported?

macOS, Linux and Windows with Python 3.10 or newer.

### 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 -- uvx cartograph__v1

### What are the best alternatives to Cartograph?

The closest alternatives to Cartograph are Paper, Pdf MCP, Cairn, Document corpus and sextant.

## Where this comes from

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

## Alternatives

- [Paper](https://ai-powered.com/mcp/paper): Paper is an open-source MCP server for files and documents.
- [Pdf MCP](https://ai-powered.com/mcp/pdf-mcp): Pdf MCP is an open-source MCP server for files and documents.
- [Cairn](https://ai-powered.com/mcp/cairn-5): Cairn is an open-source MCP server for files and documents.
- [Document corpus](https://ai-powered.com/mcp/document-corpus): Document corpus is an open-source MCP server for files and documents.
- [sextant](https://ai-powered.com/mcp/sextant): sextant is an open-source MCP server for files and documents.
- [DocuSense](https://ai-powered.com/mcp/docusense): DocuSense is an open-source MCP server for files and documents.
- [Calypso Multimodal RAG MCP](https://ai-powered.com/mcp/calypso-multimodal-rag-mcp): Calypso Multimodal RAG MCP is an MCP server for knowledge and memory.
- [PageIndex MCP](https://ai-powered.com/mcp/pageindex-mcp): PageIndex MCP is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/cartograph-3
