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.
β‘ 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
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 |
π¦ 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.
π§βπ» 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.