# Stratigraph

> Stratigraph is an open-source MCP server for developer tools. Cited architecture, data-model and risk maps of Java, Spring and Angular codebases. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://imashishsharma.github.io/stratigraph/
- **Repository:** https://github.com/imashishsharma/stratigraph
- **MCP Registry name:** io.github.imashishsharma/stratigraph
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

The premise is that every claim points at evidence. Stratigraph reads source and git history and builds C4 diagrams, an ER data model from JPA plus Liquibase, Flyway and SQL DDL, the HTTP API with Angular calls linked to their endpoints, and risk views such as hotspots, co-change coupling and knowledge silos. Each view states how much of the code it was built from and is withheld below 50% coverage instead of drawing a partial picture.

The MCP server, started with stratigraph mcp, exposes 13 read-only tools over this fact store, including what_breaks_if, who_knows, where_is_table_written, find_callers and check_cycle, each answer cited with its coverage. It runs locally over stdio and no code leaves your machine.

The same Apache-2.0 package also has a Spring Boot upgrade agent (2.7 to 3.5 and 3.x to 4.0) that uses your tests as the judge. The README reports 5 of 10 public apps upgraded with no human edits, against 0 of 10 for OpenRewrite alone.

## Features

- **Cited findings:** Every finding points to files, lines or commits.
- **Coverage on every view:** States how much code a view covers and withholds low-coverage views.
- **Data model from migrations:** ER diagrams from JPA mappings and Liquibase or Flyway, with drift flagged.
- **History-based risk:** Hotspots, co-change coupling and knowledge silos from git.
- **CI gates:** JSON output, severity gates and a diff that fails only on new findings.
- **Spring Boot upgrade agent:** Upgrades guided by your own test results.

## Good for

- Learn the layout of a 300,000-line Spring monolith
- Find which code writes to a table
- Check what breaks if a class changes
- Spot package cycles and knowledge silos
- Gate CI on new architecture findings

## Install

### Claude Code (Terminal)

```sh
claude mcp add stratigraph -- npx -y stratigraph
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "stratigraph": {
      "command": "npx",
      "args": [
        "-y",
        "stratigraph"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "stratigraph": {
      "command": "npx",
      "args": [
        "-y",
        "stratigraph"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "stratigraph": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "stratigraph"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "stratigraph": {
      "command": "npx",
      "args": [
        "-y",
        "stratigraph"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "stratigraph": {
      "command": "npx",
      "args": [
        "-y",
        "stratigraph"
      ]
    }
  }
}
```

## Tools

- `what_breaks_if`: Shows what a change would affect
- `who_knows`: Finds who knows a file or area from history
- `where_is_table_written`: Lists code that writes a table
- `find_callers`: Finds callers of a method
- `check_cycle`: Checks for dependency cycles

## FAQ

### Does my code leave my machine?

The site says it runs locally and no code leaves your machine.

### Which languages?

Java, Kotlin and Angular first; the README mentions Koa and Express routes too.

### What licence?

Apache 2.0.

### Does it work on non-compiling repos?

The README says it runs on repositories that do not compile.

### Is Stratigraph free?

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

### How do I add Stratigraph to Claude Code?

Run this command in your terminal: claude mcp add stratigraph -- npx -y stratigraph

### What are the best alternatives to Stratigraph?

The closest alternatives to Stratigraph are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/stratigraph
