Stratigraph
Cited architecture, data-model and risk maps of Java, Spring and Angular codebases
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 2.2.1
- Listing updated
- 3 days ago
About Stratigraph
Stratigraph is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add stratigraph -- npx -y stratigraphAdd to claude_desktop_config.json
{
"mcpServers": {
"stratigraph": {
"command": "npx",
"args": [
"-y",
"stratigraph"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"stratigraph": {
"command": "npx",
"args": [
"-y",
"stratigraph"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"stratigraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"stratigraph"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"stratigraph": {
"command": "npx",
"args": [
"-y",
"stratigraph"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"stratigraph": {
"command": "npx",
"args": [
"-y",
"stratigraph"
]
}
}
}Tools this server provides (5)
Taken from the project documentation; the running server may differ.
- 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
What it does
- 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
Pricing
Open source
Apache 2.0, runs locally
Prices change. Check imashishsharma.github.io before you buy.
Stratigraph 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 to Stratigraph

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools