Codebase Explorer MCP Server
Analyzes any codebase to detect project type, languages, frameworks, entry points, API routes, controllers, services, components, tests, and more.
README
codebase-explorer-mcp
An MCP server that analyzes any codebase — detects project type, languages, framework, entry points, API routes, controllers, services, components, tests, and more.
Quick start
1. Install uv
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Verify: uv --version
Why
uv?uv.lockpins exact dependency versions (likepackage-lock.json), so everyone gets identical environments.mcp devalso usesuvxunder the hood.
2. Setup the project
cd /path/to/codebase-explorer-mcp
uv sync
This reads uv.lock, creates .venv, and installs all dependencies.
3a. Use with Claude Desktop
Find your venv Python path:
# From the project folder:
.venv\Scripts\python.exe --version
Add to claude_desktop_config.json (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"codebase-explorer": {
"command": "C:\\full\\path\\to\\codebase-explorer-mcp\\.venv\\Scripts\\python.exe",
"args": ["server.py"],
"cwd": "C:\\full\\path\\to\\codebase-explorer-mcp"
}
}
}
Restart Claude Desktop.
3b. Test with MCP Inspector (development)
cd /path/to/codebase-explorer-mcp
mcp dev server.py
Opens http://localhost:6274 — test all tools live in a web UI.
How to use
You only need to provide the repo path — the server auto-discovers everything else.
| Tool | What you give it | What it returns |
|---|---|---|
analyze_structure |
path |
Languages, file count, entry points, directory tree |
find_features |
path |
Routes, controllers, components, tests, interfaces |
get_feature_detail |
path, name |
Code context around a feature (auto-locates file + line) |
generate_architecture |
path |
Layered Mermaid diagram — entry points, API, services, data, UI with import connections |
analyze_dead_code |
path |
Functions, classes, and exports defined but never referenced elsewhere |
get_git_info |
path |
Git branch, recent commits, contributors, hot files, uncommitted changes |
find_secrets |
path |
Hardcoded API keys, tokens, passwords, private keys, database credentials |
search_symbols |
path, pattern |
Regex search results across all source files |
list_project_types |
(none) | List of project types and frameworks the server can detect |
Example flow
- Get an overview:
analyze_structure(path="C:\\MyProject") - See the big picture:
generate_architecture(path="C:\\MyProject")→ Renders a Mermaid diagram with layers: Entry → API → Logic → Data → UI, plus import graph edges - Check git health:
get_git_info(path="C:\\MyProject")→ Branch, recent commits, contributors, hot files, uncommitted changes - Scan for leaks:
find_secrets(path="C:\\MyProject")→ Hardcoded API keys, tokens, passwords, and database credentials - Find dead code:
analyze_dead_code(path="C:\\MyProject")→ Lists functions, classes, and exports defined but never imported or referenced elsewhere - Find specific features:
find_features(path="C:\\MyProject")→ See all API routes, controllers, tests listed with their file locations - Inspect one:
get_feature_detail(path="C:\\MyProject", name="get_users")→ Shows code context around that feature, no need to know the file or line number - Search:
search_symbols(path="C:\\MyProject", pattern="async def")→ Find all async functions in the codebase
Alternative setup (without uv)
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # macOS / Linux
pip install "mcp[cli]>=1.6.0"
python server.py
Supported Languages
Python, JavaScript/TypeScript, Java, Go, Ruby, C#, Rust, PHP, Kotlin, Swift, and more.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.