MindGraph
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., "@MindGraphfind all code depending on the Logger class across repositories"
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.
MindGraph
Multi-Repository Code Knowledge Graph Engine
MindGraph is a local-first static analysis engine that turns N source repositories into a single, queryable code knowledge graph and exposes it to AI agents through the Model Context Protocol (MCP). It unifies the core capabilities of CodeGraph (symbol graph + impact analysis), GitNexus (trace, route mapping, change detection, cross-repo groups), and Graphify (community detection, god nodes, shortest path, edge confidence) into one tool with first-class multi-repo support.
Features
Multi-repo merging — Index an unbounded number of repositories into one unified graph. Each repo retains its identity (
repo_id,repo_name,root_path) while participating in a shared symbol space.22 MCP tools spanning exploration, advanced graph queries, graph intelligence, and group management (see MCP Tools Reference).
Cross-repo dependency resolution —
#includes, calls, and type references that span repositories are resolved into explicit cross-repo edges usingcross_repo_includesmappings.Layer architecture annotations — Tag repos with a
layer(e.g.ui,business,engine,sdk) and monorepo directories withsub_layers, then filter or group any query by layer.Edge confidence tagging — Every edge carries a
confidenceofEXTRACTED(from source),INFERRED(heuristic), orAMBIGUOUS, plus aprovenance(static,inferred,cross-repo,synthesized).Graph intelligence — Leiden/Louvain community detection, god-node ranking (degree / betweenness / PageRank), and shortest-path queries (directed and undirected).
C/C++ focused, multi-language aware — C and C++ are the primary test targets; TypeScript, Python, Rust, Go, and Java extractors are included.
Local and private — All parsing, storage, and querying happens on your machine. No network calls during indexing or querying.
Incremental re-index — Changing one repo only re-indexes that repo and re-resolves its cross-repo edges. Circular repo dependencies are detected and reported, never infinite-looped.
Related MCP server: Axon
Quick Start
Installation
Requirements: Node.js >= 22, npm.
git clone https://github.com/your-org/mindgraph.git
cd mindgraph
npm install
npm run build
npm link # optional: exposes the `mindgraph` binary on PATHIndex a single repository
mindgraph index /path/to/repo --layer engine --id engine-coreIndex a multi-repo group
Create a group_config.json (see Group Configuration), then:
mindgraph index ./group_config.jsonMindGraph indexes every repo in the group and resolves cross-repo edges in one pass.
Start the MCP server
mindgraph mcp --group-config ./group_config.jsonThe server speaks MCP over stdio and is intended to be launched by an MCP client (Claude Desktop, Cursor, etc.), not run interactively.
Configure your MCP client
See MCP Configuration below.
MCP Configuration
Add MindGraph to your MCP client's config file.
Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"mindgraph": {
"command": "mindgraph",
"args": ["mcp", "--group-config", "/absolute/path/to/group_config.json"],
"env": {
"MINDGRAPH_DIR": "/absolute/path/to/data-dir"
}
}
}
}Cursor — .cursor/mcp.json in your workspace (or global Cursor MCP settings):
{
"mcpServers": {
"mindgraph": {
"command": "mindgraph",
"args": ["mcp", "--group-config", "/absolute/path/to/group_config.json"]
}
}
}If MindGraph isn't on PATH, use the absolute path to the binary or invoke it through Node:
{
"mcpServers": {
"mindgraph": {
"command": "node",
"args": ["/absolute/path/to/mindgraph/dist/index.js", "mcp"]
}
}
}Data directory resolution order: MINDGRAPH_DIR env var, then ./.mindgraph (if present), then ~/.mindgraph.
Group Configuration
A group_config.json declares the repos in a group, their architectural layers, and the include-path mappings used to resolve cross-repo references.
{
"name": "av-editor",
"repos": [
{
"id": "ui-layer",
"path": "/path/to/ui-repo",
"layer": "ui",
"include_paths": ["src/", "include/"]
},
{
"id": "engine-core",
"path": "/path/to/engine-core",
"layer": "engine",
"sub_layers": ["logic", "render", "service", "base", "gpu"],
"include_paths": ["include/", "src/"]
}
],
"cross_repo_includes": [
{
"from": "ui-layer",
"to": "engine-core",
"mapping": { "engine/": "/path/to/engine-core/include/" }
}
]
}Field | Description |
| Group identifier. |
| Stable repo identifier used in queries and edges. |
| Absolute path to the repository root. |
| Architectural layer tag (e.g. |
| Optional sub-layer names for monorepo-style directories. |
| Directories searched when resolving |
| Maps an include prefix in |
Generate a starter config with:
mindgraph group init --name av-editor --repo /path/to/ui --repo /path/to/engineCLI Reference
Global options: --db <dir> (override data directory), -v, --verbose (debug logging).
mindgraph index [path]
Index a repository directory or a group_config.json.
# Single repo
mindgraph index /path/to/repo --layer engine --id engine-core --group default
# Multi-repo group
mindgraph index ./group_config.jsonOptions: --layer <layer>, --id <id>, --group <name> (default: default).
mindgraph mcp
Start the MCP server over stdio.
mindgraph mcp --group-config ./group_config.jsonmindgraph status
Show per-repo and aggregate index statistics.
mindgraph status
mindgraph status --repo engine-coremindgraph search <query>
Quick symbol search from the terminal.
mindgraph search "VideoEncoder" --kind class --limit 20 --repo engine-coremindgraph group
Manage repository groups.
# Create a group_config.json in the current directory
mindgraph group init --name my-group --repo /path/to/a --repo /path/to/b
# Add (and index) a repo into a group
mindgraph group add /path/to/repo --group my-group --layer sdk --id sdk-repo
# Re-sync cross-repo edges (incremental, or --full to re-index first)
mindgraph group sync --group my-group
mindgraph group sync --group my-group --full --group-config ./group_config.jsonMCP Tools Reference
All tools are read-only, idempotent, and non-destructive (except mindgraph_rename, which is dry-run by default).
Core (CodeGraph)
Tool | Description |
| Primary semantic exploration; returns symbols, call paths, code excerpts, and cross-repo relationships for a natural-language or symbol query. |
| Quick symbol search by name/pattern, filterable by kind and repo. |
| Detailed info for one symbol: signature, docstring, visibility, callers/callees counts, optional source code. |
| Who calls this symbol, with call sites and configurable depth. |
| What this symbol calls, with call sites and configurable depth. |
| Blast-radius analysis: depth-grouped impact tree with confidence scores and affected repos/layers. |
| Indexed file tree with language, symbol counts, and layer annotations. |
| Index health: per-repo and aggregate files, nodes, edges, unresolved refs, last sync. |
Advanced (GitNexus)
Tool | Description |
| Shortest directed path between two symbols over selected edge types. |
| Git-diff impact analysis: changed files → affected symbols → downstream impact, grouped by layer. |
| Coordinated multi-file rename, cross-repo aware, dry-run by default. |
| API/framework route map with handler symbols and middleware chains. |
| Raw Cypher-style query over the underlying SQLite graph. |
Graph Intelligence (Graphify)
Tool | Description |
| Louvain/Leiden community detection with cross-community bridges and layer distribution. |
| Most-connected core abstractions, ranked by degree, betweenness, or PageRank. |
| Conceptual undirected shortest path with edge-type and confidence annotations. |
| Global statistics: node/edge counts by kind, communities, confidence breakdown, layer distribution, cross-repo edge count. |
| Direct neighbors of a symbol, grouped by relation type with edge metadata. |
Multi-Repo Management
Tool | Description |
| List configured groups with their repos, layers, and index status. |
| Rebuild cross-repo links for a group (incremental or full). |
| Add and index a repository in a group. |
| Remove a repository from a group and clean up its data. |
Architecture
Layer | Technology |
Runtime | Node.js + TypeScript (ESM) |
Parser |
|
Storage | SQLite ( |
Graph algorithms |
|
MCP server |
|
CLI |
|
Schema validation |
|
Tests |
|
Pipeline: scan (file discovery + ignore rules) → parse (tree-sitter) → extract (per-language symbol/edge extractors) → resolve (intra-repo references) → cross-repo resolve (group-aware edge synthesis) → store (SQLite + FTS5) → serve (MCP tools).
Source layout:
src/
├── index.ts # CLI entry
├── mcp/ # MCP server + one file per tool
├── core/ # scanner, parser, language extractors, resolvers
├── graph/ # SQLite store, traversal, communities, centrality, paths
├── group/ # group config, multi-repo orchestration, sync
└── utils/ # logger, config, fs helpersSee SPEC.md for the full data model (SQLite schema) and the cross-repo resolution algorithm.
Testing
npm test # run the full vitest suite once
npm run test:watch # watch mode
npm run lint # eslint over src/Integration tests run against a synthetic 3-repo C++ fixture under test/fixtures/; end-to-end tests target real C++ projects (see SPEC.md §5).
License
MIT — see LICENSE for details.
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
- Alicense-qualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.Last updatedMIT
- Alicense-qualityCmaintenanceA graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide AI agents with deep context on function calls, types, and execution flows. It offers local, zero-dependency tools for hybrid search, impact analysis, and dead code detection across Python, JavaScript, and TypeScript projects.Last updated724MIT
- 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
- Flicense-qualityBmaintenanceEnables AI assistants to deeply understand codebases via Knowledge Graphs, supporting fuzzy search, architecture layer queries, call chain tracing, impact analysis, and domain knowledge with multi-project support.Last updated1
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.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
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/dycm8009/MindGraph'
If you have feedback or need assistance with the MCP directory API, please join our Discord server