← Back to directory
C

Claude Code Explorer MCP

Community
Claude Code Explorer MCP - Explore the leaked source of Claude Code CLI
GitHub source repository ↗
★ 3.3k Stars Category · Dev Tools Very popular Source revision 6a2590911df2
18FMRS · D
Reliability
3/20
Security and permissions
4/20
Maintenance
5/20
Documentation
4/20
Setup experience
2/20

This MCP server acts as an unofficial exploration tool providing access to leaked Claude Code source. Its functionality is technically sound, but users should be aware of its unofficial nature.

Read the FMRS scoring method →

The Claude Code Explorer MCP server allows any MCP-compatible client (e.g., Claude Code, Claude Desktop, VS Code Copilot, Cursor) to explore the full source code of the Claude Code CLI interactively. It provides tools to list tools and commands, read source files, search across the 512K-line codebase, and get an architecture overview.

Tools

list_tools
List all ~40 agent tools with source files.
list_commands
List all ~50 slash commands with source files.
get_tool_source
Read the 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.

Setup

  1. Install the npm package: npm install -g warrioraashuu-codemaster or use npx.
  2. For Claude Code: run claude mcp add claude-code-explorer -- npx -y warrioraashuu-codemaster.
  3. For Claude Desktop, add the provided JSON config to your config file.
  4. For VS Code/Cursor, add the same config to .vscode/mcp.json or ~/.cursor/mcp.json.
claude_desktop_config.json
{
  "mcpServers": {
    "claude-code-explorer": {
      "command": "npx",
      "args": [
        "-y",
        "warrioraashuu-codemaster"
      ]
    }
  }
}

Fit and risk

Best for

  • Developers who want to deeply understand Claude Code internals
  • Technical writers or bloggers writing about Claude Code source
  • Contributors needing to debug or extend Claude Code

Not for

  • Users not interested in Claude Code
  • Developers who need to interact with Claude Code, not just read its source
  • Users looking for an officially supported or maintained server

Required permissions

  • Reads environment variable CLAUDE_CODE_SRC_ROOT if set to locate source
  • Runs local Node.js processes
  • Accesses network to download npm package (if using npx)

Risks and side effects

  • This server is based on unofficial leaked source, which may contain unreleased or unauthorized code
  • Using third-party npm packages presents supply chain risks
  • The source may be inaccurate or outdated as it is not an official release

Troubleshooting

  1. Ensure network connectivity for npx
  2. Verify CLAUDE_CODE_SRC_ROOT points to the correct src/ directory
  3. Ensure Node.js version is compatible (Node 14+ required)
  4. Check MCP client configuration for correct command and args

Use cases

Understanding the implementation of specific Claude Code tools
Searching the source for answers about commands or permissions
Browsing directory structure for a high-level understanding
Generating architectural documentation for tools or commands

Supported clients

Claude DesktopFull support
Claude CodeFull support
VS CodeFull support
CursorFull support

More servers from this repository