ai-mind-map
π§ MCP Server that reduces AI coding agent token usage by 80-99%. Knowledge graph + persistent memory + smart compression for Claude, Cursor, Copilot, and any MCP-compatible agent.
Install / Use
claude mcp add shdra06 -- npx -y github:shdra06/ai-mind-mapIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of ai-mind-map
ai-mind-map scores 78/100 on our quality scale, 806th of 960 AI & Machine Learning skills we index.
Its MCP Server is 21 KB long, well organised into 52 sections with 21 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 90/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
ai-mind-map compared with similar skills
All 4 of these similar skills score higher than ai-mind-map; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ai-mind-map (this skill)by shdra06 | 78 | 3 | 3mo ago | MCP Server |
| claude-memby thedotmack | 100 | 101.1k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 97.8k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 86.5k | 3d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.5k | today | CLAUDE.md |
Frequently asked questions
- How do I install ai-mind-map?
- Run
claude mcp add shdra06 -- npx -y github:shdra06/ai-mind-map. The install tabs above show the steps for each supported agent. - Which AI agents does ai-mind-map work with?
- It is written for Claude Code, Claude Desktop, Cursor and GitHub Copilot, as a MCP Server file. Other agents that read the same format can often use it too.
- Is ai-mind-map safe to use?
- It is MIT-licensed and scores 90/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ai-mind-map still maintained?
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubπ Live Website
ai-mind-map-website.vercel.app β Interactive landing page with a live D3.js knowledge graph of the real codebase (120 nodes, 300 edges), token savings calculator, tools explorer, and one-command install wizard.
π§ͺ TestSprite Hackathon β Season 3
This project is a submission for the TestSprite Season 3 Hackathon. The TestSprite verification loop ran against the live website across 2 rounds, finding and fixing 4 real product bugs.
| Test | Priority | Status | |------|----------|--------| | Live brain graph renders real codebase data | P0 | β passed | | Homepage hero + comparison cards | P0 | β οΈ inconclusive (agent: PASS, D3 render overhead) | | Tools explorer search filtering | P1 | β passed | | Token savings calculator sliders | P1 | β passed | | Install wizard agent switching | P1 | β passed | | Full site navigation | P2 | β passed |
Bugs found by TestSprite:
- π Brain graph search input had no ARIA β invisible to accessibility tree
- π Install page: 3 identical
Copybuttons with no unique identifiers - π D3 drag handler fired on every mousedown β hover selected nodes incorrectly
- π Homepage hero + CTA both had identical
Copybuttons β agent blocked
See LOOP.md for the full iteration log, root cause analysis, and fixes.
CI/CD: TestSprite runs automatically on every push via GitHub Actions.
β‘ Install in One Command
npx ai-mind-map install
Auto-detects Claude, Cursor, VS Code, Windsurf, Antigravity, Zed, Continue.dev β configures all of them instantly. No config files. No manual setup. Just run and restart your agent.
<p align="center"> <a href="#-quick-start">Quick Start</a> β’ <a href="#-how-it-works">How It Works</a> β’ <a href="#-50-mcp-tools">All 50+ Tools</a> β’ <a href="#-connect-to-your-ai-agent">Connect</a> β’ <a href="#-cli-commands">CLI</a> β’ <a href="#-configuration">Config</a> </p>
β The Problem
Every time an AI coding agent (Claude Code, Cursor, Copilot, Windsurf, Antigravity) processes a request, it re-reads your entire codebase from scratch. This wastes massive amounts of tokens:
Without AI Mind Map:
β Agent reads auth.ts β 5,000 tokens
β Agent reads auth.ts AGAIN β 5,000 tokens (same file!)
β Agent reads auth.ts AGAIN β 5,000 tokens (still the same file!)
Total: 15,000 tokens for 3 questions about ONE file
With AI Mind Map:
β
mindmap_get_signature("authenticate") β 50 tokens
β
mindmap_get_signature("validateToken") β 40 tokens
β
mindmap_trace_dependencies("authenticate") β 100 tokens
Total: 190 tokens β that's a 99% reduction
Industry research shows ~42% of all tokens consumed by AI coding agents are avoidable waste β repeated file reads, re-discovering architecture, re-debating settled decisions.
β¨ What AI Mind Map Does
AI Mind Map is an MCP (Model Context Protocol) server that gives your AI agent:
| Feature | What It Does | Token Savings | |---------|-------------|---------------| | πΊοΈ Knowledge Graph | Parses your entire codebase into a queryable graph of functions, classes, and relationships | 99% | | π Change Tracker | Knows exactly what changed since the AI's last session | 80% | | π§ Persistent Memory | Remembers architecture decisions, conventions, and context across sessions | 90% | | ποΈ Smart Compression | Compresses build logs, test output, stack traces intelligently | 50-98% | | π Progressive Loading | Loads only what's needed β signatures first, full code only when asked | 90% | | β‘ Real-time Sync | File watcher keeps the graph updated as you code | Always fresh |
Inspired By The Best
This project combines proven techniques from:
| Source | Technique | Their Result | |--------|-----------|-------------| | codebase-memory-mcp | Knowledge Graph + SQLite | 99% reduction (120x fewer tokens) | | Aider | PageRank-based Repo Map | 90%+ reduction | | Mem0 | Persistent Memory with Decay | 3-4x cost reduction | | context-mode | Context Sandboxing + BM25 | 98% context reduction | | context-mem | Progressive Disclosure | 90%+ savings |
π Quick Start
Method 1: Global Install (Recommended β Most Reliable)
npm install -g ai-mind-map
# Auto-detect and configure all your AI agents
ai-mind-map install
# Check everything is working
ai-mind-map doctor
Method 2: npx (Quick β No Install)
# Run directly without installing anything
npx ai-mind-map install
# β οΈ If you get "bindings.js" errors, use Method 1 instead (npx cache can corrupt native modules)
Method 3: Clone (For Development)
git clone https://github.com/shdra06/ai-mind-map.git
cd ai-mind-map
npm install --legacy-peer-deps
npm run build
node dist/cli.js install
What install Does
- β Scans your system for AI coding agents (Claude, Cursor, VS Code, Windsurf, Antigravity, Zed, Continue.dev)
- β Writes MCP config to each agent's config file
- β Deploys rules files so agents know about our 41 tools
- β Runs diagnostics to verify everything works
Verify It Works
ai-mind-map doctor
Output:
π©Ί AI Mind Map β Diagnostics
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Node.js v24.x (>= 18 required)
β SQLite In-memory test passed
β TypeScript Build dist/index.js exists
β Agents 3 detected, 3 configured
π Connect To Your AI Agent
Automatic (Recommended)
npm install -g ai-mind-map
ai-mind-map install
This auto-detects all 7 agents and writes the config for you. Done.
What Gets Written
After running install, each agent's config file contains:
{
"mcpServers": {
"ai-mind-map": {
"command": "ai-mind-map",
"args": []
}
}
}
π‘ Note: If you installed globally, the command is
ai-mind-map. If using npx, it writes"command": "npx", "args": ["-y", "ai-mind-map"]. Both work, but global is more reliable for native dependencies.
Manual Setup (If You Prefer)
If you want to configure manually, add this to your agent's config:
<details> <summary><b>Claude Code</b> β <code>~/.claude/claude_desktop_config.json</code></summary>{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}
</details>
<details>
<summary><b>Cursor</b> β <code>~/.cursor/mcp.json</code></summary>
{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}
</details>
<details>
<summary><b>VS Code</b> β Settings JSON (<code>Ctrl+Shift+P</code> β "Open User Settings JSON")</summary>
{
"mcp.servers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}
</details>
<details>
<summary><b>Antigravity (Gemini)</b> β <code>~/.gemini/config/mcp.json</code></summary>
{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}
</details>
<details>
<summary><b>Windsurf</b> β Settings JSON</summary>
{
"mcp.servers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}
</details>
<details>
<summary><b>Any MCP-Compatible Agent</b></summary>
Command: npx
Args: -y ai-mind-map
Transport: stdio
</details>
π‘ After configuring, restart your AI agent so it picks up the new MCP server.
π§ 50+ MCP Tools
Once connected, your AI agent automatically gets all tools + a built-in guide telling it which tool to call first and when to use each one.
How AI Agents Discover Our Tools
AI Agent connects β Server sends 3 things:
1. β
instructions β "Call mindmap_session_resume FIRST" (auto-loaded)
2. β
tools/list β All 50 tools with descriptions + schemas (auto-loaded)
3. β
prompts/list β Interactive guides (on request)
π Client Compatibility
| Client | Works? | How AI Learns Our Tools |
|--------|:------:|------------------------|
| Claude Code / Desktop | β
| instructions + tools/list + prompts + rules file (CLAUDE.md) |
| Cursor | β
| tools/list + rules file (.cursorrules) |
| VS Code Copilot | β
| tools/list + rules file (.github/copilot-instructions.md) |
| Windsurf | β
| tools/list + rules file (.windsurfrules) |
| Antigravity (Gemini) | β
| tools/list + rules file (.agents/AGENTS.md) |
| Zed | β
| tools/list + MCP config |
| Continue.dev | β
| tools/list + MCP config |
| Any MCP client | β
| tools/list (universal MCP spec) |
| Ollama / LM Studio | β οΈ | Not MCP clients natively β use via Continue.dev or Open WebUI |
| Codex (OpenAI) | β οΈ | Not MCP natively β requires MCP bridge |
Key:
tools/listworks with every MCP client. Rules files (CLAUDE.md,.cursorrules, etc.) are deployed bynpx ai-mind-map installas a fallback for clients that don't honor theinstructionsfield.
β‘ Code Memory Engine (v1.4.0) β NEW
| Tool | What It Does | Token Savings |
|------|-------------|:---:|
| mindmap_session_resume ββ | Resume from last session β returns what was worked on, what changed, project stats | 15-30K/session |
| mindmap_session_start | Start tracking a new AI coding task | β |
| mindmap_session_end | End session with summary for next agent | β |
| mindmap_changelog β | Symbol-level diffs β added/modified/deleted functions since a time | 20-50K/session |
| mindmap_hotspots | Most frequently changed files + symbols | 5-10K |
| mindmap_digest β | Full project summary in <2000 tokens | 10-25K/session |
| mindmap_file_digest β | Understand a file WITHOUT reading it | 3-10K/file |
| mindmap_verify | Hash-based content verification β check if cached code is still valid | 3-10K/file |
πΊοΈ Knowledge Graph (6)
| Tool | What It Does |
|------|-------------|
| mindmap_search | Search codebase by function/class name or free text |
| mindmap_get_structure | Project architecture overview in ~100 tokens |
| mindmap_trace_dependencies | Trace call chains β who calls what |
| mindmap_get_signature | Function signature without reading the file |
| mindmap_find_references | Find everywhere a symbol is used |
| mindmap_get_file_map | All symbols in a file with line ranges |
β Smart Tools (3) β 99% Token Savings
| Tool | What It Does |
|------|-------------|
| mindmap_explain | Everything about a symbol in 1 call β signature, callers, callees, layer, blast radius, git hist
Truncated for display β read the full file on GitHub.
Related Skills
claude-mem
101.1kPersistent Context Across Sessions for Every Agent β Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
97.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
Understand-Anything
86.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
75.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
