CodeCompass
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π§ CodeCompass
A powerful Model Context Protocol (MCP) server that transforms your local codebase into an intelligent, searchable knowledge base. Built for developers who want to understand, explore, and analyze their code with natural language queries.
β¨ Key Features
π Intelligent Code Search - Text, regex, and semantic search across your entire codebase
π Smart Code Explanation - Get instant explanations of functions, classes, and code blocks
π TODO Detection - Find and track all TODO, FIXME, and technical debt comments
π Safe & Secure - Runs entirely locally with no cloud dependencies
π Claude Desktop Ready - Seamless integration with Claude Desktop and other MCP clients
π Web Dashboard - Beautiful Streamlit interface for team collaboration
π° Completely Free - Zero ongoing costs, no API fees, no subscriptions
Related MCP server: code-rag-mcp
π― Perfect For
Code Reviews - Quickly understand unfamiliar codebases
Onboarding - Help new team members navigate complex projects
Documentation - Generate explanations and insights automatically
Technical Debt - Track and prioritize TODO items across projects
Code Analysis - Identify patterns, risks, and improvement opportunities
π Quick Start
Prerequisites
Python 3.12+
Git
Installation
# Clone the repository
git clone https://github.com/nandanpabolu/CodeCompass.git
cd CodeCompass
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Test the backend (optional)
python test_backend.py
# Run MCP Server
python src/simple_mcp_server.py
# Or run the web dashboard
streamlit run src/streamlit_app.pyClaude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"codecompass": {
"command": "python",
"args": ["/path/to/CodeCompass/src/mcp_server.py"],
"env": {
"REPO_ROOT": "/path/to/your/codebase"
}
}
}
}π§ Tech Stack
Python 3.12+ with async/await
MCP Protocol for AI client integration
Streamlit for web interface
Local AI support via Ollama (optional)
Semantic Search with sentence-transformers
Zero Dependencies on external services
π Project Structure
CodeCompass/
βββ src/ # Source code
β βββ mcp_server.py # MCP protocol server
β βββ streamlit_app.py # Streamlit dashboard
β βββ core/ # Core analysis engine
β βββ tools/ # MCP tool implementations
βββ config/ # Configuration files
βββ tests/ # Test suite
βββ docs/ # Documentation
βββ examples/ # Usage examples
βββ scripts/ # Utility scriptsπ οΈ Available Tools
Core Tools
search_code- Search code with text or regexread_file- Read file contents with paginationlist_todos- Find TODO/FIXME commentsexplain_range- Explain code blocksget_file_info- Get file metadata
Advanced Tools
semantic_search- Semantic code searchanalyze_complexity- Code complexity analysisfind_references- Find function/variable usagecode_metrics- Calculate code metrics
π Web Dashboard
Access the Streamlit dashboard at http://localhost:8501 for:
Interactive code search
File explorer
Code analysis results
Configuration management
Team collaboration
π Security Features
Path traversal protection
File size limits
Whitelisted repository roots
Ignore pattern support
Safe file access controls
π Performance
File reading: < 100ms for files < 1MB
Text search: < 500ms for 10,000 files
Semantic search: < 1s for 1,000 code chunks
Memory usage: < 500MB for typical codebase
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
π License
MIT License - see LICENSE for details.
π Acknowledgments
Built with Model Context Protocol
Powered by Streamlit
Inspired by the need for better code understanding tools
Transform your codebase into an intelligent assistant. Start exploring your code like never before! π
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Shared context for your codebase: a hosted code knowledge graph over MCP. Free plan, OAuth sign-up.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides semantic code intelligence to help users search, navigate, and analyze entire codebases using plain English. It enables Claude to perform architectural overviews, bug detection, and refactor suggestions through local semantic search and keyword indexing.MIT
- AlicenseAqualityDmaintenanceEnables semantic search over codebases using natural language queries, returning relevant code snippets with source locations. Integrates with Claude Code for automatic codebase exploration.11MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI IDEs to chat with, search, explain, refactor, and audit a local codebase without uploading source code, returning answers backed by file-and-line source citations, confidence scores, and severity labels, plus audit and board-ready strategic reports. Runs locally and standalone as an MCP server compatible with Claude, Cursor, Windsurf, and DeepSeek Harness.629 npm2MIT
- AlicenseNot gradedqualityBmaintenanceGives Claude a full local toolkit to search, read, edit, move, and analyze codebases, including dependency mapping, impact analysis, security auditing, and git snapshots, alongside a persistent knowledge graph that remembers decisions and links code to context. Everything runs locally against a single SQLite database with no external services.1MIT