CodeAtlas MCP Server
The CodeAtlas MCP Server exposes codebase analysis data to AI assistants, enabling them to query project structure, dependencies, and AI-generated insights.
List Projects (
list_projects): Discover all CodeAtlas-analyzed projects under your home directory, returning their names, paths, and last analysis timestamps.Get Project Structure (
get_project_structure): Retrieve all modules, classes, functions, and variables in a project, with optional filtering by entity type and result limits.Get Dependencies (
get_dependencies): Explore import, call, and containment relationships between entities, with filtering by source, target, and relationship type.Get Insights (
get_insights): Access AI-generated code quality insights including refactoring suggestions, security issues, and maintainability analysis.Search Entities (
search_entities): Fuzzy search for functions, classes, modules, or variables by name across a project, with optional type filtering.Get File Entities (
get_file_entities): Retrieve all classes, functions, and variables defined within a specific file using partial path matching.
Compatible with major AI tools including Gemini, Claude, Cursor, Windsurf, and VS Code Copilot. Supports both npx execution and global installation.
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., "@CodeAtlas MCP Servershow the module structure and dependencies for the current project"
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.
πΊοΈ CodeAtlas MCP Server
A standalone MCP server that exposes CodeAtlas analysis data to AI assistants β Gemini, Claude, Cursor, Windsurf, VS Code Copilot, and more.
NEW in v1.4.0: π§ AI System Memory β AI remembers your system flow between conversations.
β‘ Quick Start
1. Analyze your project
Install the CodeAtlas VS Code extension, then run:
Ctrl+Shift+P β CodeAtlas: Analyze ProjectThis generates .codeatlas/analysis.json in your project root.
2. Add MCP config
Pick your AI assistant and add the config:
Open Settings (Ctrl+,) β search mcp β click Edit in settings.json, then add:
{
"mcp": {
"servers": {
"codeatlas": {
"command": "npx",
"args": ["-y", "@giauphan/codeatlas-mcp"]
}
}
}
}Or add via workspace .vscode/settings.json for per-project config.
Add to .gemini/settings.json:
{
"mcpServers": {
"codeatlas": {
"command": "npx",
"args": ["-y", "@giauphan/codeatlas-mcp"]
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"codeatlas": {
"command": "npx",
"args": ["-y", "@giauphan/codeatlas-mcp"]
}
}
}Add to .cursor/mcp.json:
{
"mcpServers": {
"codeatlas": {
"command": "npx",
"args": ["-y", "@giauphan/codeatlas-mcp"]
}
}
}Add to .windsurf/mcp.json:
{
"mcpServers": {
"codeatlas": {
"command": "npx",
"args": ["-y", "@giauphan/codeatlas-mcp"]
}
}
}That's it! Your AI assistant can now query your codebase structure, dependencies, and insights.
π οΈ Available Tools
Code Analysis (6 tools)
Tool | Description |
| List all analyzed projects (auto-discovers |
| Get modules, classes, functions, variables |
| Get import / call / containment relationships |
| Get AI-generated code quality insights |
| Search functions, classes by name (fuzzy match) |
| Get all entities defined in a specific file |
π§ AI System Memory (3 tools β NEW in v1.4.0)
Tool | Description |
| Auto-generate Mermaid architecture diagrams. Scopes: |
| Create/update |
| Trace a feature's flow through the codebase. Returns files in dependency order |
π§ AI System Memory
AI assistants lose context between conversations. CodeAtlas MCP solves this with persistent memory files.
How it works
Conversation 1 β AI writes code β calls sync_system_memory
β
.agents/memory/
βββ system-map.md
βββ modules.json
βββ business-rules.json
βββ conventions.md
βββ feature-flows.json
βββ change-log.json
β
Conversation 2 β AI reads .agents/memory/ β knows full system flow instantlySetup AI Memory
Copy rule templates to your project:
mkdir -p /path/to/your-project/.agents/rules/Create
.agents/rules/auto-memory.mdwith the rule that tells AI to:Read
.agents/memory/at the start of every conversationUse
trace_feature_flowbefore making changesCall
sync_system_memoryafter completing changes
Run
sync_system_memoryonce to generate the initial memory snapshot.
π Full setup guide & rule templates: CodeAtlas docs
π¦ Alternative: Global Install
If you prefer installing globally instead of using npx:
npm install -g @giauphan/codeatlas-mcpThen use "command": "codeatlas-mcp" (no args needed) in your MCP config.
π§ Environment Variables
Variable | Description |
| Force a specific project directory |
By default, the server auto-discovers all projects with
.codeatlas/analysis.jsonunder your home directory.
π Supported Languages
Language | Features |
TypeScript / JavaScript | Full AST: imports, classes, functions, variables, calls |
Python | Classes, functions, variables, imports, calls |
PHP | Classes, interfaces, traits, enums, functions, properties, constants |
Blade Templates |
|
π§βπ» Development
git clone https://github.com/giauphan/codeatlas-mcp.git
cd codeatlas-mcp
npm install
npm run build
npm startLicense
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/giauphan/codeatlas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server