Skip to content
MCP server

Cartograph

Local index of your PDFs, docs and code that AI agents search with page-level citations

Runs locally

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

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
2.0.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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": "uvx",
      "args": [
        "cartograph__v1"
      ]
    }
  }
}

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": "uvx",
      "args": [
        "cartograph__v1"
      ]
    }
  }
}

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

{
  "mcpServers": {
    "cartograph": {
      "command": "uvx",
      "args": [
        "cartograph__v1"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

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

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

    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": "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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

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

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

    Junie

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

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

    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": "uvx",
          "args": [
            "cartograph__v1"
          ]
        }
      }
    }

    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.

Configuration

  • CARTOGRAPH_HOMEWhere the local graph lives (default ~/.cartograph). Build it first with `carto ingest <folder>`.

About Cartograph

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.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

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_contextName 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_statusName 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.

What it does

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

Pricing

Open source

Free and open source under the MIT license.

Cartograph 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.

How AIPoweredBot checks servers