← Back to directory
C

Claude Code Explorer MCP

Community
MCP server to interactively explore the Claude Code CLI source
Category
Dev Tools #401 of 438
Stars
★ 3.4k Very popular
Transport
stdio (local process)
Runtime
Node.js
Credentials
No credential needed
License
Other / unspecified
Last commit
Tools
8
33FMRS · D

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.

Strongest · Setup experience 10/20 Weakest · Maintenance 0/20

Reliability
5/20
Security and permissions
8/20
Maintenance
0/20
Documentation
10/20
Setup experience
10/20
Why each score
Reliability 5/20
Evidence is limited to the server manifest and README text; no source code, tests, CI, or built artifacts for this specific server (mcp-server/server.json) were supplied. The MCP initialization handshake and tool list cannot be verified, the README tool table is untrusted, and no unit or integration tests back it. The npx one-liner also does not explain how the server resolves the source root. Conservatively, the happy path seems plausible but is not reproducible and error handling is unknown, so 5. No sibling-server tests or docs were attributed to this server.
Security and permissions 8/20
The server appears to be a read-only source explorer (list/read/search). The config examples contain no credentials, no external network calls, and no destructive operations, so no red-line risk (malware, credential theft, covert exfiltration) is visible. However, without the source code we cannot verify that path validation restricts access to the src/ directory, leaving a theoretical path-traversal or over-read risk; there is also no permission-confirmation model, though read-only operations typically do not need one. Data boundaries and scoping are not fully demonstrated, so 8.
Maintenance 0/20
The repository metadata shows License: NOASSERTION, and the README explicitly states the leaked source is not licensed for redistribution, meaning there is no valid open-source license. No security-response channel, release cadence, issue-response evidence, or dependency-update trail was provided. Although the repository is not archived and the manifest lists npm version 1.1.0, the absence of a license reaches the 0 anchor, so 0.
Documentation 10/20
The README provides multiple installation methods (npm one-liner, from-source build), client config examples for VS Code/Claude Desktop/Cursor, a tool and prompt list, custom source-root and removal commands, with plenty of examples. But per-tool parameter schemas, limits, cost, and troubleshooting are missing; key assumptions such as how the default source root is determined are unexplained; and the docs are untrusted and unverified. This matches 'usable but with hidden assumptions and troubleshooting gaps,' so 10.
Setup experience 10/20
Setup instructions are clear and include an npx one-liner, from-source build steps, and multiple client JSON configurations, so the number of steps is low. However, static calibration caps this at 15, and there is no CI, build artifact, or package.json evidence to verify; the npx path does not state where the source root comes from and may be fragile, while the from-source path is manual. Overall, 10.

Static review · not runListed 2026-08-07

Read the FMRS scoring method →

Fit and risk

What it can accessReads local files

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.

Setup

Before you start

Runtime:Node.js

Other optional settings (1)
CLAUDE_CODE_SRC_ROOT optional Absolute path to the repo's src/ directory, setting the source root to browse; optional when installing from npm.
  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

Check that it works

The client's tool list should show the 8 tools such as list_tools and search_source; alternatively, asking "How does the BashTool work?" and getting a source-based answer confirms the connection.

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.

Things to try

Once connected, you can ask your AI assistant things like:

  • List all agent tools
  • How does the BashTool work?
  • Search for where permissions are checked
  • Show me the /review command source

Tools 8

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

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 Desktop

Listed from the project's documentation, not tested by this site.

Overview

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).

Similar servers

Context7 80 · B

Upstash's official server providing up-to-date third-party library docs for AI coding assistants

★ 62.9k · Tools 2 Compare with this →

More servers from this repository

Source revision eec3692193a3 Data synced 2026-10-12 Read the FMRS scoring method