← Back to directory
C

Claude Code Explorer MCP

Community
MCP server to interactively explore the Claude Code CLI source
GitHub source repository ↗
★ 3.3k Stars Category · Dev Tools Very popular Source revision 6a2590911df2
33FMRS · D
Reliability
5/20
Security and permissions
8/20
Maintenance
0/20
Documentation
10/20
Setup experience
10/20

This MCP server provides interactive browsing of leaked Claude Code source, with tools for listing, reading, searching, and architecture overviews. Suitable for developer learning but carries legal and security risks, and is unofficial.

Read the FMRS scoring method →

The Claude Code Explorer MCP lets you browse the full source code of Claude Code CLI through natural language. You can list all tools and slash commands, view source of any tool, search the source tree, browse directories, and get a high-level architecture overview. The server is distributed as the npm package warrioraashuu-codemaster, uses stdio transport, and works with any MCP-compatible client (Claude Code, Claude Desktop, VS Code Copilot, Cursor).

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 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. Clone the repo: git clone https://github.com/codeaashu/claude-code.git
  2. Enter mcp-server: cd claude-code/mcp-server
  3. Install & build: npm install && npm run build
  4. Register with Claude Code: claude mcp add claude-code-explorer -- node /absolute/path/to/claude-code/mcp-server/dist/index.js

Or use npm directly: claude mcp add warrioraashuu-codemaster -- npx -y warrioraashuu-codemaster

Fit and risk

Best for

  • Developers who want to deeply understand Claude Code internals.
  • Developers building plugins or extensions for Claude Code.
  • Researchers interested in Anthropic CLI architecture.

Not for

  • Casual users who don't need source code access.
  • Users looking for an officially supported MCP server.
  • Those needing non-stdio transport.

Required permissions

  • File system read: needs access to the cloned source directory (set via CLAUDE_CODE_SRC_ROOT env var).
  • Execute searches: may run ripgrep searches within the source directory.

Risks and side effects

  • Source leak: this repo contains leaked source code from Anthropic, usage may carry legal and licensing risks.
  • Security risk: the source may contain unfixed vulnerabilities; use only for research.
  • Instability: non-official project, may lack maintenance.

Troubleshooting

  1. Ensure source directory is correct: CLAUDE_CODE_SRC_ROOT env var must point to the directory containing src/.
  2. Build failures: check that npm install and npm run build succeed, possibly need compatible Node.js version.
  3. Connection issues: verify stdio transport is used and command paths are correct.

Use cases

Browser Claude Code CLI source to understand tool and command implementations.
Search for specific functionality (e.g., permission checks) in the codebase.
Get an architecture overview for system design understanding.
Compare two tools' implementations side-by-side.

Supported clients

Claude DesktopFull support

More servers from this repository