npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@giauphan/codeatlas-mcp

v1.6.6

Published

MCP server that gives AI assistants (Gemini, Claude, Cursor, Windsurf, Copilot) deep understanding of your codebase — 10 tools + persistent memory

Readme

🗺️ CodeAtlas MCP Server

Give your AI assistant deep understanding of any codebase

npm CI License Node

A standalone MCP server that exposes code analysis data to Gemini, Claude, Cursor, Windsurf, VS Code Copilot — with persistent AI memory between conversations.


✨ What Does It Do?

Your Code → CodeAtlas Analyze → MCP Server → AI Understands Everything
                                     │
                              10 powerful tools:
                              • Search functions & classes
                              • Trace feature flows
                              • Generate architecture diagrams
                              • Persistent memory across conversations

Before CodeAtlas: AI greps blindly, forgets your project every conversation. After CodeAtlas: AI instantly knows your architecture, dependencies, and remembers context.


🚀 Setup (1 minute)

1. Analyze your project

Install the CodeAtlas extension, then:

Ctrl+Shift+P → CodeAtlas: Analyze Project

2. Add MCP config to your AI

{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "@giauphan/codeatlas-mcp"]
    }
  }
}
{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "@giauphan/codeatlas-mcp"]
    }
  }
}
{
  "mcp": {
    "servers": {
      "codeatlas": {
        "command": "npx",
        "args": ["-y", "@giauphan/codeatlas-mcp"]
      }
    }
  }
}
{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "@giauphan/codeatlas-mcp"]
    }
  }
}
claude mcp add codeatlas -- npx -y @giauphan/codeatlas-mcp
{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "@giauphan/codeatlas-mcp"]
    }
  }
}

Done! Your AI can now use all 10 CodeAtlas tools.


🛠️ 10 MCP Tools

Code Analysis (6 tools)

| Tool | Description | Example Use | |------|-------------|-------------| | list_projects | List all analyzed projects | "What projects do I have?" | | get_project_structure | Get modules, classes, functions | "Show me all classes" | | get_dependencies | Import/call/containment relationships | "What does UserService depend on?" | | get_insights | Code quality & security analysis | "Any security issues?" | | search_entities | Fuzzy search entities by name | "Find the login function" | | get_file_entities | All entities in a specific file | "What's in auth.ts?" |

Architecture Visualization (2 tools)

| Tool | Description | Example Use | |------|-------------|-------------| | generate_system_flow | Mermaid architecture diagram (module imports) | "Show me the system architecture" | | generate_feature_flow_diagram ⭐ | Mermaid execution flow diagram (call chains) | "How does the payment feature work?" |

AI Memory (2 tools)

| Tool | Description | Example Use | |------|-------------|-------------| | sync_system_memory | Save context to .agents/memory/ | "Remember what we changed" | | trace_feature_flow | Trace feature through codebase | "What files are involved in auth?" |


🧠 AI Memory — Persistent Context

AI assistants forget everything between conversations. CodeAtlas fixes this:

Conversation 1 → AI analyzes code → sync_system_memory
                                          │
                                   .agents/memory/
                                   ├── system-map.md       ← Architecture diagram
                                   ├── modules.json        ← All entities
                                   ├── conventions.md      ← Code patterns
                                   ├── business-rules.json ← Domain logic
                                   ├── feature-flows.json  ← Feature traces
                                   └── change-log.json     ← Change history
                                          │
Conversation 2 → AI reads memory → full context restored instantly ✨

Auto-Generated IDE Rules

When you run Analyze Project, CodeAtlas auto-creates rule files for your AI IDE:

| Generated File | For | |---|---| | .agents/rules/codeatlas-mcp.md | All AI assistants | | .cursor/rules/codeatlas.mdc | Cursor | | CLAUDE.md | Claude Code | | .windsurfrules | Windsurf |

These tell your AI to:

  1. Read .agents/memory/ at the start of every conversation
  2. Use MCP tools before making changes
  3. Call sync_system_memory after completing changes

🌍 Supported Languages

| Language | Features | |----------|----------| | TypeScript / JavaScript | Full AST: imports, classes, functions, variables, calls, implements | | Python | Classes, functions, variables, imports, calls | | PHP | Classes, interfaces, traits, enums, functions, properties | | Blade Templates | @extends, @include, @component, <x-component> |


📦 Alternative: Global Install

npm install -g @giauphan/codeatlas-mcp

Then use "command": "codeatlas-mcp" in your MCP config (no args needed).


🔧 Environment Variables

| Variable | Description | |----------|-------------| | CODEATLAS_PROJECT_DIR | Force a specific project directory |

By default, the server auto-discovers all projects with .codeatlas/analysis.json under ~/.


🧑‍💻 Development

git clone https://github.com/giauphan/codeatlas-mcp.git
cd codeatlas-mcp
npm install
npm run build
npm test    # 6 tests
npm start   # Start MCP server

🔗 Related

License

MIT — Free for personal and commercial use.