repo-atlas-mcp
Provides a graph-based codebase analysis using Neo4j, allowing agents to query code relationships such as callers, dependencies, and impact of changes.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@repo-atlas-mcpfind the impact of changing the 'send_email' function"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
repo-atlas-mcp
An MCP server that gives coding agents a graph of your codebase instead of a text search over it.
Grep finds a name. It cannot tell you who calls that function, what breaks if you change it, or whether
any test reaches it. Those are relationship questions, so repo-atlas-mcp parses your repository with
tree-sitter, loads the call and import structure into Neo4j, and exposes it to your agent as MCP tools.
▸ hotspots
17 callers stock_analyzer/base.py:54 is_num
10 callers stock_analyzer/data/market.py:144 get_row
9 callers stock_analyzer/base.py:12 Finding
▸ impact_of is_num
21 production caller(s) across 11 file(s).
⚠ No test reaches this symbol on any call path — changes here are unguarded.Why a graph
Reachability is transitive, and transitive questions are exactly what a graph database answers in one
query and a text search cannot answer at all. impact_of walks every call path upstream of a symbol,
partitions the callers into production code and tests, and tells you when nothing guards the change.
That is the query that stops an agent from confidently editing shared code.
Related MCP server: CodeXRay
Requirements
Node.js 18+
A Neo4j instance. AuraDB Free is enough for repositories in the hundreds-of-thousands-of-lines range and costs nothing.
Setup
Create a free AuraDB instance, then note the connection URI and password it gives you.
Add the server to your MCP client:
{
"mcpServers": {
"repo-atlas": {
"command": "npx",
"args": ["-y", "repo-atlas-mcp"],
"env": {
"NEO4J_URI": "neo4j+s://xxxxxxxx.databases.neo4j.io",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "your-password"
}
}
}
}For Claude Code that goes in .mcp.json at your project root, or run:
claude mcp add repo-atlas -- npx -y repo-atlas-mcpThen ask your agent to index the project once:
index this repo at /path/to/project
Re-indexing is incremental — unchanged files are skipped by content hash, so running it again after a few edits takes about as long as parsing the files you touched.
Tools
Tool | Question it answers |
| Build or refresh the graph for a repository |
| Where is this function/class/method defined? |
| What reaches this symbol, transitively? |
| What does this symbol depend on, transitively? |
| What breaks if I change this — and do any tests cover it? |
| How does control flow from A to B? |
| Which symbols have the most distinct callers? |
| What does the top-level package structure depend on? |
| What is indexed? |
| Remove a repository from the graph |
Languages
Python, TypeScript, TSX, and JavaScript, via tree-sitter WASM grammars — no native compilation, so
npx works on a clean machine without build tools.
How call resolution works, and where it is wrong
Resolving a call to a definition properly requires full type inference. This does something cheaper and tells you when it is guessing. What the call looks like decides how it is resolved:
self.foo() / this.foo() — resolves to foo on the enclosing class, else to a definition in the
same file. This is the one method form that resolves precisely. Tier: local.
foo() — a bare call, very likely a repo-level function. Resolved against a definition in the same
file (local), then in a file this one imports (imported), then repo-wide if three or fewer
candidates exist (global).
something.foo() — the receiver's type is unknown. Accepted only when foo is defined exactly once
in the whole repository and is not a well-known builtin name. Tier: receiver.
That last rule matters more than it looks. Without it, one repo method named get absorbs every
dict.get() and response.get() in the codebase; on a real 26-file project it produced a phantom
symbol with 59 callers, ranked as the most-called code in the project. The denylist in
COMMON_METHOD_NAMES (get, add, update, join, map, read, …) is a heuristic, and it is
consulted only for this weakest case — a bare get() still resolves normally.
Every CALLS edge stores which tier produced it, and the tools surface anything above local.
Known limitations, stated plainly:
Dynamic dispatch is invisible.
getattr(obj, name)(), reflection, and dependency-injection wiring produce no edges.Polymorphism is not modelled. Two classes with a
run()method cannot be told apart, so calls on a non-selfreceiver to a name defined more than once are dropped rather than guessed.Calls into third-party packages are dropped. Only symbols defined inside the repository become nodes.
Top-level code is attributed to a synthetic
<module>symbol per file, so route registration and CLI wiring still appear in the graph rather than being discarded.Repeated calls between the same pair collapse to one edge, which keeps the last line number seen.
The practical effect: the graph under-reports rather than over-reports. impact_of can miss a caller
that goes through dynamic dispatch, so treat its output as a strong lead, not a proof — but a symbol it
names really is a caller.
Graph model
(:Repo)-[:HAS_FILE]->(:File)-[:DEFINES]->(:Symbol)
(:File)-[:IMPORTS]->(:File)
(:Symbol)-[:CALLS {line, confidence}]->(:Symbol)Symbol.isTest is set from the defining file's path, which is what lets impact_of separate covering
tests from production callers.
Ranking in hotspots uses caller in-degree rather than PageRank, so it runs on AuraDB Free, which does
not include the Graph Data Science library.
Development
npm install
npm run build
node scripts/smoke.mjs # parser check, no database needed
node scripts/bulk-parse.mjs /some/repo # parse a real repo and report totalsLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceTransforms code repositories and development documentation into a queryable Neo4j knowledge graph, enabling AI assistants to perform intelligent code analysis, dependency mapping, impact assessment, and automated documentation generation across 15+ programming languages.Last updated6
- Alicense-qualityCmaintenanceEnables AI coding agents to query a pre-built semantic knowledge graph of code, reducing token usage and tool calls. Supports 16 tools for code exploration, analysis, and context building.Last updated267MIT
- Alicense-qualityCmaintenanceTransforms codebases into structural knowledge graphs for AI agents and developers, providing precise architectural awareness and dependency mapping.Last updated53MIT
- Alicense-qualityAmaintenanceProvides a dependency graph of any local repository with tools for change impact, transitive dependents, health audits, and more, enabling AI coding agents to see structure and refactor safely.Last updated4,9123MIT
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aditya31398/repo-atlas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server