# Claude Code Explorer MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/codeaashu/claude-code  
**GitHub Stars:** 3446  
**npm Downloads (last month):** 42  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/claude-code-explorer-mcp

## Description
Explore the Claude Code CLI source — browse tools, commands, search code, and more.

## Tools
Capabilities this server exposes over MCP:

- **list_tools** — List all ~40 agent tools with source files
- **list_commands** — List all ~50 slash commands with source files
- **get_tool_source** — Read full source of any tool (e.g. BashTool, FileEditTool)
- **get_command_source** — Read source of any slash command (e.g. review, mcp)
- **read_source_file** — Read any file from `src/` by path
- **search_source** — Grep across the entire source tree
- **list_directory** — Browse `src/` directories
- **get_architecture** — High-level architecture overview

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "claude-code-explorer-mcp": {
    "command": "npx",
    "args": ["-y","warrioraashuu-codemaster"],
    "env": {
      "CLAUDE_CODE_SRC_ROOT": ""
    }
  }
}
```

**Requires environment variables:** `CLAUDE_CODE_SRC_ROOT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Claude Code Explorer MCP MCP server does

Claude Code Explorer MCP MCP server makes the `src/` directory from the repository available to MCP-compatible clients. The repository presents this source as the leaked TypeScript implementation of Anthropic's Claude Code CLI, including its tools, commands, services, UI components, and supporting subsystems.

The server is intended for source inspection rather than for running Claude Code features. An agent can start with a catalog of available tools or slash commands, locate relevant files, search for symbols or text, and then read the implementation. It also exposes a higher-level architecture description to help connect individual files to larger subsystems.

Typical questions include how `BashTool` works, where permission checks occur, how a slash command is implemented, or how the MCP and bridge subsystems fit together.

## How it works

The MCP process reads source files under a configured Claude Code source root and returns structured results to the connected client. Its interface separates discovery from inspection: listing operations identify tools, commands, or directories; source-reading operations return file contents; and search operations locate matches across the source tree.

The available interface includes eight tools:

- `list_tools` finds the agent tools and their source files.
- `list_commands` finds slash commands and their source files.
- `get_tool_source` reads a selected agent tool.
- `get_command_source` reads a selected slash command.
- `read_source_file` reads a file by path under `src/`.
- `search_source` searches across the source tree.
- `list_directory` browses directories under `src/`.
- `get_architecture` returns a high-level architecture overview.

## Setup and configuration

Claude Code Explorer MCP MCP server can be installed from npm as `warrioraashuu-codemaster`, or built from the repository. The npm setup registers the server with Claude Code through `claude mcp add` and runs it with `npx`.

For a source checkout, clone the repository, enter `mcp-server`, run `npm install`, build with `npm run build`, and register the resulting `dist/index.js` with an absolute path. The documented configuration uses a stdio server with Node.js.

Set `CLAUDE_CODE_SRC_ROOT` when the source is stored somewhere other than the server's expected location. VS Code, Claude Desktop, and Cursor examples pass this variable to the server and point it at the repository's `src/` directory. The server can be removed from Claude Code with `claude mcp remove`.

## Tools and capabilities

Use the listing tools to map the repository before opening individual files. Use `search_source` for cross-cutting questions, such as locating permission checks or references to a subsystem. Once a relevant path is known, `read_source_file`, `get_tool_source`, or `get_command_source` can retrieve the implementation directly.

`get_architecture` is useful at the beginning of an investigation or when a file-level result needs broader context. The repository documentation identifies major areas including tools, commands, services, bridges, permissions, plugins, skills, tasks, memory, voice, and state management.

## Limitations and notes

Claude Code Explorer MCP MCP server is limited to exploring the source exposed under the configured source root. The documented source-file reader is scoped to `src/`, so it should not be treated as a general filesystem browser.

Its documented role is reading, searching, listing, and explaining the checked-out source.

_Full upstream README: https://allmcps.com/mcp/claude-code-explorer-mcp/readme_

