Codebase MCP Server

Multi-layer codebase analysis MCP server with Gemini AI and progressive disclosure.

Local serverstdio

What is the Codebase MCP Server?

Multi-layer codebase analysis MCP server with Gemini AI and progressive disclosure.

What it actually does

MCP server for codebase analysis with Gemini AI. Progressive disclosure keeps costs low — start with free structural analysis, drill into semantic details only when needed.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
analyze_repoFull analysis with progressive disclosure
query_repoAsk questions about a codebase
expand_sectionDrill into specific analysis sections
read_filesRead source files from a cached analysis
find_patternsDetect design/architecture patterns
trace_dataflowTrace data flow through the system
get_analysis_capabilitiesList supported languages and options

How to install the Codebase MCP Server

{
  "mcpServers": {
    "codebase-analyzer": {
      "command": "npx",
      "args": ["-y", "codebase-analyzer-mcp"],
      "env": {
        "GEMINI_API_KEY": "your_key_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Codebase to analyze repo.”
  • “Use Codebase to query repo.”
  • “Use Codebase to expand section.”

Frequently asked questions

Multi-layer codebase analysis MCP server with Gemini AI and progressive disclosure. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.