Clone the Claude Code source and start exploring in minutes.
There are two ways to explore the Claude Code source: install the MCP Explorer npm package for immediate interactive access, or clone the repository to browse the files directly.
The MCP Explorer server is the fastest path. You can start asking questions about the codebase within seconds — no clone required.
The main package uses Bun. The MCP server uses npm.
# Install main package dependencies (for type checking and linting)bun install# Install and build the MCP servercd mcp-server && npm install && npm run buildcd ..
4
Register the MCP Explorer with Claude Code
Point the MCP server at the local source:
claude mcp add claude-code-explorer -- node ~/claude-code/mcp-server/dist/index.js
Replace ~/claude-code with the absolute path to your clone.
5
Explore the source
Open the src/ directory in your editor to browse the codebase, or use the MCP Explorer to navigate interactively.
# Type check the sourcebun run typecheck# Lint the sourcebun run lint
Base types and interfaces for all tools — schemas, permissions, progress
src/commands.ts
~25K
Command registration and execution
src/tools.ts
—
Tool registry and loader
The src/ directory is the original leaked source. It should not be modified. Contributions to documentation, the MCP server, and exploration tooling are welcome — see the contributing guide.